<!DOCTYPE html> <html> <head> <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> </head> <style> table { width: 99%; background-color: rgba(255, 255, 255, 0.15); } table, th, td { border: 0px solid black; color: #fff; font-weight: 400; font-size: 14px; min-width: 125px } tr, th, td { padding: 1px 5px; background-color: rgba(0, 0, 0, 0.95); } tr.head th { font-size: 18px; color: #fff !important; } h1 { color: #fff; line-height: 3rem; margin: 0; text-align: center; font-size: 2rem; -webkit-margin-before: 0.1em; -webkit-margin-after: 0.1em; } form { color: #fff; } select { border: 0px; box-shadow: none; } .btn { display: inline-block; padding: 6px 12px; margin-bottom: 0; font-size: 14px; font-weight: 400; line-height: 1.42857143; text-align: center; vertical-align: middle; cursor: pointer; border: 1px solid #fff; background-color: transparent; color: #fff; border-radius: 4px; white-space: nowrap; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } .orange-text { color: #fff !important; } .barsize { width: 80px; text-align: center; min-height: 2rem; border: 1px; box-shadow: none; background-color: rgba(255, 255, 255, 0.75); } .valueinput { border: 1px solid #ff33dd; background-color: rgba(255, 255, 255, 1); } body:not(.en) :lang(en), body:not(.sp) :lang(sp), body:not(.br) :lang(br), body:not(.ru) :lang(ru), body:not(.fr) :lang(fr), body:not(.de) :lang(de), body:not(.jp) :lang(jp), body:not(.tw) :lang(tw), body:not(.ko) :lang(ko) { display: none; } body { font-family: 'Open Sans', sans-serif; color: #fff; } </style> <script> var languages = ["english", "spanish", "portugese-br", "russian", "french", "german", "japanese", "taiwanese", "korean"]; var defaultlang; var userLang = navigator.language || navigator.userLanguage; function language() { if (languages.indexOf(userLang) == -1) { document.body.className = 'en' } if (userLang == "sp") { document.body.className = 'sp' } if (userLang == "br") { document.body.className = 'br' } if (userLang == "ru") { document.body.className = 'ru' } if (userLang == "fr") { document.body.className = 'fr' } if (userLang == "de") { document.body.className = 'de' } if (userLang == "ko") { document.body.className = 'ko' } if (userLang == "jp") { document.body.className = 'jp' } if (userLang == "tw") { document.body.className = 'tw' } if (userLang == "en") { document.body.className = 'en' } } </script> <body onload="language()"> <h1> <a id="en" lang="en">Masterwork Calculator</a> <a id="sp" lang="sp">Calculadora de Masterwork</a> <a id="br" lang="br">Calculadora de Masterwork</a> <a id="ru" lang="ru">Masterwork 2KG8A;8B5;L</a> <a id="fr" lang="fr">Masterwork Calculatrice</a> <a id="de" lang="de">Meisterwerk-Rechner</a> <a id="jp" lang="jp"> TT{_j</a> <a id="tw" lang="tw"> TT{hV</a> <a id="ko" lang="ko"> |ӑ Ĭ0</a> </h1> <form Name="bCalc"> <table style="text-align:center;"> <tr class="head orange-text"> <th rowspan="2"> <a id="en" lang="en">Gear</a> <a id="sp" lang="sp">Equipamiento</a> <a id="br" lang="br">Equipamento</a> <a id="ru" lang="ru">Gear</a> <a id="fr" lang="fr">Gear</a> <a id="de" lang="de">Ausrstung</a> <a id="jp" lang="jp">Gear</a> <a id="tw" lang="tw">݈P</a> <a id="ko" lang="ko">D</a></th> <th rowspan="2"> <a id="en" lang="en">Enchantment #</a> <a id="sp" lang="sp">Encantamiento #</a> <a id="br" lang="br">Encantamento #</a> <a id="ru" lang="ru">70G0@>20BL #</a> <a id="fr" lang="fr">Enchantment #</a> <a id="de" lang="de">Verzauberungs-#</a> <a id="jp" lang="jp">7_S</a> <a id="tw" lang="tw">7_S</a> <a id="ko" lang="ko">T</a></th> <th colspan="2" rowspan="2"> <a id="en" lang="en">Base</a> <a id="sp" lang="sp">Base</a> <a id="br" lang="br">Status Base</a> <a id="ru" lang="ru">Base</a> <a id="fr" lang="fr">Base</a> <a id="de" lang="de">Basis</a> <a id="jp" lang="jp">W,g</a> <a id="tw" lang="tw">W,g</a> <a id="ko" lang="ko">0</a></th> <th colspan="3"> <a id="en" lang="en">Masterwork Bonus</a> <a id="sp" lang="sp">Bono de Masterwork</a> <a id="br" lang="br">Bnus de Masterwork</a> <a id="ru" lang="ru">Masterwork Bonus</a> <a id="fr" lang="fr">Masterwork Bonus</a> <a id="de" lang="de">Meisterwerk-Bonus</a> <a id="jp" lang="jp"> TT0000</a> <a id="tw" lang="tw"> TT7_SRb</a> <a id="ko" lang="ko"> </a></th> </tr> <tr class="head orange-text"> <th>1%</th> <th>2%</th> <th>3%</th> </tr> <tr> <th rowspan="2"> <a id="en" lang="en">Weapon</a> <a id="sp" lang="sp">Arma</a> <a id="br" lang="br">Arma</a> <a id="ru" lang="ru">>@C685<</a> <a id="fr" lang="fr">Arme</a> <a id="de" lang="de">Waffe</a> <a id="jp" lang="jp">fkhV</a> <a id="tw" lang="tw">fkhV</a> <a id="ko" lang="ko">40</a></th> <td rowspan="2"> <select NAME="wEn" onChange="calcBonus()" id="wEn"> <option value="0">+0</option> <option value="1">+1</option> <option value="2">+2</option> <option value="3">+3</option> <option value="4">+4</option> <option value="5">+5</option> <option value="6">+6</option> <option value="7">+7</option> <option value="8">+8</option> <option value="9">+9</option> <option value="10">+10</option> <option value="11">+11</option> <option value="12">+12</option> <option value="13">+13</option> <option value="14">+14</option> <option value="15">+15</option> <option value="16">+13 [T9+]</option> <option value="17">+14 [T9+]</option> <option value="18">+15 [T9+]</option> </select> </td> <th> <a id="en" lang="en">Attack</a> <a id="sp" lang="sp">Ataque</a> <a id="br" lang="br">Ataque</a> <a id="ru" lang="ru">0B0:8</a> <a id="fr" lang="fr">Attaque</a> <a id="de" lang="de">Angriff</a> <a id="jp" lang="jp">;ed'`</a> <a id="tw" lang="tw">;edR</a> <a id="ko" lang="ko"> 1</a> </th> <td> <input type="number" id="wBase" onChange="calcBonus()" name="wBase" min="0" class="barsize valueinput"> </td> <td> <input readonly type="number" id="w1Bonus" class="barsize"> </td> <td> <input readonly type="number" id="w2Bonus" class="barsize"> </td> <td> <input readonly type="number" id="w3Bonus" class="barsize"> </td> </tr> <tr> <th> <a id="en" lang="en">Impact</a> <a id="sp" lang="sp">Impacto</a> <a id="br" lang="br">Impacto</a> <a id="ru" lang="ru">2>7459AB28O</a> <a id="fr" lang="fr">Impact</a> <a id="de" lang="de">Aufprall</a> <a id="jp" lang="jp">]dXE^</a> <a id="tw" lang="tw">]%`XE^</a> <a id="ko" lang="ko">ͩ </a> </th> <td> <input type="number" id="wImp" onChange="calcBonus()" name="wImp" min="0" class="barsize valueinput"> </td> <td> <input readonly type="number" id="wImp1Bonus" class="barsize"> </td> <td> <input readonly type="number" id="wImp2Bonus" class="barsize"> </td> <td> <input readonly type="number" id="wImp3Bonus" class="barsize"> </td> </tr> <tr> <th rowspan="2"> <a id="en" lang="en">Chest</a> <a id="sp" lang="sp">Armadura</a> <a id="br" lang="br">Peito</a> <a id="ru" lang="ru">>A?5E8</a> <a id="fr" lang="fr">Armure</a> <a id="de" lang="de">Rstung</a> <a id="jp" lang="jp">2wQ</a> <a id="tw" lang="tw"> Nc</a> <a id="ko" lang="ko"></a> </th> <td rowspan="2"> <select NAME="cEn" onChange="calcBonus()" id="cEn"> <option value="0">+0</option> <option value="1">+1</option> <option value="2">+2</option> <option value="3">+3</option> <option value="4">+4</option> <option value="5">+5</option> <option value="6">+6</option> <option value="7">+7</option> <option value="8">+8</option> <option value="9">+9</option> <option value="10">+10</option> <option value="11">+11</option> <option value="12">+12</option> <option value="13">+13</option> <option value="14">+14</option> <option value="15">+15</option> </select> </td> <th> <a id="en" lang="en">Defense</a> <a id="sp" lang="sp">Defensa</a> <a id="br" lang="br">Defesa</a> <a id="ru" lang="ru">70I8BK</a> <a id="fr" lang="fr">Dfense</a> <a id="de" lang="de">Verteidigung</a> <a id="jp" lang="jp">2_'`</a> <a id="tw" lang="tw">2yR</a> <a id="ko" lang="ko">) 1</a></th> <td> <input type="number" id="cBase" onChange="calcBonus()" name="cBase" min="0" class="barsize valueinput"> </td> <td> <input readonly type="number" id="c1Bonus" class="barsize"> </td> <td> <input readonly type="number" id="c2Bonus" class="barsize"> </td> <td> <input readonly type="number" id="c3Bonus" class="barsize"> </td> </tr> <tr> <th> <a id="en" lang="en">Balance</a> <a id="sp" lang="sp">Balance</a> <a id="br" lang="br">Balano</a> <a id="ru" lang="ru">@02=>25A8O</a> <a id="fr" lang="fr">quilibr</a> <a id="de" lang="de">Gleichgewicht</a> <a id="jp" lang="jp">GWa܈ck</a> <a id="tw" lang="tw">s^a</a> <a id="ko" lang="ko"> </a> </th> <td> <input type="number" id="cBal" onChange="calcBonus()" name="cBal" min="0" class="barsize valueinput"> </td> <td> <input readonly type="number" id="cBal1Bonus" class="barsize"> </td> <td> <input readonly type="number" id="cBal2Bonus" class="barsize"> </td> <td> <input readonly type="number" id="cBal3Bonus" class="barsize"> </td> </tr> <tr> <th rowspan="2"> <a id="en" lang="en">Gloves</a> <a id="sp" lang="sp">Guantes</a> <a id="br" lang="br">Luvas</a> <a id="ru" lang="ru">5@G0B:8</a> <a id="fr" lang="fr">Gants</a> <a id="de" lang="de">Handschutz</a> <a id="jp" lang="jp">U2wQ</a> <a id="tw" lang="tw">KbWY</a> <a id="ko" lang="ko"></a> </th> <td rowspan="2"> <select NAME="gEn" onChange="calcBonus()" id="gEn"> <option value="0">+0</option> <option value="1">+1</option> <option value="2">+2</option> <option value="3">+3</option> <option value="4">+4</option> <option value="5">+5</option> <option value="6">+6</option> <option value="7">+7</option> <option value="8">+8</option> <option value="9">+9</option> <option value="10">+10</option> <option value="11">+11</option> <option value="12">+12</option> <option value="13">+13</option> <option value="14">+14</option> <option value="15">+15</option> </select> </td> <th> <a id="en" lang="en">Defense</a> <a id="sp" lang="sp">Defensa</a> <a id="br" lang="br">Defesa</a> <a id="ru" lang="ru">70I8BK</a> <a id="fr" lang="fr">Dfense</a> <a id="de" lang="de">Verteidigung</a> <a id="jp" lang="jp">2_'`</a> <a id="tw" lang="tw">2yR</a> <a id="ko" lang="ko">) 1</a></th> <td> <input type="number" id="gBase" onChange="calcBonus()" name="gBase" min="0" class="barsize valueinput"> </td> <td> <input readonly type="number" id="g1Bonus" class="barsize"> </td> <td> <input readonly type="number" id="g2Bonus" class="barsize"> </td> <td> <input readonly type="number" id="g3Bonus" class="barsize"> </td> </tr> <tr> <th> <a id="en" lang="en">Balance</a> <a id="sp" lang="sp">Balance</a> <a id="br" lang="br">Balano</a> <a id="ru" lang="ru">@02=>25A8O</a> <a id="fr" lang="fr">quilibr</a> <a id="de" lang="de">Gleichgewicht</a> <a id="jp" lang="jp">GWa܈ck</a> <a id="tw" lang="tw">s^a</a> <a id="kr" lang="ko"> </a> </th> <td> <input type="number" id="gBal" onChange="calcBonus()" name="gBal" min="0" class="barsize valueinput"> </td> <td> <input readonly type="number" id="gBal1Bonus" class="barsize"> </td> <td> <input readonly type="number" id="gBal2Bonus" class="barsize"> </td> <td> <input readonly type="number" id="gBal3Bonus" class="barsize"> </td> </tr> <tr> <th rowspan="2"> <a id="en" lang="en">Shoes</a> <a id="sp" lang="sp">Botas</a> <a id="br" lang="br">Botas</a> <a id="ru" lang="ru">1C2L</a> <a id="fr" lang="fr">Chaussures</a> <a id="de" lang="de">Schuhwerk</a> <a id="jp" lang="jp">2wQ</a> <a id="tw" lang="tw"></a> <a id="ko" lang="ko"></a> </th> <td rowspan="2"> <select NAME="sEn" onChange="calcBonus()" id="sEn"> <option value="0">+0</option> <option value="1">+1</option> <option value="2">+2</option> <option value="3">+3</option> <option value="4">+4</option> <option value="5">+5</option> <option value="6">+6</option> <option value="7">+7</option> <option value="8">+8</option> <option value="9">+9</option> <option value="10">+10</option> <option value="11">+11</option> <option value="12">+12</option> <option value="13">+13</option> <option value="14">+14</option> <option value="15">+15</option> </select> </td> <th> <a id="en" lang="en">Defense</a> <a id="sp" lang="sp">Defensa</a> <a id="br" lang="br">Defesa</a> <a id="ru" lang="ru">70I8BK</a> <a id="fr" lang="fr">Dfense</a> <a id="de" lang="de">Verteidigung</a> <a id="jp" lang="jp">2_'`</a> <a id="tw" lang="tw">2yR</a> <a id="ko" lang="ko">) 1</a></th> <td> <input type="number" id="sBase" onChange="calcBonus()" name="sBase" min="0" class="barsize valueinput"> </td> <td> <input readonly type="number" id="s1Bonus" class="barsize"> </td> <td> <input readonly type="number" id="s2Bonus" class="barsize"> </td> <td> <input readonly type="number" id="s3Bonus" class="barsize"> </td> </tr> <tr> <th> <a id="en" lang="en">Balance</a> <a id="sp" lang="sp">Balance</a> <a id="br" lang="br">Balano</a> <a id="ru" lang="ru">@02=>25A8O</a> <a id="fr" lang="fr">quilibr</a> <a id="de" lang="de">Gleichgewicht</a> <a id="ru" lang="jp">GWa܈ck</a> <a id="tw" lang="tw">s^a</a> <a id="ko" lang="ko"> </a> </th> <td> <input type="number" id="sBal" onChange="calcBonus()" name="sBal" min="0" class="barsize valueinput"> </td> <td> <input readonly type="number" id="sBal1Bonus" class="barsize"> </td> <td> <input readonly type="number" id="sBal2Bonus" class="barsize"> </td> <td> <input readonly type="number" id="sBal3Bonus" class="barsize"> </td> </tr> </table> </form> <div> <button class="btn" onclick="document.body.className='en'">English</button> <button class="btn" onclick="document.body.className='sp'">Espaol</button> <button class="btn" onclick="document.body.className='br'">Portugus - BR</button> <button class="btn" onclick="document.body.className='ru'"> CAA:89</button> <button class="btn" onclick="document.body.className='fr'">Franais</button> <button class="btn" onclick="document.body.className='de'">Deutsch</button> <button class="btn" onclick="document.body.className='jp'">e,g</button> <button class="btn" onclick="document.body.className='tw'">A~Ԛ-Ne </button> <button class="btn" onclick="document.body.className='ko'">\m</button> </div> <br /> <div id="en" lang="en" style="font-size: 12px"> On Weapon, you might have noticed that there are +13 ~ +15 and +13 [T9+] ~ +15 [T9+].<br> If your Weapon is <b>Generation, Renegade, Lucid or Tensus,</b> choose +13 ~ +15 for awakening enchantment.<br> If your Weapon is <b>Starfall (VM6) or later</b>, choose +13 [T9+] ~ +15 [T9+]. </div> <div id="sp" lang="sp" style="font-size: 12px"> On Weapon, you might have noticed that there are +13 ~ +15 and +13 [T9+] ~ +15 [T9+].<br> If your Weapon is <b>Generation, Renegade, Lucid or Tensus,</b> choose +13 ~ +15 for awakening enchantment.<br> If your Weapon is <b>Starfall (VM6) or later</b>, choose +13 [T9+] ~ +15 [T9+]. </div> <div id="br" lang="br" style="font-size: 12px"> On Weapon, you might have noticed that there are +13 ~ +15 and +13 [T9+] ~ +15 [T9+].<br> If your Weapon is <b>Generation, Renegade, Lucid or Tensus,</b> choose +13 ~ +15 for awakening enchantment.<br> If your Weapon is <b>Starfall (VM6) or later</b>, choose +13 [T9+] ~ +15 [T9+]. </div> <div id="ru" lang="ru" style="font-size: 12px"> On Weapon, you might have noticed that there are +13 ~ +15 and +13 [T9+] ~ +15 [T9+].<br> If your Weapon is <b>Generation, Renegade, Lucid or Tensus,</b> choose +13 ~ +15 for awakening enchantment.<br> If your Weapon is <b>Starfall (VM6) or later</b>, choose +13 [T9+] ~ +15 [T9+]. </div> <div id="fr" lang="fr" style="font-size: 12px"> On Weapon, you might have noticed that there are +13 ~ +15 and +13 [T9+] ~ +15 [T9+].<br> If your Weapon is <b>Generation, Renegade, Lucid or Tensus,</b> choose +13 ~ +15 for awakening enchantment.<br> If your Weapon is <b>Starfall (VM6) or later</b>, choose +13 [T9+] ~ +15 [T9+]. </div> <div id="de" lang="de" style="font-size: 12px"> On Weapon, you might have noticed that there are +13 ~ +15 and +13 [T9+] ~ +15 [T9+].<br> If your Weapon is <b>Generation, Renegade, Lucid or Tensus,</b> choose +13 ~ +15 for awakening enchantment.<br> If your Weapon is <b>Starfall (VM6) or later</b>, choose +13 [T9+] ~ +15 [T9+]. </div> <div id="ru" lang="jp" style="font-size: 12px"> On Weapon, you might have noticed that there are +13 ~ +15 and +13 [T9+] ~ +15 [T9+].<br> If your Weapon is <b>Generation, Renegade, Lucid or Tensus,</b> choose +13 ~ +15 for awakening enchantment.<br> If your Weapon is <b>Starfall (VM6) or later</b>, choose +13 [T9+] ~ +15 [T9+]. </div> <div id="tw" lang="tw" style="font-size: 12px"> On Weapon, you might have noticed that there are +13 ~ +15 and +13 [T9+] ~ +15 [T9+].<br> If your Weapon is <b>Generation, Renegade, Lucid or Tensus,</b> choose +13 ~ +15 for awakening enchantment.<br> If your Weapon is <b>Starfall (VM6) or later</b>, choose +13 [T9+] ~ +15 [T9+]. </div> <div id="ko" lang="ko" style="font-size: 12px"> 40X T| t +0 ~ +15 @ +13 [T9+] ~ +15 [T9+] | h8ȈǵȲ.<br> 40 <b>"0 Tx", "<\ < $", "0 X", "[ Ƭ"</b> ¬t +13 ~ +15 | t8.<br> 40 <b>"0 tt}", "0: "</b> ¬t +13 [T9+] ~ +15 [T9+] | t8. </div> <div style="text-align: right; font-size: 11px;"> Ver. 1.70 Idi0ticGenius, Garden of Sinners </div> <script> function calcBonus(bCalc) { //Get selected data for weapon var elt = document.getElementById("wEn"); var wEn = elt.options[elt.selectedIndex].value; var vm6 = document.getElementById("vm6"); var wBase = document.getElementById("wBase").value; var wImp = document.getElementById("wImp").value; //Get selected data for chest var elt = document.getElementById("cEn"); var cEn = elt.options[elt.selectedIndex].value; var cBase = document.getElementById("cBase").value; var cBal = document.getElementById("cBal").value; //Get selected data for gloves var elt = document.getElementById("gEn"); var gEn = elt.options[elt.selectedIndex].value; var gBase = document.getElementById("gBase").value; var gBal = document.getElementById("gBal").value; //Get selected data for shoes var elt = document.getElementById("sEn"); var sEn = elt.options[elt.selectedIndex].value; var sBase = document.getElementById("sBase").value; var sBal = document.getElementById("sBal").value; //convert data for weapon wEn = parseFloat(wEn); wBase = parseInt(wBase); wImp = parseInt(wImp); //convert data for chest cEn = parseFloat(cEn); cBase = parseInt(cBase); cBal = parseInt(cBal); //convert data for gloves gEn = parseFloat(gEn); gBase = parseInt(gBase); gBal = parseInt(gBal); //convert data for shoes sEn = parseFloat(sEn); sBase = parseInt(sBase); sBal = parseInt(sBal); //calculate weapon attack bonus value var wEnAtt if (wEn == "18") { wEnAtt = Math.floor(wBase * 0.03 * (wEn - 3) + wBase * 0.03); } else if (wEn == "17") { wEnAtt = Math.floor(wBase * 0.03 * (wEn - 3) + wBase * 0.01); } else if (wEn == "16") { wEnAtt = Math.floor(wBase * 0.03 * (wEn - 3)); } else if (wEn == "15") { wEnAtt = Math.floor(wBase * 0.03 * wEn + wBase * 0.13); } else if (wEn == "14") { wEnAtt = Math.floor(wBase * 0.03 * wEn + wBase * 0.06); } else if (wEn == "13") { wEnAtt = Math.floor(wBase * 0.03 * wEn + wBase * 0.02); } else { wEnAtt = Math.floor(wBase * 0.03 * wEn); } var w1bonus = wEnAtt + Math.floor(wBase * 0.01); var w2bonus = wEnAtt + Math.floor(wBase * 0.02); var w3bonus = wEnAtt + Math.floor(wBase * 0.03); //calculate weapon impact bonus value var wEnImp if (wEn == "18" || wEn == "17" || wEn == "16") { wEnImp = Math.floor(wImp * 0.07 * (wEn - 3)); } else { wEnImp = Math.floor(wImp * 0.07 * wEn); } var wimp1bonus = wEnImp + Math.floor(wImp * 0.01); var wimp2bonus = wEnImp + Math.floor(wImp * 0.02); var wimp3bonus = wEnImp + Math.floor(wImp * 0.03); //calculate chest defense bonus value var cEnDef if (cEn == "15") { cEnDef = Math.floor(cBase * 0.045 * cEn + cBase * 0.135); } else if (cEn == "14") { cEnDef = Math.floor(cBase * 0.045 * cEn + cBase * 0.06); } else if (cEn == "13") { cEnDef = Math.floor(cBase * 0.045 * cEn + cBase * 0.015); } else { cEnDef = Math.floor(cBase * 0.045 * cEn); } var c1bonus = cEnDef + Math.floor(cBase * 0.01); var c2bonus = cEnDef + Math.floor(cBase * 0.02); var c3bonus = cEnDef + Math.floor(cBase * 0.03); //calculate chest balance bonus value var cEnBal cEnBal = Math.floor(cBal * 0.07 * cEn); var cbal1bonus = cEnBal + Math.floor(cBal * 0.01); var cbal2bonus = cEnBal + Math.floor(cBal * 0.02); var cbal3bonus = cEnBal + Math.floor(cBal * 0.03); //calculate gloves defense bonus value var gEnDef if (gEn == "15") { gEnDef = Math.floor(gBase * 0.045 * gEn + gBase * 0.135); } else if (gEn == "14") { gEnDef = Math.floor(gBase * 0.045 * gEn + gBase * 0.06); } else if (gEn == "13") { gEnDef = Math.floor(gBase * 0.045 * gEn + gBase * 0.015); } else { gEnDef = Math.floor(gBase * 0.045 * gEn); } var g1bonus = gEnDef + Math.floor(gBase * 0.01); var g2bonus = gEnDef + Math.floor(gBase * 0.02); var g3bonus = gEnDef + Math.floor(gBase * 0.03); //calculate gloves balance bonus value var gEnBal gEnBal = Math.floor(gBal * 0.07 * gEn); var gbal1bonus = gEnBal + Math.floor(gBal * 0.01); var gbal2bonus = gEnBal + Math.floor(gBal * 0.02); var gbal3bonus = gEnBal + Math.floor(gBal * 0.03); //calculate shoes defense bonus value var sEnDef if (sEn == "15") { sEnDef = Math.floor(sBase * 0.045 * sEn + sBase * 0.135); } else if (sEn == "14") { sEnDef = Math.floor(sBase * 0.045 * sEn + sBase * 0.06); } else if (sEn == "13") { sEnDef = Math.floor(sBase * 0.045 * sEn + sBase * 0.015); } else { sEnDef = Math.floor(sBase * 0.045 * sEn); } var s1bonus = sEnDef + Math.floor(sBase * 0.01); var s2bonus = sEnDef + Math.floor(sBase * 0.02); var s3bonus = sEnDef + Math.floor(sBase * 0.03); //calculate shoes balance bonus value var sEnBal sEnBal = Math.floor(sBal * 0.07 * sEn); var sbal1bonus = sEnBal + Math.floor(sBal * 0.01); var sbal2bonus = sEnBal + Math.floor(sBal * 0.02); var sbal3bonus = sEnBal + Math.floor(sBal * 0.03); //print value to bonus modifiers document.getElementById("w1Bonus").value = w1bonus; document.getElementById("w2Bonus").value = w2bonus; document.getElementById("w3Bonus").value = w3bonus; document.getElementById("wImp1Bonus").value = wimp1bonus; document.getElementById("wImp2Bonus").value = wimp2bonus; document.getElementById("wImp3Bonus").value = wimp3bonus; document.getElementById("c1Bonus").value = c1bonus; document.getElementById("c2Bonus").value = c2bonus; document.getElementById("c3Bonus").value = c3bonus; document.getElementById("cBal1Bonus").value = cbal1bonus; document.getElementById("cBal2Bonus").value = cbal2bonus; document.getElementById("cBal3Bonus").value = cbal3bonus; document.getElementById("g1Bonus").value = g1bonus; document.getElementById("g2Bonus").value = g2bonus; document.getElementById("g3Bonus").value = g3bonus; document.getElementById("gBal1Bonus").value = gbal1bonus; document.getElementById("gBal2Bonus").value = gbal2bonus; document.getElementById("gBal3Bonus").value = gbal3bonus; document.getElementById("s1Bonus").value = s1bonus; document.getElementById("s2Bonus").value = s2bonus; document.getElementById("s3Bonus").value = s3bonus; document.getElementById("sBal1Bonus").value = sbal1bonus; document.getElementById("sBal2Bonus").value = sbal2bonus; document.getElementById("sBal3Bonus").value = sbal3bonus; } </script> </body> </html>