mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 14:42:28 +01:00
Fix broken HP
This commit is contained in:
parent
855cedfa7f
commit
f8af04e5b3
@ -196,7 +196,6 @@ export function updateSkillLevels(this: Person): void {
|
|||||||
const ratio: number = Math.min(this.hp.current / this.hp.max, 1);
|
const ratio: number = Math.min(this.hp.current / this.hp.max, 1);
|
||||||
this.hp.max = Math.floor(10 + this.skills.defense / 10);
|
this.hp.max = Math.floor(10 + this.skills.defense / 10);
|
||||||
this.hp.current = Math.round(this.hp.max * ratio);
|
this.hp.current = Math.round(this.hp.max * ratio);
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function hasAugmentation(this: Person, augName: string, ignoreQueued = false) {
|
export function hasAugmentation(this: Person, augName: string, ignoreQueued = false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user