Update index.php

This commit is contained in:
James 2022-09-30 09:49:12 +02:00
parent f511b90f05
commit 067f7291e6

View File

@ -478,15 +478,6 @@
</div>
</div>
</div>
<div class="row">
<div class="col s12">
<div class="card black">
<div class="card-content white-text"> <span class="card-title">Calculation for nerds</span>
<p>This is where the calculation stats would be, IF I HAD ONE.</p>
</div>
</div>
</div>
</div>
</div>
<div id="Bonus" class="col s12">
<div class="row">
@ -798,10 +789,12 @@
var encounter_dmgtype_points = 0;
$.each($("input[name='dmgtype']:checked"), function() {
encounter_dmgtype_points++;
console.log("dmgtype_points = "dmgtype_points);
//selected_dmgtypes.push($(this).val());
});
$.each($("input[name='dmgtype']"), function() {
encounter_dmgtype_possibilities++;
console.log("encounter_dmgtype_possibilities = "encounter_dmgtype_possibilities);
});
var encounter_dmgtype_score = (20 - encounter_dmgtype_possibilities) + encounter_dmgtype_points * global_amount_modifier;