From abed0630287cce4db454df5667332025a6a471b3 Mon Sep 17 00:00:00 2001 From: James <9213561+Gensokian@users.noreply.github.com> Date: Mon, 26 Sep 2022 14:58:32 +0200 Subject: [PATCH] Update index.php --- index.php | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index c077fa5..8b681c5 100644 --- a/index.php +++ b/index.php @@ -204,9 +204,10 @@
Health kind - Are we using Average Health or HP Dice?
+ Are we using Max, Average or rolled HP?
+
@@ -228,6 +229,12 @@
+
+ What's the max rolled HP of all enemies? +
+ +
+
@@ -249,15 +256,16 @@
Damage kind - Are we using Rolled or Average Damage?
+ Are we using Max, Rolled or Average Damage?
+
Damage definition -
+
How many Dice are used for the calculation?
@@ -267,12 +275,18 @@
-
+
What's the average damage of the enemy?
+
+ What's the max rolled damage of the enemy? +
+ +
+
@@ -970,14 +984,26 @@ function usingHPDice(e) { if (e) { + $("#HP_max").hide("fast"); $("#HP_average").hide("fast"); $("#mob_hp_dice_ammount").val(""); $("#mob_hp_dice_type").val(""); $("#HP_hitdice").show("fast"); - } else { + $("#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") { + $("#HP_average").hide("fast"); + $("#HP_hitdice").hide("fast"); + $("#HP_max").show("fast"); + $("#mob_hp_avg").val(""); + $("#mob_hp_dice_ammount").val(""); + $("#mob_hp_dice_type").val(""); + } calcDiff(); }