aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-05-10 23:35:45 +0200
committerpiernov <piernov@piernov.org>2016-05-10 23:35:45 +0200
commit21aedf3aec9de4f87c8598b32a2a0b1c18a0c43d (patch)
treef25e3df40fc24f6a669a8df19856e0d261ecae60 /js
parent0cadb3d7df4ed2f41e1cc08a2da8687821bd3949 (diff)
downloadcandybox-21aedf3aec9de4f87c8598b32a2a0b1c18a0c43d.tar.gz
candybox-21aedf3aec9de4f87c8598b32a2a0b1c18a0c43d.tar.bz2
candybox-21aedf3aec9de4f87c8598b32a2a0b1c18a0c43d.tar.xz
candybox-21aedf3aec9de4f87c8598b32a2a0b1c18a0c43d.zip
Dirty fix for message
Diffstat (limited to 'js')
-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();