mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-13 11:13:50 +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;
|
this.hp.current -= amt;
|
||||||
if (this.hp.current <= 0) {
|
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;
|
this.hp.current = this.hp.max;
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user