Merge pull request #503 from danielyxie/v0.41.0-bugfixes

V0.41.0 bugfixes
This commit is contained in:
danielyxie 2018-10-29 11:14:28 -05:00 committed by GitHub
commit 8ab6b8fc8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

@ -841,7 +841,7 @@ function GangMemberTask(name="", desc="", isHacking=false, isCombat=false,
this.chaWeight = params.chaWeight ? params.chaWeight : 0;
if (Math.round(this.hackWeight + this.strWeight + this.defWeight + this.dexWeight + this.agiWeight + this.chaWeight) != 100) {
throw new Error(`GangMemberTask ${this.name} weights do not add up to 100`);
console.error(`GangMemberTask ${this.name} weights do not add up to 100`);
}
// 1 - 100