many bugfix

This commit is contained in:
Olivier Gagnon
2021-12-03 14:12:32 -05:00
parent d852649f2b
commit 49a545f00e
67 changed files with 549 additions and 486 deletions
+3 -1
View File
@@ -114,6 +114,8 @@ export function NetscriptSingularity(
if (player.hasGangWith(facname)) {
const res = [];
for (const augName in Augmentations) {
if (augName === AugmentationNames.NeuroFluxGovernor) continue;
if (augName === AugmentationNames.TheRedPill && player.bitNodeN !== 2) continue;
const aug = Augmentations[augName];
if (!aug.isSpecial) {
res.push(augName);
@@ -953,7 +955,7 @@ export function NetscriptSingularity(
// if the player is in a gang and the target faction is any of the gang faction, fail
if (player.inGang() && AllGangs[name] !== undefined) {
workerScript.log("workForFaction", () => `Faction '${name}' does not offer work at the moment.`);
return;
return false;
}
if (!player.factions.includes(name)) {