diff --git a/combat.js b/combat.js index 0c4c947..14a3666 100644 --- a/combat.js +++ b/combat.js @@ -467,7 +467,7 @@ function digestPlayerStomach(predator,damage=20) { }; } -function instakillPlayerStomach(pedator) { +function instakillPlayerStomach(predator) { return { digest: function(player) { player.health = -100; diff --git a/feast.html b/feast.html index c70c3a2..7f68220 100644 --- a/feast.html +++ b/feast.html @@ -51,6 +51,9 @@
Vim: 21
Pulchritude: 21
Imagination: 66
+
Blood Sugar: 99
+
Daylight: Filled
+
Sonhearst: Alive
diff --git a/feast.js b/feast.js index 38a199a..72f2438 100644 --- a/feast.js +++ b/feast.js @@ -130,7 +130,7 @@ function updateEaten() { struggles = filterValid(currentFoe.struggles, currentFoe, player); else struggles = [submit(currentFoe)]; - + for (let i = 0; i < struggles.length; i++) { let li = document.createElement("li"); let button = document.createElement("button"); @@ -174,6 +174,9 @@ function updateCombat() { document.getElementById("stat-foe-name").innerHTML = "Name: " + currentFoe.name; document.getElementById("stat-foe-health").innerHTML = "Health: " + currentFoe.health + "/" + currentFoe.maxHealth; document.getElementById("stat-foe-stamina").innerHTML = "Stamina: " + currentFoe.stamina + "/" + currentFoe.maxStamina; + document.getElementById("stat-foe-str").innerHTML = "Str: " + currentFoe.str; + document.getElementById("stat-foe-dex").innerHTML = "Dex: " + currentFoe.dex; + document.getElementById("stat-foe-con").innerHTML = "Con: " + currentFoe.con; } function updateDialog() {