From f15b99e7d708ec7edf9c832ffdfdc2462c5be18d Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 8 Aug 2020 06:25:42 -0400 Subject: [PATCH] Allow Geta to eat someone held in his hand --- src/game/creatures/geta.ts | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/game/creatures/geta.ts b/src/game/creatures/geta.ts index 32d8f9b..551a6f0 100644 --- a/src/game/creatures/geta.ts +++ b/src/game/creatures/geta.ts @@ -2,8 +2,8 @@ import { Creature } from "../creature" import { Damage, DamageType, ConstantDamageFormula, Vigor, Side, CompositionAction } from '../combat' import { MalePronouns, ImproperNoun, ProperNoun, ObjectPronouns, FemalePronouns, TheyPronouns, Verb } from '../language' import { VoreType, Stomach, Bowels, Cock, Balls, anyVore, Slit, Womb, biconnectContainers, Hand } from '../vore' -import { AttackAction, TransferAction, FeedAction } from '../combat/actions' -import { StatusConsequence, LogConsequence, DamageConsequence } from '../combat/consequences' +import { AttackAction, TransferAction, FeedAction, DevourAction } from '../combat/actions' +import { StatusConsequence, LogConsequence, DamageConsequence, ArbitraryConsequence } from '../combat/consequences' import { SizeEffect, DamageTypeResistanceEffect, InstantKillEffect } from '../combat/effects' import { LogLine } from '../interface' import { TogetherCondition, MassRatioCondition, ContainsCondition } from '../combat/conditions' @@ -118,6 +118,23 @@ export class Geta extends Creature { hand ) + this.actions.push( + new CompositionAction( + "Devour", + "Pop your prey into your mouth", + { + conditions: [ + new ContainsCondition(hand) + ], + consequences: [ + new ArbitraryConsequence( + (user, target) => stomach.consume(target) + ) + ] + } + ) + ) + this.actions.push( new CompositionAction( "Grip",