mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-26 07:57:32 +01:00
Merge pull request #1467 from danielyxie/dev
dont update int when you dont have it
This commit is contained in:
commit
ac7c9451a8
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -451,9 +451,8 @@ 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));
|
||||
}
|
||||
|
||||
this.intelligence = Math.floor(this.calculateSkill(this.intelligence_exp));
|
||||
}
|
||||
|
||||
//Given a string expression like "str" or "strength", returns the given stat
|
||||
|
Loading…
Reference in New Issue
Block a user