Ver código fonte

Added a halfway description for digestion

tags/v0.2.8
Fen Dweller 7 anos atrás
pai
commit
50b148e5f1
2 arquivos alterados com 13 adições e 1 exclusões
  1. +1
    -1
      feast.html
  2. +12
    -0
      vore.js

+ 1
- 1
feast.html Ver arquivo

@@ -24,7 +24,7 @@
<div id="game">
<div id="game-and-stats">
<div id="log">
Welcome to Feast v0.0.2
Welcome to Feast v0.0.3
</div>
<div id="stats">
<div class="stat-line" id="time">Time: to get a watch</div>


+ 12
- 0
vore.js Ver arquivo

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


Carregando…
Cancelar
Salvar