API: Fixed ns.singularity.donateToFaction being able to donate to SoA (#1595)

Fixed ns.singularity.donateToFaction bug
Fixed a bug within singularity.donateToFaction where you could use it to donate to Shadows Of Anarchy
Also updated the Node version in package-lock.json to 18
This commit is contained in:
Fireball5939 2024-08-17 16:10:01 -05:00 committed by GitHub
parent cacecda72f
commit 701c5d8e64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

2
package-lock.json generated

@ -99,7 +99,7 @@
"webpack-dev-server": "^4.15.2"
},
"engines": {
"node": ">=14"
"node": ">=18"
}
},
"node_modules/@aashutoshrathi/word-wrap": {

@ -968,7 +968,11 @@ export function NetscriptSingularity(): InternalAPI<ISingularity> {
helpers.log(ctx, () => `You can't donate to '${facName}' because you are managing a gang for it`);
return false;
}
if (faction.name === FactionName.ChurchOfTheMachineGod || faction.name === FactionName.Bladeburners) {
if (
faction.name === FactionName.ChurchOfTheMachineGod ||
faction.name === FactionName.Bladeburners ||
faction.name === FactionName.ShadowsOfAnarchy
) {
helpers.log(ctx, () => `You can't donate to '${facName}' because they do not accept donations`);
return false;
}