From 3a7f4115666713e793cdd65a3a6a5481d9996045 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Tue, 18 Aug 2020 14:08:40 -0400 Subject: [PATCH] Fix lingering issues from changing from properties to methods --- src/game/creatures/geta.ts | 10 +++++----- src/game/creatures/shingo.ts | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/game/creatures/geta.ts b/src/game/creatures/geta.ts index b845e56..6d2187c 100644 --- a/src/game/creatures/geta.ts +++ b/src/game/creatures/geta.ts @@ -42,16 +42,16 @@ export class Geta extends Creature { this.otherActions.push(new FeedAction(stomach)) - const cock = new Cock(this, 0.25, new ConstantDamageFormula(new Damage( + const cock = new class extends Cock { + digestLine (user: Creature, target: Creature) { + return new LogLine(`${user.name.capital.possessive} ${this.name} throbs as it abruptly absorbs ${target.name.objective}, transforming ${target.name.objective} into more of ${user.pronouns.possessive} meaty shaft.`) + } + }(this, 0.25, new ConstantDamageFormula(new Damage( { amount: 10, type: DamageType.Crush, target: Vigor.Health }, { amount: 50, type: DamageType.Crush, target: Vigor.Stamina }, { amount: 150, type: DamageType.Dominance, target: Vigor.Resolve } ))) - cock.digestLine = (user, target, args) => { - return new LogLine(`${user.name.capital.possessive} ${args.container.name} throbs as it abruptly absorbs ${target.name.objective}, transforming ${target.name.objective} into more of ${user.pronouns.possessive} meaty shaft.`) - } - cock.actions.push( new CompositionAction( "Clench", diff --git a/src/game/creatures/shingo.ts b/src/game/creatures/shingo.ts index 03b8962..a120a90 100644 --- a/src/game/creatures/shingo.ts +++ b/src/game/creatures/shingo.ts @@ -50,8 +50,8 @@ class Hand extends NormalContainer { )) } - consumeLine: PairLineArgs = (user, target, args) => { - return new LogLine(`${user.name.capital} ${user.name.conjugate(this.consumeVerb)} ${target.name.objective} up in ${user.pronouns.possessive} ${args.container.name}, giving ${target.pronouns.objective} a firm squeeze in ${user.pronouns.possessive} fingers.`) + consumeLine (user: Creature, target: Creature) { + return new LogLine(`${user.name.capital} ${user.name.conjugate(this.consumeVerb)} ${target.name.objective} up in ${user.pronouns.possessive} ${this.name}, giving ${target.pronouns.objective} a firm squeeze in ${user.pronouns.possessive} fingers.`) } } @@ -100,8 +100,8 @@ class Paw extends NormalContainer { )) } - consumeLine: PairLineArgs = (user, target, args) => { - return new LogLine(`${user.name.capital} ${user.name.conjugate(this.consumeVerb)} ${target.name.objective} beneath ${user.pronouns.possessive} ${args.container.name}.`) + consumeLine (user: Creature, target: Creature) { + return new LogLine(`${user.name.capital} ${user.name.conjugate(this.consumeVerb)} ${target.name.objective} beneath ${user.pronouns.possessive} ${this.name}.`) } }