about summary refs log tree commit diff stats
path: root/html/broughlike
diff options
context:
space:
mode:
authorelioat <hi@eli.li>2024-10-21 11:08:28 -0400
committerelioat <hi@eli.li>2024-10-21 11:08:28 -0400
commit0869a24d9ad412b1f6360de5cf7f318521966815 (patch)
tree9218628e18d14835919737099774193764375c33 /html/broughlike
parent9fdf2ebdd7d6b0cb09a7f9874c46e82feb9fb356 (diff)
downloadtour-0869a24d9ad412b1f6360de5cf7f318521966815.tar.gz
*
Diffstat (limited to 'html/broughlike')
-rw-r--r--html/broughlike/index.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/html/broughlike/index.html b/html/broughlike/index.html
index 34e40e2..2d09c92 100644
--- a/html/broughlike/index.html
+++ b/html/broughlike/index.html
@@ -406,7 +406,7 @@
             }
 
             if (player.health <= 0) {
-                alert(`Dead\n\nScore: ${player.score}\nDistance Traveled: ${player.cellsTraveled}\nTotal Damage Dealt: ${player.totalDamageDone}\nTotal Damage Received: ${player.totalDamageTaken}\nEnemies Vanquished: ${player.killCount}`);
+                alert(`Dead\n\nScore: ${player.score}\nDistance Traveled: ${player.cellsTraveled}\nTotal Damage Dealt: ${player.totalDamageDone}\nTotal Damage Received: ${player.totalDamageTaken}\nCircles Vanquished: ${player.killCount}`);
                 resetGame();
             }
         }
@@ -419,6 +419,7 @@
             player.totalDamageTaken = 0;
             player.cellsTraveled = 0;
             player.score = 0;
+            player.killCount = 0;
             player.x = 0;
             player.y = 0;
             combatDots = {};
@@ -439,6 +440,7 @@
                 console.log("Distance Traveled: " + player.cellsTraveled);
                 console.log("Total Damage Dealt: " + player.totalDamageDone);
                 console.log("Total Damage Received: " + player.totalDamageTaken);
+                console.log("Circles Vanquished: " + player.killCount);
                 console.groupEnd();
                 combatDots = {};
                 generateExit();