diff --git a/index.php b/index.php index cadee1e..4d9d99f 100644 --- a/index.php +++ b/index.php @@ -210,9 +210,9 @@ -
+
- Health definition + Health Rolls How many Dice are used for the calculation?
@@ -224,6 +224,7 @@
+ Health Averages
What's the average HP of the Enemy?
@@ -232,6 +233,7 @@
+ Health Maxes
What's the max rolled HP of all enemies?
@@ -986,28 +988,35 @@ function usingHPDice(e) { if (e) { - $("#HP_max").hide("fast"); - $("#HP_average").hide("fast"); + $("#HP_max_card").hide("fast"); + $("#HP_average_card").hide("fast"); + $("#HP_hitdice_card").show("fast"); + + $("#mob_hp_avg").val(""); $("#mob_hp_dice_ammount").val(""); $("#mob_hp_dice_type").val(""); - $("#HP_hitdice").show("fast"); $("#mob_hp_max").val(""); - } else if (e == false) { - $("#HP_max").hide("fast"); - $("#HP_hitdice").hide("fast"); - $("#mob_hp_avg").val(""); - $("#HP_average").show("fast"); - $("#mob_hp_max").val(""); - } else if (e == "max") { - console.log("hello"); - $("#HP_average").hide("fast"); - $("#HP_hitdice").hide("fast"); - $("#HP_max").show("fast"); + } else if (e == false) { + $("#HP_max_card").hide("fast"); + $("#HP_hitdice_card").hide("fast"); + $("#HP_average_card").show("fast"); + $("#mob_hp_avg").val(""); $("#mob_hp_dice_ammount").val(""); $("#mob_hp_dice_type").val(""); + $("#mob_hp_max").val(""); + } else if (e == "max") { + + $("#HP_max_card").show("fast"); + $("#HP_hitdice_card").hide("fast"); + $("#HP_average_card").hide("fast"); + + $("#mob_hp_avg").val(""); + $("#mob_hp_dice_ammount").val(""); + $("#mob_hp_dice_type").val(""); + $("#mob_hp_max").val(""); } calcDiff(); }