Difference between revisions of "User:Mornsta/Sandbox5"
Jump to navigation
Jump to search
>Mornsta-gpuser (Created page with "<includeonly> <script> function calculate() { var HP = document.getElementById('HP').value; var STR = document.getElementById('STR').value; var PTNCY...") |
>Mornsta-gpuser |
||
| Line 1: | Line 1: | ||
| + | {{#widget:User:Mornsta/Sandbox5}} | ||
<includeonly> | <includeonly> | ||
<script> | <script> | ||
| Line 7: | Line 8: | ||
var PTNCYB = document.getElementById('PTNCYB').value / 100 + 1; | var PTNCYB = document.getElementById('PTNCYB').value / 100 + 1; | ||
var COBUFF = document.getElementById("coAbility")[document.getElementById("coAbility").selectedIndex].value / 100 + 1; | var COBUFF = document.getElementById("coAbility")[document.getElementById("coAbility").selectedIndex].value / 100 + 1; | ||
| − | + | var EBUFF = 1.2; | |
| − | + | var EBUFF = 1; | |
| − | + | var TARG = 6; | |
| − | + | 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); | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
</script> | </script> | ||
| Line 54: | Line 31: | ||
<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> | ||
</div> | </div> | ||
Revision as of 03:06, 8 December 2018
Error in widget User:Mornsta/Sandbox5: Unable to read template wiki 'User:Mornsta/Sandbox5'