Added new BitNode multiplier, GangKarmaRequirement. Different BitNodes need different amount of negative karma to create a Gang.

This commit is contained in:
Olivier Gagnon
2021-03-23 21:47:47 -04:00
parent 28584c8461
commit 2ac4cd41bb
4 changed files with 17 additions and 2 deletions
@@ -1,16 +1,16 @@
import { Factions } from "../../Faction/Factions";
import { Gang } from "../../Gang";
import { SourceFileFlags } from "../../SourceFile/SourceFileFlags";
import { BitNodeMultipliers } from "../../BitNode/BitNodeMultipliers";
// Amount of negative karma needed to manage a gang in BitNodes other than 2
const GangKarmaRequirement = -54000;
export function canAccessGang() {
if (this.bitNodeN === 2) { return true; }
if (SourceFileFlags[2] <= 0) { return false; }
return (this.karma <= GangKarmaRequirement);
return (this.karma <= BitNodeMultipliers.GangKarmaRequirement*GangKarmaRequirement);
}
export function getGangFaction() {