mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-11 02:03:58 +01:00
Merge pull request #1 from Aerophia/Aerophia-patch-1
Add files via upload
This commit is contained in:
commit
9d034253fc
@ -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 = (<AchievementDataJson>(<unknown>data)).achievements;
|
||||
@ -380,7 +381,10 @@ export const achievements: IMap<Achievement> = {
|
||||
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"],
|
||||
|
Loading…
Reference in New Issue
Block a user