소스 검색

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(


불러오는 중...
취소
저장