Trying to fix int bug

This commit is contained in:
Olivier Gagnon
2022-08-18 13:40:39 -04:00
parent 67994ba1bc
commit 3067703c63
3 changed files with 165 additions and 3 deletions
@@ -410,7 +410,7 @@ export function gainIntelligenceExp(this: IPerson, exp: number): void {
console.error("ERROR: NaN passed into Player.gainIntelligenceExp()");
return;
}
if (Player.sourceFileLvl(5) > 0 || this.skills.intelligence > 0) {
if (Player.sourceFileLvl(5) > 0 || this.skills.intelligence > 0 || Player.bitNodeN === 5) {
this.exp.intelligence += exp;
this.skills.intelligence = Math.floor(this.calculateSkill(this.exp.intelligence, 1));
}