fix int not calculating

This commit is contained in:
Olivier Gagnon 2021-10-11 13:18:37 -04:00
parent e9ba4ae9a2
commit 3fd26bea9b
3 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -453,6 +453,8 @@ export function gainIntelligenceExp(this: IPlayer, exp: number): void {
if (SourceFileFlags[5] > 0 || this.intelligence > 0) { if (SourceFileFlags[5] > 0 || this.intelligence > 0) {
this.intelligence_exp += exp; 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 //Given a string expression like "str" or "strength", returns the given stat