Преглед на файлове

Make healing also remove status effects and predation

master
Fen Dweller преди 5 години
родител
ревизия
d035c6923e
променени са 1 файла, в които са добавени 8 реда и са изтрити 2 реда
  1. +8
    -2
      src/game/maps/town.ts

+ 8
- 2
src/game/maps/town.ts Целия файл

@@ -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`)
}
)
)


Loading…
Отказ
Запис