mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
Sleeve shock goes down, but not to negative
This commit is contained in:
parent
2e4e7fadfc
commit
bf33734def
@ -485,7 +485,7 @@ export class Sleeve extends Person {
|
||||
|
||||
this.hp.current -= amt;
|
||||
if (this.hp.current <= 0) {
|
||||
this.shock = Math.min(1, this.shock - 0.5);
|
||||
this.shock = Math.max(0, this.shock - 0.5);
|
||||
this.hp.current = this.hp.max;
|
||||
return true;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user