Переглянути джерело

Move the 'eat someone' button outside and add some name variety

master
Fen Dweller 5 роки тому
джерело
коміт
3bf0feee78
1 змінених файлів з 13 додано та 12 видалено
  1. +13
    -12
      src/game/maps/town.ts

+ 13
- 12
src/game/maps/town.ts Переглянути файл

@@ -146,18 +146,6 @@ export const Town = (): Place => {
}
)
)
home.choices.push(
new Choice(
"Eat someone",
"Slurp",
(world, executor) => {
const snack = new Creatures.Human(new ProperNoun("Snack"), TheyPronouns)
snack.applyEffect(new SurrenderEffect())
const options = executor.validActions(snack).filter(action => action instanceof DevourAction)
return options[Math.floor(options.length * Math.random())].execute(executor, snack)
}
)
)

home.choices.push(
new Choice(
@@ -188,6 +176,19 @@ export const Town = (): Place => {
)
)

westAve.choices.push(
new Choice(
"Eat someone",
"Slurp",
(world, executor) => {
const snack = new Creatures.Human(new ProperNoun(["Snack", "Treat", "Tasty", "Dinner", "Appetizer"][Math.floor(Math.random() * 5)]), TheyPronouns)
snack.applyEffect(new SurrenderEffect())
const options = executor.validActions(snack).filter(action => action instanceof DevourAction)
return options[Math.floor(options.length * Math.random())].execute(executor, snack)
}
)
)

bossEncounters.forEach(encounter => {
bosses.choices.push(
new Choice(


Завантаження…
Відмінити
Зберегти