Merge pull request #1 from Aerophia/Aerophia-patch-1

Add files via upload
This commit is contained in:
Aerophia 2022-07-25 18:36:54 -05:00 committed by GitHub
commit 9d034253fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,6 +25,7 @@ import * as data from "./AchievementData.json";
import { FactionNames } from "../Faction/data/FactionNames"; import { FactionNames } from "../Faction/data/FactionNames";
import { BlackOperationNames } from "../Bladeburner/data/BlackOperationNames"; import { BlackOperationNames } from "../Bladeburner/data/BlackOperationNames";
import { isClassWork } from "../Work/ClassWork"; import { isClassWork } from "../Work/ClassWork";
import { BitNodeMultipliers } from "../BitNode/BitNodeMultipliers";
// Unable to correctly cast the JSON data into AchievementDataJson type otherwise... // Unable to correctly cast the JSON data into AchievementDataJson type otherwise...
const achievementData = (<AchievementDataJson>(<unknown>data)).achievements; const achievementData = (<AchievementDataJson>(<unknown>data)).achievements;
@ -380,7 +381,10 @@ export const achievements: IMap<Achievement> = {
DONATION: { DONATION: {
...achievementData["DONATION"], ...achievementData["DONATION"],
Icon: "donation", Icon: "donation",
Condition: () => Object.values(Factions).some((f) => f.favor >= 150), Condition: () =>
Object.values(Factions).some(
(f) => f.favor >= Math.floor(CONSTANTS.BaseFavorToDonate * BitNodeMultipliers.RepToDonateToFaction),
),
}, },
TRAVEL: { TRAVEL: {
...achievementData["TRAVEL"], ...achievementData["TRAVEL"],