mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-09 17:23:53 +01:00
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:
parent
cacecda72f
commit
701c5d8e64
2
package-lock.json
generated
2
package-lock.json
generated
@ -99,7 +99,7 @@
|
|||||||
"webpack-dev-server": "^4.15.2"
|
"webpack-dev-server": "^4.15.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14"
|
"node": ">=18"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@aashutoshrathi/word-wrap": {
|
"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`);
|
helpers.log(ctx, () => `You can't donate to '${facName}' because you are managing a gang for it`);
|
||||||
return false;
|
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`);
|
helpers.log(ctx, () => `You can't donate to '${facName}' because they do not accept donations`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user