Procházet zdrojové kódy

Make healing also remove status effects and predation

master
Fen Dweller před 5 roky
rodič
revize
d035c6923e
1 změnil soubory, kde provedl 8 přidání a 2 odebrání
  1. +8
    -2
      src/game/maps/town.ts

+ 8
- 2
src/game/maps/town.ts Zobrazit soubor

@@ -186,12 +186,18 @@ export const Town = (): Place => {
home.choices.push(
new Choice(
"Heal",
"Become not dead",
"Become not dead and/or eaten",
(world, executor) => {
Object.keys(Vigor).forEach(vigor => {
executor.vigors[vigor as Vigor] = executor.maxVigors[vigor as Vigor]
})
return new LogLine(`You're stronger now`)
if (executor.containedIn !== null) {
executor.containedIn.release(executor)
}
executor.statusEffects.forEach(effect => {
executor.removeEffect(effect)
})
return new LogLine(`You're healthy again`)
}
)
)


Načítá se…
Zrušit
Uložit