-
Damage definition
-
+
Hitdice Damage
How many Dice are used for the calculation?
-
+
+
+
+
+
+
Hitdice Damage
+
How many Dice are used for the calculation
What's the average damage of the enemy?
-
+
+
+
+
What's the average damage of the enemy?
+
+
+
+
+
+
@@ -964,10 +979,10 @@
$("#mob_multiattack_ammount").attr("max", $("#mob_ammount").val())
if ($("#mob_ammount").val() > 1) {
// FIX HP
- usingHPDice(false);
+ usingHPDice("average");
$("#mob_hp_type_rolled").attr("disabled", true);
$("#mob_hp_type_averages").prop("checked", true);
- usingDMGDice(false);
+ usingDMGDice("average");
$("#mob_dmg_type_rolled").attr("disabled", true);
$("#mob_dmg_type_averages").prop("checked", true);
} else {
@@ -1040,16 +1055,53 @@
function usingDMGDice(e) {
- if (e) {
- $("#dmg_hitdice").hide("fast");
+ switch (e) {
+ case "dice":
+ $("#DMG_hitdice_card").hide("fast");
+ $("#DMG_average_card").hide("fast");
+ $("#DMG_max_card").show("fast");
+
$("#mob_dmg_avg").val("");
- $("#dmg_average").show("fast");
- } else {
- $("#dmg_average").hide("fast");
$("#mob_dmg_dice_ammount").val("");
$("#mob_dmg_dice_type").val("");
- $("#dmg_hitdice").show("fast");
- }
+ $("#mob_dmg_max").val("");
+ break;
+ case "averages":
+ $("#DMG_max_card").hide("fast");
+ $("#DMG_hitdice_card").hide("fast");
+ $("#DMG_average_card").show("fast");
+
+ $("#mob_dmg_avg").val("");
+ $("#mob_dmg_dice_ammount").val("");
+ $("#mob_dmg_dice_type").val("");
+ $("#mob_dmg_max").val("");
+
+ break;
+ case "averages":
+ $("#DMG_max_card").hide("fast");
+ $("#DMG_hitdice_card").hide("fast");
+ $("#DMG_average_card").show("fast");
+
+ $("#mob_dmg_avg").val("");
+ $("#mob_dmg_dice_ammount").val("");
+ $("#mob_dmg_dice_type").val("");
+ $("#mob_dmg_max").val("");
+
+ break;
+ case "max":
+
+
+ $("#DMG_max_card").show("fast");
+ $("#DMG_hitdice_card").hide("fast");
+ $("#DMG_average_card").hide("fast");
+
+ $("#mob_dmg_avg").val("");
+ $("#mob_dmg_dice_ammount").val("");
+ $("#mob_dmg_dice_type").val("");
+ $("#mob_dmg_max").val("");
+ break;
+
+ }
calcDiff();
}