소스 검색

Added a halfway description for digestion

tags/v0.2.8
Fen Dweller 7 년 전
부모
커밋
50b148e5f1
2개의 변경된 파일13개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      feast.html
  2. +12
    -0
      vore.js

+ 1
- 1
feast.html 파일 보기

@@ -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 파일 보기

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


불러오는 중...
취소
저장