From 3bf0feee78220e4141f2d14cfbf30322ad8b3eb3 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Tue, 4 Aug 2020 16:22:33 -0400 Subject: [PATCH] Move the 'eat someone' button outside and add some name variety --- src/game/maps/town.ts | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/game/maps/town.ts b/src/game/maps/town.ts index f27bc8a..d73abc9 100644 --- a/src/game/maps/town.ts +++ b/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(