LudiPQ & OrbisPQ patch

Fixed some latent issues with LudiPQ and OrbisPQ. Added stage EXP rewarding to the TreasurePQ.
This commit is contained in:
ronancpl
2018-03-07 11:28:01 -03:00
parent bbd2debc08
commit 90ed45d1c3
5 changed files with 24 additions and 15 deletions

View File

@@ -123,7 +123,13 @@ function action(mode, type, selection) {
}
if (playersOnCombo == 5 || cm.getPlayer().gmLevel() > 1) {
var combo = eim.getProperty("stage" + stage + "combo").split(',');
var comboStr = eim.getProperty("stage" + stage + "combo");
if(comboStr == null) {
comboStr = generateCombo();
eim.setProperty("stage" + stage + "combo", comboStr);
}
var combo = comboStr.split(',');
var correctCombo = true;
for (i = 0; i < objset.length && correctCombo; i++)
if (parseInt(combo[i]) != objset[i]) {