Difference between revisions of "User:Mornsta/Sandbox5"
Jump to navigation
Jump to search
>Mornsta-gpuser |
>Mornsta-gpuser |
||
| Line 7: | Line 7: | ||
var PTNCY = document.getElementById('PTNCY').value / 100; | var PTNCY = document.getElementById('PTNCY').value / 100; | ||
var PTNCYB = document.getElementById('PTNCYB').value / 100 + 1; | var PTNCYB = document.getElementById('PTNCYB').value / 100 + 1; | ||
| − | var COBUFF = 1; | + | var COBUFF = document.getElementById("coAbility")[document.getElementById("coAbility").selectedIndex].value / 100 + 1; |
| − | var EBUFF = 1.2; | + | if (document.getElementById('ELEM').checked) { |
| − | var EBUFF = 1; | + | var EBUFF = 1.2; |
| − | var TARG = | + | } else { |
| − | var TOTAL = (((0.65*HP + 0.2*STR) * PTNCY * PTNCYB * COBUFF) / TARG) * EBUFF; | + | var EBUFF = 1; |
| + | } | ||
| + | if (document.getElementById('RAID').checked) { | ||
| + | var TARG = 16; | ||
| + | } else { | ||
| + | var TARG = 1; | ||
| + | } | ||
| + | if (checkbox.checked) { | ||
| + | var DUR = document.getElementById('DUR').value; | ||
| + | var FREQ = document.getElementById('FREQ').value; | ||
| + | var REGEN = document.getElementById('REGEN').value / 100; | ||
| + | var TIMES = Math.floor(DUR/FREQ); | ||
| + | var RTOTAL = (((0.65*HP + 0.2*STR) * REGEN * PTNCYB * COBUFF) / TARG) * EBUFF * TIMES; | ||
| + | var TOTAL = (((0.65*HP + 0.2*STR) * PTNCY * PTNCYB * COBUFF) / TARG) * EBUFF + RTOTAL; | ||
| + | } else { | ||
| + | var TOTAL = (((0.65*HP + 0.2*STR) * PTNCY * PTNCYB * COBUFF) / TARG) * EBUFF; | ||
| + | } | ||
document.getElementById("total").innerHTML = Math.floor(TOTAL); | document.getElementById("total").innerHTML = Math.floor(TOTAL); | ||
console.log(RTOTAL); | console.log(RTOTAL); | ||
} | } | ||
| − | function display() | + | function display() { |
| + | var hot = document.getElementById("HOT"); | ||
| + | if (document.getElementById('checkbox').checked) { | ||
| + | hot.style.display = "block"; | ||
| + | } else { | ||
| + | hot.style.display = "none"; | ||
| + | } | ||
| + | } | ||
</script> | </script> | ||
<div style="width:100%"> | <div style="width:100%"> | ||
| Line 32: | Line 55: | ||
<div class="dt-term" style="display:inline-block;width:120px;text-align:right;padding: 3px 8px 3px 0;margin: 0 -6px 0 0;border-right:3px #528e52 solid;font-weight:bold;vertical-align:top"><div>Potency Buff % </div></div> | <div class="dt-term" style="display:inline-block;width:120px;text-align:right;padding: 3px 8px 3px 0;margin: 0 -6px 0 0;border-right:3px #528e52 solid;font-weight:bold;vertical-align:top"><div>Potency Buff % </div></div> | ||
<div class="dd-description" style="display:inline-block;width:150px;text-align:left;padding: 3px 0 3px 6px;border-left: 1px #528e52 solid;vertical-align:top"><div style="display:inline;"><input type="number" id="PTNCYB" class="a"></div></div> | <div class="dd-description" style="display:inline-block;width:150px;text-align:left;padding: 3px 0 3px 6px;border-left: 1px #528e52 solid;vertical-align:top"><div style="display:inline;"><input type="number" id="PTNCYB" class="a"></div></div> | ||
| + | </div> | ||
| + | <div style="width:100%"> | ||
| + | <div class="dt-term" style="display:inline-block;width:120px;text-align:right;padding: 3px 8px 3px 0;margin: 0 -6px 0 0;border-right:3px #528e52 solid;font-weight:bold;vertical-align:top"><div>CoAbility % </div></div> | ||
| + | <div class="dd-description" style="display:inline-block;width:150px;text-align:left;padding: 3px 0 3px 6px;border-left: 1px #528e52 solid;vertical-align:top"><div style="display:inline;"><select id="coAbility" name="coAbility"> | ||
| + | <option value="2">Recovery Potency +2%</option> | ||
| + | <option value="4">Recovery Potency +4%</option> | ||
| + | <option value="6">Recovery Potency +6%</option> | ||
| + | <option value="8">Recovery Potency +8%</option> | ||
| + | <option value="10">Recovery Potency +10%</option> | ||
| + | <option value="12">Recovery Potency +12%</option> | ||
| + | <option value="14">Recovery Potency +14%</option> | ||
| + | <option value="16">Recovery Potency +16%</option> | ||
| + | <option value="20">Recovery Potency +20%</option> | ||
| + | </select></div></div> | ||
| + | </div> | ||
| + | <div style="width:100%"> | ||
| + | <div class="dt-term" style="display:inline-block;width:120px;text-align:right;padding: 3px 8px 3px 0;margin: 0 -6px 0 0;border-right:3px #528e52 solid;font-weight:bold;vertical-align:top"><div>Same Element? </div></div> | ||
| + | <div class="dd-description" style="display:inline-block;width:150px;text-align:left;padding: 3px 0 3px 6px;border-left: 1px #528e52 solid;vertical-align:top"><div style="display:inline;"><input type="checkbox" id="ELEM">Check for yes.</div></div> | ||
| + | </div> | ||
| + | <div style="width:100%"> | ||
| + | <div class="dt-term" style="display:inline-block;width:120px;text-align:right;padding: 3px 8px 3px 0;margin: 0 -6px 0 0;border-right:3px #528e52 solid;font-weight:bold;vertical-align:top"><div>Raid? </div></div> | ||
| + | <div class="dd-description" style="display:inline-block;width:150px;text-align:left;padding: 3px 0 3px 6px;border-left: 1px #528e52 solid;vertical-align:top"><div style="display:inline;"><input type= "checkbox" id="RAID">Check for yes.</div></div> | ||
| + | </div> | ||
| + | <div style="width:100%"> | ||
| + | <div class="dt-term" style="display:inline-block;width:120px;text-align:right;padding: 3px 8px 3px 0;margin: 0 -6px 0 0;border-right:3px #528e52 solid;font-weight:bold;vertical-align:top"><div>Include Healing Over Time? </div></div> | ||
| + | <div class="dd-description" style="display:inline-block;width:150px;text-align:left;padding: 3px 0 3px 6px;border-left: 1px #528e52 solid;vertical-align:top"><div style="display:inline;"><input type="checkbox" id="checkbox" onclick="display()">Check for yes.</div></div> | ||
| + | </div> | ||
| + | <div id="HOT" style="display:none"> | ||
| + | <div style="width:100%"> | ||
| + | <div class="dt-term" style="display:inline-block;width:120px;text-align:right;padding: 3px 8px 3px 0;margin: 0 -6px 0 0;border-right:3px #528e52 solid;font-weight:bold;vertical-align:top"><div>REGEN% </div></div> | ||
| + | <div class="dd-description" style="display:inline-block;width:150px;text-align:left;padding: 3px 0 3px 6px;border-left: 1px #528e52 solid;vertical-align:top"><div style="display:inline;"><input type="number" id="REGEN" class="a"></div></div> | ||
| + | </div> | ||
| + | <div style="width:100%"> | ||
| + | <div class="dt-term" style="display:inline-block;width:120px;text-align:right;padding: 3px 8px 3px 0;margin: 0 -6px 0 0;border-right:3px #528e52 solid;font-weight:bold;vertical-align:top"><div>DURATION </div></div> | ||
| + | <div class="dd-description" style="display:inline-block;width:150px;text-align:left;padding: 3px 0 3px 6px;border-left: 1px #528e52 solid;vertical-align:top"><div style="display:inline;"><input type="number" id="DUR" class="a"></div></div> | ||
| + | </div> | ||
| + | <div style="width:100%"> | ||
| + | <div class="dt-term" style="display:inline-block;width:120px;text-align:right;padding: 3px 8px 3px 0;margin: 0 -6px 0 0;border-right:3px #528e52 solid;font-weight:bold;vertical-align:top"><div>HEAL FREQUENCY </div></div> | ||
| + | <div class="dd-description" style="display:inline-block;width:150px;text-align:left;padding: 3px 0 3px 6px;border-left: 1px #528e52 solid;vertical-align:top"><div style="display:inline;"><input type="number" id="FREQ" class="a"></div></div> | ||
</div> | </div> | ||
</div> | </div> | ||
Revision as of 03:15, 8 December 2018
Error in widget User:Mornsta/Sandbox5: Unable to read template wiki 'User:Mornsta/Sandbox5'