From 38f5ce7b65a46ce744062965fd90072aa59ad18e Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 8 Aug 2020 18:09:51 -0400 Subject: [PATCH] Fix possessives on some action descriptions --- src/game/combat/actions.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game/combat/actions.ts b/src/game/combat/actions.ts index 45155f3..02571af 100644 --- a/src/game/combat/actions.ts +++ b/src/game/combat/actions.ts @@ -78,7 +78,7 @@ export class AttackAction extends DamageAction { } describe (user: Creature, target: Creature): LogEntry { - return new LogLine(`Attack ${target.name}. `, this.damage.describe(user, target), '. ', super.describe(user, target)) + return new LogLine(`Attack ${target.baseName}. `, this.damage.describe(user, target), '. ', super.describe(user, target)) } successLine: PairLineArgs = (user, target, args) => new LogLine( @@ -159,7 +159,7 @@ export class FeedAction extends Action { } describe (user: Creature, target: Creature): LogEntry { - return new LogLine(`Your willpower is drained, and you really feel like shoving yourself into ${target.name}'s ${this.container.name}...`) + return new LogLine(`Your willpower is drained, and you really feel like shoving yourself into ${target.name.possessive} ${this.container.name}...`) } protected successLine: PairLine = (user, target) => new LogLine( @@ -197,7 +197,7 @@ export class StruggleAction extends Action { } describe (user: Creature, target: Creature): LogEntry { - return new LogLine(`Try to escape from ${target.name}'s ${this.container.name}. `, super.describe(user, target)) + return new LogLine(`Try to escape from ${target.baseName.possessive} ${this.container.name}. `, super.describe(user, target)) } protected successLine: PairLineArgs = (prey, pred, args) => new LogLine( @@ -254,7 +254,7 @@ export class ReleaseAction extends Action { } describe (user: Creature, target: Creature): LogEntry { - return new LogLine(`Release ${target.name} from your ${this.container.name}.`) + return new LogLine(`Release ${target.baseName} from your ${this.container.name}.`) } } @@ -288,6 +288,6 @@ export class TransferAction extends Action { } describe (user: Creature, target: Creature): LogEntry { - return new LogLine(`Push ${target.name} from your ${this.from.name} to your ${this.to.name}`) + return new LogLine(`Push ${target.baseName} from your ${this.from.name} to your ${this.to.name}`) } }