From 0869a24d9ad412b1f6360de5cf7f318521966815 Mon Sep 17 00:00:00 2001 From: elioat Date: Mon, 21 Oct 2024 11:08:28 -0400 Subject: * --- html/broughlike/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'html/broughlike') 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(); -- cgit 1.4.1-2-gfad0