From 7474e50fe81646ad3c4a41d716baf8f3ed0b188a Mon Sep 17 00:00:00 2001 From: Aerophia <109813468+Aerophia@users.noreply.github.com> Date: Mon, 25 Jul 2022 18:35:43 -0500 Subject: [PATCH] Add files via upload --- src/Achievements/Achievements.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Achievements/Achievements.ts b/src/Achievements/Achievements.ts index c3a52c426..0d3f58d8d 100644 --- a/src/Achievements/Achievements.ts +++ b/src/Achievements/Achievements.ts @@ -25,6 +25,7 @@ import * as data from "./AchievementData.json"; import { FactionNames } from "../Faction/data/FactionNames"; import { BlackOperationNames } from "../Bladeburner/data/BlackOperationNames"; import { isClassWork } from "../Work/ClassWork"; +import { BitNodeMultipliers } from "../BitNode/BitNodeMultipliers"; // Unable to correctly cast the JSON data into AchievementDataJson type otherwise... const achievementData = ((data)).achievements; @@ -380,7 +381,10 @@ export const achievements: IMap = { DONATION: { ...achievementData["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: { ...achievementData["TRAVEL"],