mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 10:03:48 +01:00
fix int not calculating
This commit is contained in:
parent
e9ba4ae9a2
commit
3fd26bea9b
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
|
||||||
|
Loading…
Reference in New Issue
Block a user