|
|
|
@@ -10,8 +10,9 @@ import { |
|
|
|
import { DynText, LiveText, ToBe, Verb } from "@/game/language" |
|
|
|
import { Creature } from "../creature" |
|
|
|
import { LogLine, LogEntry, LogLines, FAElem, nilLog } from "@/game/interface" |
|
|
|
import { Container } from "@/game/vore" |
|
|
|
import { Container, ContainerCapability } from "@/game/vore" |
|
|
|
import * as Words from "@/game/words" |
|
|
|
import * as Onomatopoeia from "@/game/onomatopoeia" |
|
|
|
|
|
|
|
export class InstantKillEffect extends StatusEffect { |
|
|
|
constructor () { |
|
|
|
@@ -307,7 +308,10 @@ export class InstantDigestionEffect extends StatusEffect { |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
|
|
postConsume (predator: Creature, prey: Creature, container: Container) { |
|
|
|
postEnter (predator: Creature, prey: Creature, container: Container) { |
|
|
|
if (!container.capabilities.has(ContainerCapability.Digest)) { |
|
|
|
return nilLog |
|
|
|
} |
|
|
|
prey.applyEffect(new InstantKillEffect()) |
|
|
|
predator.voreStats.Mass += prey.voreStats.Mass |
|
|
|
prey.voreStats.Mass = 0 |
|
|
|
@@ -316,6 +320,7 @@ export class InstantDigestionEffect extends StatusEffect { |
|
|
|
new ToBe() |
|
|
|
)} instantly digested! `, |
|
|
|
new FAElem("fas fa-skull"), |
|
|
|
Onomatopoeia.makeOnomatopoeia(Onomatopoeia.Crunch), |
|
|
|
container.tick(0, [prey]) |
|
|
|
) |
|
|
|
} |
|
|
|
|