ソースを参照

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(


読み込み中…
キャンセル
保存