|
|
|
@@ -144,6 +144,9 @@ export abstract class DefaultContainer implements Container { |
|
|
|
this.actions.push(new ReleaseAction(this)) |
|
|
|
this.actions.push(new StruggleAction(this)) |
|
|
|
} |
|
|
|
if (capabilities.has(ContainerCapability.Digest)) { |
|
|
|
this.actions.push(new RubAction(this)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
connect (connection: Connection): void { |
|
|
|
@@ -258,7 +261,7 @@ export abstract class DefaultContainer implements Container { |
|
|
|
const options = [ |
|
|
|
new LogLine(`${user.name.capital} ${user.name.conjugate(Words.Churns)} ${target.name.objective} ${this.strugglePreposition} ${user.pronouns.possessive} ${this.name} for `, args.damage.renderShort(), `.`), |
|
|
|
new LogLine(`${user.name.capital.possessive} ${this.name} ${user.name.conjugate(Words.Churns)}, ${Words.Churns.present} ${target.name.objective} for `, args.damage.renderShort(), `.`), |
|
|
|
new LogLine(`${target.name.capital} ${target.name.conjugate(new Verb("thrash", "thrashes"))} ${this.strugglePreposition} ${user.name.possessive} ${Words.Slick} ${this.name} as it ${Words.Churns.singular} ${target.pronouns.objective} for `, args.damage.renderShort(), `.`) |
|
|
|
new LogLine(`${target.name.capital} ${target.name.conjugate(Words.Struggle)} ${this.strugglePreposition} ${user.name.possessive} ${Words.Slick} ${this.name} as it ${Words.Churns.singular} ${target.pronouns.objective} for `, args.damage.renderShort(), `.`) |
|
|
|
] |
|
|
|
|
|
|
|
if (this.fluid) { |
|
|
|
@@ -420,6 +423,6 @@ export class Throat extends DefaultContainer { |
|
|
|
|
|
|
|
export function transferDescription (verb: Word, preposition: Preposition): ((from: Container, to: Container, prey: Creature) => LogEntry) { |
|
|
|
return (from: Container, to: Container, prey: Creature) => { |
|
|
|
return new LogLine(`${from.owner.name.capital} ${verb.singular} ${prey.name.objective} ${preposition} ${to.consumePreposition} ${from.owner.name.possessive} ${to.name}.`) |
|
|
|
return new LogLine(`${from.owner.name.capital} ${verb.singular} ${prey.name.objective} ${preposition} ${to.consumePreposition} ${from.owner.pronouns.possessive} ${to.name}.`) |
|
|
|
} |
|
|
|
} |