dont update int when you dont have it

This commit is contained in:
Olivier Gagnon 2021-10-12 10:29:41 -04:00
parent 83137a2364
commit a0baab6f6c
3 changed files with 3 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -451,10 +451,9 @@ export function gainIntelligenceExp(this: IPlayer, exp: number): void {
}
if (SourceFileFlags[5] > 0 || this.intelligence > 0) {
this.intelligence_exp += exp;
}
this.intelligence = Math.floor(this.calculateSkill(this.intelligence_exp));
}
}
//Given a string expression like "str" or "strength", returns the given stat
export function queryStatFromString(this: IPlayer, str: string): number {