浏览代码

Fix possessives on some action descriptions

vintage
Fen Dweller 5 年前
父节点
当前提交
38f5ce7b65
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. +5
    -5
      src/game/combat/actions.ts

+ 5
- 5
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<Creature, { damage: Damage }> = (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<Entity> = (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<Entity, { container: Container }> = (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}`)
}
}

正在加载...
取消
保存