diff options
author | elioat <hi@eli.li> | 2024-10-21 11:08:28 -0400 |
---|---|---|
committer | elioat <hi@eli.li> | 2024-10-21 11:08:28 -0400 |
commit | 0869a24d9ad412b1f6360de5cf7f318521966815 (patch) | |
tree | 9218628e18d14835919737099774193764375c33 /html/broughlike | |
parent | 9fdf2ebdd7d6b0cb09a7f9874c46e82feb9fb356 (diff) | |
download | tour-0869a24d9ad412b1f6360de5cf7f318521966815.tar.gz |
*
Diffstat (limited to 'html/broughlike')
-rw-r--r-- | html/broughlike/index.html | 4 |
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(); |