Update index.php

This commit is contained in:
James 2022-09-30 10:06:05 +02:00
parent 5ef5f00c31
commit 50be4df285

View File

@ -709,6 +709,9 @@
var encounter_amount = $("input[name='mob_ammount']:checked").val(); var encounter_amount = $("input[name='mob_ammount']:checked").val();
// A modifier, that applies the ratio of Enemies to players // A modifier, that applies the ratio of Enemies to players
console.log(encounter_amount);
console.log(party_amount);
var global_amount_modifier = encounter_amount / party_amount; var global_amount_modifier = encounter_amount / party_amount;
// What HP Type is used? 1=average 2=rolled 3=max // What HP Type is used? 1=average 2=rolled 3=max
@ -799,13 +802,6 @@
console.log(encounter_dmgtype_points);
console.log(global_amount_modifier);
console.log(encounter_dmgtype_possibilities);
console.log(encounter_dmgtype_possibilities + encounter_dmgtype_points);
console.log(encounter_dmgtype_points * global_amount_modifier);
console.log(encounter_dmgtype_possibilities + encounter_dmgtype_points * global_amount_modifier);
console.log(20 - encounter_dmgtype_possibilities + encounter_dmgtype_points * global_amount_modifier);
var encounter_dmgtype_score = 20 - encounter_dmgtype_possibilities + encounter_dmgtype_points * global_amount_modifier; var encounter_dmgtype_score = 20 - encounter_dmgtype_possibilities + encounter_dmgtype_points * global_amount_modifier;
console.log(encounter_dmgtype_score); console.log(encounter_dmgtype_score);