瀏覽代碼

Fix Cafat's crush action; add them to the boss lineup

master
Fen Dweller 5 年之前
父節點
當前提交
443c970726
共有 2 個檔案被更改,包括 6 行新增2 行删除
  1. +2
    -2
      src/game/creatures/cafat.ts
  2. +4
    -0
      src/game/maps/town.ts

+ 2
- 2
src/game/creatures/cafat.ts 查看文件

@@ -6,7 +6,7 @@ import { LogLine, LogLines, LogEntry, FAElem, ImgElem } from '../interface'
import { AttackAction, TransferAction, FeedAction } from '../combat/actions'
import { InstantKillEffect } from '../combat/effects'
import * as Words from '../words'
import { ContainedByCondition } from '../combat/conditions'
import { ContainedByCondition, ContainsCondition } from '../combat/conditions'

class BellyCrushAction extends AttackAction {
constructor (_damage: Damage) {
@@ -51,7 +51,7 @@ class CrushAction extends Action {
"Crush",
"Crush 'em!",
[
new ContainedByCondition(container)
new ContainsCondition(container)
]
)
this.desc = "Crush somebody in your gut"


+ 4
- 0
src/game/maps/town.ts 查看文件

@@ -138,6 +138,10 @@ export const Town = (): Place => {
new Encounter(
{ name: "Large Wah", intro: (world: World) => nilLog },
makeParty().concat([new Creatures.Shingo()])
),
new Encounter(
{ name: "Cafat", intro: (world: World) => nilLog },
makeParty().concat([new Creatures.Cafat()])
)
]



Loading…
取消
儲存