From 50b148e5f1346b53e8404ff4a65e3e8df0b5e5f6 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sun, 11 Mar 2018 22:54:39 -0400 Subject: [PATCH] Added a halfway description for digestion --- feast.html | 2 +- vore.js | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/feast.html b/feast.html index bd40e71..e86945d 100644 --- a/feast.html +++ b/feast.html @@ -24,7 +24,7 @@
- Welcome to Feast v0.0.2 + Welcome to Feast v0.0.3
Time: to get a watch
diff --git a/vore.js b/vore.js index 237db28..5adb0ef 100644 --- a/vore.js +++ b/vore.js @@ -111,6 +111,10 @@ class Container { prey.health -= damage; time -= damage / this.damageRate; + if (prey.health + damage > 50 && prey.health <= 50) { + lines.push(this.describeDamage(prey)); + } + if (prey.health <= 0) { lines.push(this.describeKill(prey)); } @@ -153,6 +157,10 @@ class Stomach extends Container { this.bowels = bowels; } + describeDamage(prey) { + return "Your guts gurgle and churn, slowly wearing down the " + prey.description() + " trapped within."; + } + describeKill(prey) { return "The " + prey.description() + "'s struggles wane as your stomach overpowers them."; } @@ -196,6 +204,10 @@ class Butt extends Container { return lines; } + describeDamage(prey) { + return "Your bowels gurgle and squeeze, working to wear down the " + prey.description() + " trapped in those musky confines."; + } + describeKill(prey) { return "The " + prey.description() + " abruptly stops struggling, overpowered by your winding intestines."; }