Update index.php

This commit is contained in:
James 2022-09-29 15:17:16 +02:00
parent 9579665f04
commit c1d34c73dd

View File

@ -864,34 +864,12 @@
//Party Points:
var final_score = (encounter_final_score * modifier_encounter) - (party_final_score * modifier_party);
var party_variables = [];
party_variables.push(party_skill_strategies_score);
party_variables.push(party_skill_attention_score);
party_variables.push(party_skill_knowledge_score);
party_variables.push(party_health_score);
var encounter_variables = [];
encounter_variables.push(encounter_hp_score);
encounter_variables.push(encounter_cr_score);
encounter_variables.push(encounter_ac_score);
encounter_variables.push(encounter_dmg_score);
encounter_variables.push(encounter_dmgtype_score);
encounter_variables.push(encounter_onehit_score);
encounter_variables.push(encounter_multiattack_score);
encounter_variables.push(encounter_strategy_score);
encounter_variables.push(encounter_lair_action_score);
encounter_variables.push(encounter_legendairy_action_score);
encounter_variables.push(encounter_status_score);
encounter_variables.push(encounter_healing_score);
encounter_variables.push(encounter_stunning_score);
encounter_variables.push(encounter_condition_score);
var party_variables = [,party_skill_strategies_score,party_skill_attention_score,party_skill_knowledge_score,party_health_score];
var encounter_variables = [encounter_hp_score,encounter_cr_score,encounter_ac_score,encounter_dmg_score,encounter_dmgtype_score,encounter_onehit_score,encounter_multiattack_score,encounter_strategy_score,encounter_lair_action_score,encounter_legendairy_action_score,encounter_status_score,encounter_healing_score,encounter_stunning_score,encounter_condition_score];
$.each(party_variables, function() {
console.log("<tr>" + Object.keys($(this))[0] + "</tr>" + "<tr>" + $(this).val() + "</tr>");
});
party_variables.forEach(element => console.log("<tr>" + Object.keys(element)[0]] + "</tr>" + "<tr>" + element + "</tr>"));
encounter_variables.forEach(element => console.log("<tr>" + Object.keys(element)[0]] + "</tr>" + "<tr>" + element + "</tr>"));
$.each(encounter_variables, function() {
console.log("<tr>" + Object.keys($(this)[0]) + "</tr>" + "<tr>" + $(this).val() + "</tr>");
});
//Fill the tables