|
|
|
@@ -111,6 +111,13 @@ export abstract class Mortal extends Entity { |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
Object.keys(Vigor).forEach(vigorStr => { |
|
|
|
const vigor = vigorStr as Vigor |
|
|
|
if (this.vigors[vigor] > this.maxVigors[vigor]) { |
|
|
|
this.vigors[vigor] = this.maxVigors[vigor] |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
if (this.vigors.Health <= -this.maxVigors.Health) { |
|
|
|
this.destroyed = true |
|
|
|
} |
|
|
|
|