aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/dungeon.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/dungeon.js b/js/dungeon.js
index a84466e..8b0c0c2 100644
--- a/js/dungeon.js
+++ b/js/dungeon.js
@@ -93,7 +93,10 @@ function endBattle(v,nb, f, ret){
return;
}
}
- var tmphtml = "Le " + v + " a gagné.";
+ var w = "player";
+ if(v == "mob") w = "monster";
+ var tmphtml = "<h4>The " + w + " won.</h4>"
+// var tmphtml = "Le " + v + " a gagné.";
tmphtml += "<button type=\"button\" class=\"btn btn-success\" onclick=\"launchDungeon("+nb+","+ f +",false)\">Next Battle</button>"
document.getElementById("tab4").innerHTML = tmphtml;
displayExit();