Browse Source

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

vintage
Fen Dweller 5 years ago
parent
commit
443c970726
2 changed files with 6 additions and 2 deletions
  1. +2
    -2
      src/game/creatures/cafat.ts
  2. +4
    -0
      src/game/maps/town.ts

+ 2
- 2
src/game/creatures/cafat.ts View File

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


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


+ 4
- 0
src/game/maps/town.ts View File

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




Loading…
Cancel
Save