Compare commits

..

3 Commits

Author SHA1 Message Date
James
a5d17eeac8 Update index.php 2022-09-27 09:40:47 +02:00
James
5e2987fe91 Update index.php 2022-09-27 09:39:12 +02:00
James
050fb84c5e Update index.php 2022-09-27 09:36:47 +02:00

View File

@ -193,9 +193,9 @@
<span class="card-title">Basics</span> <span class="card-title">Basics</span>
<div class="card black"> <div class="card black">
<div class="card-content white-text"> <div class="card-content white-text">
<span class="card-title">Amount</span> <span class="card-title">Amount (EXPERIMENTAL)</span>
<span>How many bad guys? Anything above 1 will enforce average calculations</span><br> <span>How many bad guys? Anything above 1 will enforce average calculations</span><br>
<b class="red-text">CHANGING THIS WILL RESET THE HP CALCULATION</b> <b class="red-text">Changing this will reset the HP and Damage calculations and deactivate dice rolled HP.</b>
<div class="input-field s3"> <div class="input-field s3">
<input placeholder="How many eggs for a cake?" onchange="setMobs()" id="mob_ammount" min="1" type="number" class="white-text validate" /> <input placeholder="How many eggs for a cake?" onchange="setMobs()" id="mob_ammount" min="1" type="number" class="white-text validate" />
</div> </div>
@ -205,7 +205,7 @@
<div class="card-content white-text"> <div class="card-content white-text">
<span class="card-title">Health kind</span> <span class="card-title">Health kind</span>
<span>Are we using Max, Average or rolled HP?</span><br /> <span>Are we using Max, Average or rolled HP?</span><br />
<label> <input id="mob_hp_type_averages" name="mob_hp_type" type="radio" checked onchange="usingHPDice('averages')" /> <span>Averages</span> </label> <label> <input id="mob_hp_type_averages" name="mob_hp_type" type="radio" checked onchange="usingHPDice('average')" /> <span>Averages</span> </label>
<label> <input id="mob_hp_type_rolled" name="mob_hp_type" type="radio" onchange="usingHPDice('dice')" /> <span>Hit Dice</span> </label> <label> <input id="mob_hp_type_rolled" name="mob_hp_type" type="radio" onchange="usingHPDice('dice')" /> <span>Hit Dice</span> </label>
<label> <input id="mob_hp_type_max" name="mob_hp_type" type="radio" onchange="usingHPDice('max')" /> <span>Max</span> </label> <label> <input id="mob_hp_type_max" name="mob_hp_type" type="radio" onchange="usingHPDice('max')" /> <span>Max</span> </label>
</div> </div>
@ -291,6 +291,7 @@
</div> </div>
<div id="DMG_max_card" class="card black"> <div id="DMG_max_card" class="card black">
<div class="card-content white-text"> <div class="card-content white-text">
<span class="card-title">Max Damage</span>
<span>What's the max ammount of damage the enemy can deal?</span> <span>What's the max ammount of damage the enemy can deal?</span>
<div class="input-field s1"> <div class="input-field s1">
<input placeholder="x times the hit dieces' sides." id="mob_dmg_max" min="1" type="number" class="white-text validate" /> <input placeholder="x times the hit dieces' sides." id="mob_dmg_max" min="1" type="number" class="white-text validate" />
@ -944,13 +945,14 @@
$(".collapsible").collapsible(); $(".collapsible").collapsible();
$("#HP_max_card").hide(); $("#HP_max_card").hide();
$("#HP_hitdice_card").hide(); $("#HP_hitdice_card").hide();
$("#DMG_max_card").hide();
$("#DMG_average_card").hide();
$("#dmg_hitdice").hide(); $("#dmg_hitdice").hide();
$("#mob_multiattack_card").hide("fast"); $("#mob_multiattack_card").hide("fast");
}); });
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
function healingMode(t) { function healingMode(t) {
if (t) { if (t) {
if ($("#mob_healing_other_touch").is(':checked') || $("#mob_healing_self").is(':checked') || $("#mob_healing_other_aoe").is(':checked')) { if ($("#mob_healing_other_touch").is(':checked') || $("#mob_healing_self").is(':checked') || $("#mob_healing_other_aoe").is(':checked')) {
$("#mob_healing_noheal").prop("checked", false); $("#mob_healing_noheal").prop("checked", false);
@ -1005,7 +1007,7 @@
$("#mob_hp_dice_type").val(""); $("#mob_hp_dice_type").val("");
$("#mob_hp_max").val(""); $("#mob_hp_max").val("");
break; break;
case "averages": case "average":
$("#HP_max_card").hide("fast"); $("#HP_max_card").hide("fast");
$("#HP_hitdice_card").hide("fast"); $("#HP_hitdice_card").hide("fast");
$("#HP_average_card").show("fast"); $("#HP_average_card").show("fast");