|
|
|
@@ -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."; |
|
|
|
} |
|
|
|
|