From e4a7c18c359f128a68f560ca05eafb739933a06d Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 8 Aug 2020 00:01:09 -0400 Subject: [PATCH] Allow Geta's opponents to shrink and crush him --- src/game/creatures/geta.ts | 81 ++++++++++++++++++++++---------------- 1 file changed, 46 insertions(+), 35 deletions(-) diff --git a/src/game/creatures/geta.ts b/src/game/creatures/geta.ts index 0b4a20f..3bae277 100644 --- a/src/game/creatures/geta.ts +++ b/src/game/creatures/geta.ts @@ -58,45 +58,56 @@ export class Geta extends Creature { biconnectContainers(cock, balls) + const shrinkAction = new CompositionAction( + "Shrink", + "Zap!", + { + conditions: [ + new TogetherCondition() + ], + consequences: [ + new LogConsequence( + (user, target) => new LogLine(`ZAP!`) + ), + new StatusConsequence( + () => new SizeEffect(0.25) + ) + ] + } + ) this.actions.push( - new CompositionAction( - "Shrink", - "Zap!", - { - conditions: [ - new TogetherCondition() - ], - consequences: [ - new LogConsequence( - (user, target) => new LogLine(`ZAP!`) - ), - new StatusConsequence( - () => new SizeEffect(0.25) - ) - ] - } - ) + shrinkAction + ) + + this.otherActions.push( + shrinkAction + ) + + const crushAction = new CompositionAction( + "Crush", + "Crush them like a bug underfoot", + { + conditions: [ + new TogetherCondition(), + new MassRatioCondition(10) + ], + consequences: [ + new LogConsequence( + (user, target) => new LogLine(`CRUNCH`) + ), + new StatusConsequence( + () => new InstantKillEffect() + ) + ] + } ) this.actions.push( - new CompositionAction( - "Crush", - "Crush them like a bug underfoot", - { - conditions: [ - new TogetherCondition(), - new MassRatioCondition(10) - ], - consequences: [ - new LogConsequence( - (user, target) => new LogLine(`CRUNCH`) - ), - new StatusConsequence( - () => new InstantKillEffect() - ) - ] - } - ) + crushAction + ) + + this.otherActions.push( + crushAction ) } }