Pārlūkot izejas kodu

Fix heals not...healing

vintage
Fen Dweller pirms 5 gadiem
vecāks
revīzija
c0055d6859
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      src/game/entity.ts

+ 2
- 2
src/game/entity.ts Parādīt failu

@@ -128,11 +128,11 @@ export class Creature extends Vore implements Combatant {

if (instance.target in Vigor) {
// just deal damage
this.vigors[instance.target as Vigor] -= instance.amount * factor * resistance
this.vigors[instance.target as Vigor] -= instance.amount * resistance
} else if (instance.target in Stat) {
// drain the stats, then deal damage to match
const startVigors = this.maxVigors
this.stats[instance.target as Stat] -= instance.amount * factor * resistance
this.stats[instance.target as Stat] -= instance.amount * resistance
const endVigors = this.maxVigors

Object.keys(Vigor).map(vigor => {


Notiek ielāde…
Atcelt
Saglabāt