|
|
|
@@ -164,8 +164,16 @@ export class AttackAction extends TogetherAction { |
|
|
|
new FormatText(`${args.damage}`, FormatOpt.Damage), |
|
|
|
` damage` |
|
|
|
)], |
|
|
|
[[POV.Third, POV.First], (user, target, args) => new LogLines(`${user.name.capital} hits you for ${args.damage} damage`)], |
|
|
|
[[POV.Third, POV.Third], (user, target, args) => new LogLines(`${user.name.capital} hits ${target.name.capital} for ${args.damage} damage`)] |
|
|
|
[[POV.Third, POV.First], (user, target, args) => new LogLine( |
|
|
|
`${user.name.capital} smacks you for `, |
|
|
|
new FormatText(`${args.damage}`, FormatOpt.Damage), |
|
|
|
` damage` |
|
|
|
)], |
|
|
|
[[POV.Third, POV.Third], (user, target, args) => new LogLine( |
|
|
|
`${user.name.capital} smacks ${target.name} for `, |
|
|
|
new FormatText(`${args.damage}`, FormatOpt.Damage), |
|
|
|
` damage` |
|
|
|
)] |
|
|
|
]) |
|
|
|
|
|
|
|
protected failLines: POVPair<Entity, Entity> = new POVPair([ |
|
|
|
@@ -277,8 +285,8 @@ export class DigestAction extends SelfAction { |
|
|
|
} |
|
|
|
|
|
|
|
execute (user: Creature, target: Creature): LogEntry { |
|
|
|
const results = new CompositeLog(...user.containers.map(container => container.tick(60))) |
|
|
|
return new CompositeLog(this.lines.run(user, target), results) |
|
|
|
const results = this.container.tick(60) |
|
|
|
return new CompositeLog(results) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|