thank you )

This commit is contained in:
James 2022-09-26 14:43:35 +02:00
parent 923d14d5ea
commit 07f3a665c2

View File

@ -941,28 +941,23 @@
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())
if ($("#mob_ammount").val() > 1 {
if ($("#mob_ammount").val() > 1) {
// FIX HP
usingHPDice(false);
$("#mob_hp_type_rolled").attr("disabled", true);
$("#mob_hp_type_averages").prop("checked", true);
usingDMGDice(false);
$("#mob_dmg_type_rolled").attr("disabled", true);
$("#mob_dmg_type_averages").prop("checked", true);
} else {
$("#mob_hp_type_rolled").removeAttr("disabled");
$("#mob_dmg_type_rolled").removeAttr("disabled");
}
}
function setMobMultiattack(p) {
if (p === "hidden") {
$("#mob_multiattack_card").hide("fast");
@ -971,7 +966,6 @@
} else {
$("#mob_multiattack_card").show("fast");
}
}
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_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_summary").html("");
}
}
};
</script>
</body>
</html>