From 21aedf3aec9de4f87c8598b32a2a0b1c18a0c43d Mon Sep 17 00:00:00 2001 From: piernov Date: Tue, 10 May 2016 23:35:45 +0200 Subject: Dirty fix for message --- js/dungeon.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 = "

The " + w + " won.

" +// var tmphtml = "Le " + v + " a gagné."; tmphtml += "" document.getElementById("tab4").innerHTML = tmphtml; displayExit(); -- cgit v1.2.3-70-g09d2