Sleeve shock goes down, but not to negative

This commit is contained in:
Mughur 2022-08-25 18:49:01 +03:00
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 {