|
|
|
@@ -3,7 +3,7 @@ import { DynText, LiveText, TextLike, Verb, PairLine, PairLineArgs } from '../la |
|
|
|
import { Entity } from '../entity' |
|
|
|
import { Creature } from "../creature" |
|
|
|
import { Damage, DamageFormula, Stat, Vigor, Action } from '../combat' |
|
|
|
import { LogLine, LogLines, LogEntry, CompositeLog, nilLog } from '../interface' |
|
|
|
import { LogLine, LogLines, LogEntry, nilLog } from '../interface' |
|
|
|
import { VoreContainer, Container } from '../vore' |
|
|
|
import { CapableCondition, UserDrainedVigorCondition, TogetherCondition, EnemyCondition, SoloCondition, PairCondition, ContainsCondition, ContainedByCondition } from './conditions' |
|
|
|
|
|
|
|
@@ -43,7 +43,7 @@ export class AttackAction extends Action { |
|
|
|
const damage = this.damage.calc(user, target) |
|
|
|
const targetResult = target.takeDamage(damage) |
|
|
|
const ownResult = this.successLine(user, target, { damage: damage }) |
|
|
|
return new CompositeLog(ownResult, targetResult) |
|
|
|
return new LogLines(ownResult, targetResult) |
|
|
|
} else { |
|
|
|
return this.failLine(user, target) |
|
|
|
} |
|
|
|
@@ -217,7 +217,7 @@ export class DigestAction extends Action { |
|
|
|
|
|
|
|
execute (user: Creature, target: Creature): LogEntry { |
|
|
|
const results = this.container.tick(60) |
|
|
|
return new CompositeLog(results) |
|
|
|
return new LogLines(results) |
|
|
|
} |
|
|
|
|
|
|
|
describe (user: Creature, target: Creature): LogEntry { |
|
|
|
|