thank you )
This commit is contained in:
parent
923d14d5ea
commit
07f3a665c2
17
index.php
17
index.php
@ -943,26 +943,21 @@
|
|||||||
function setMobs() {
|
function setMobs() {
|
||||||
$("#mob_multiattack_ammount").attr("placeholder", "X / " + $("#mob_ammount").val())
|
$("#mob_multiattack_ammount").attr("placeholder", "X / " + $("#mob_ammount").val())
|
||||||
$("#mob_multiattack_ammount").attr("max", $("#mob_ammount").val())
|
$("#mob_multiattack_ammount").attr("max", $("#mob_ammount").val())
|
||||||
|
if ($("#mob_ammount").val() > 1) {
|
||||||
if ($("#mob_ammount").val() > 1 {
|
|
||||||
|
|
||||||
// FIX HP
|
// FIX HP
|
||||||
usingHPDice(false);
|
usingHPDice(false);
|
||||||
$("#mob_hp_type_rolled").attr("disabled", true);
|
$("#mob_hp_type_rolled").attr("disabled", true);
|
||||||
$("#mob_hp_type_averages").prop("checked", true);
|
$("#mob_hp_type_averages").prop("checked", true);
|
||||||
|
|
||||||
|
|
||||||
usingDMGDice(false);
|
usingDMGDice(false);
|
||||||
$("#mob_dmg_type_rolled").attr("disabled", true);
|
$("#mob_dmg_type_rolled").attr("disabled", true);
|
||||||
$("#mob_dmg_type_averages").prop("checked", true);
|
$("#mob_dmg_type_averages").prop("checked", true);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$("#mob_hp_type_rolled").removeAttr("disabled");
|
$("#mob_hp_type_rolled").removeAttr("disabled");
|
||||||
$("#mob_dmg_type_rolled").removeAttr("disabled");
|
$("#mob_dmg_type_rolled").removeAttr("disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function setMobMultiattack(p) {
|
function setMobMultiattack(p) {
|
||||||
if (p === "hidden") {
|
if (p === "hidden") {
|
||||||
$("#mob_multiattack_card").hide("fast");
|
$("#mob_multiattack_card").hide("fast");
|
||||||
@ -971,7 +966,6 @@
|
|||||||
} else {
|
} else {
|
||||||
$("#mob_multiattack_card").show("fast");
|
$("#mob_multiattack_card").show("fast");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function usingHPDice(e) {
|
function usingHPDice(e) {
|
||||||
@ -1009,11 +1003,6 @@
|
|||||||
$("#diff_description").html("I was unable to find a calculation with those parameters.... or any programming at all... give me some time, i'm still working on this app, after all.");
|
$("#diff_description").html("I was unable to find a calculation with those parameters.... or any programming at all... give me some time, i'm still working on this app, after all.");
|
||||||
$("#diff_summary").html("#err_notfound");
|
$("#diff_summary").html("#err_notfound");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1039,7 +1028,7 @@
|
|||||||
$("#diff_description").html("This is the real deal. You will suffer losses. Maybe your party will die... or enslaved.. or enslaved and then killed... However, there is hope! <b> Okay no, I lied.your Party is dead.");
|
$("#diff_description").html("This is the real deal. You will suffer losses. Maybe your party will die... or enslaved.. or enslaved and then killed... However, there is hope! <b> Okay no, I lied.your Party is dead.");
|
||||||
$("#diff_summary").html("");
|
$("#diff_summary").html("");
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user