fix sleeve memory bug

This commit is contained in:
Olivier Gagnon
2021-09-08 23:47:34 -04:00
parent bada8a5f39
commit 2a13db39c7
360 changed files with 5424 additions and 15764 deletions
+3 -16
View File
@@ -23,13 +23,7 @@ export class GangMemberTask {
territory: ITerritory;
// Defines tasks that Gang Members can work on
constructor(
name: string,
desc: string,
isHacking: boolean,
isCombat: boolean,
params: ITaskParams,
) {
constructor(name: string, desc: string, isHacking: boolean, isCombat: boolean, params: ITaskParams) {
this.name = name;
this.desc = desc;
@@ -53,12 +47,7 @@ export class GangMemberTask {
if (
Math.round(
this.hackWeight +
this.strWeight +
this.defWeight +
this.dexWeight +
this.agiWeight +
this.chaWeight,
this.hackWeight + this.strWeight + this.defWeight + this.dexWeight + this.agiWeight + this.chaWeight,
) != 100
) {
console.error(`GangMemberTask ${this.name} weights do not add up to 100`);
@@ -71,8 +60,6 @@ export class GangMemberTask {
// Formula: Territory Mutiplier = (Territory * 100) ^ factor / 100
// So factor should be > 1 if something should scale exponentially with territory
// and should be < 1 if it should have diminshing returns
this.territory = params.territory
? params.territory
: { money: 1, respect: 1, wanted: 1 };
this.territory = params.territory ? params.territory : { money: 1, respect: 1, wanted: 1 };
}
}