From 36786e6ce5436373202a3feeae460cd782e9e744 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 8 Aug 2020 10:42:05 -0400 Subject: [PATCH] Allow vore if the prey exactly fits (and increase the dragon's stomach size) --- src/game/combat/conditions.ts | 2 +- src/game/creatures/dragon.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/combat/conditions.ts b/src/game/combat/conditions.ts index a9f9e5a..1f40c74 100644 --- a/src/game/combat/conditions.ts +++ b/src/game/combat/conditions.ts @@ -62,7 +62,7 @@ export class HasRoomCondition implements Condition { } allowed (user: Creature, target: Creature): boolean { - return this.container.capacity > this.container.fullness + target.voreStats.Bulk + return this.container.capacity >= this.container.fullness + target.voreStats.Bulk } } diff --git a/src/game/creatures/dragon.ts b/src/game/creatures/dragon.ts index f72dc2c..b145958 100644 --- a/src/game/creatures/dragon.ts +++ b/src/game/creatures/dragon.ts @@ -20,7 +20,7 @@ export class Dragon extends Creature { this.side = Side.Monsters - const stomach = new Stomach(this, 50, new Damage( + const stomach = new Stomach(this, 200, new Damage( { amount: 40, type: DamageType.Acid, target: Vigor.Health }, { amount: 20, type: DamageType.Crush, target: Vigor.Stamina }, { amount: 20, type: DamageType.Dominance, target: Vigor.Resolve } @@ -28,7 +28,7 @@ export class Dragon extends Creature { this.containers.push(stomach) - const bowels = new Bowels(this, 50, new Damage( + const bowels = new Bowels(this, 200, new Damage( { amount: 10, type: DamageType.Crush, target: Vigor.Health }, { amount: 25, type: DamageType.Crush, target: Vigor.Stamina }, { amount: 50, type: DamageType.Dominance, target: Vigor.Resolve }