JSFiddle - React, Tailwind, and code Playground
by Daedalus
HTML
<span id="idgoeshere"></span>
JavaScript
if (typeof window.cusSpells === 'undefined') {
window.cusSpells = {};
}
if (typeof window.cusSpells['idgoeshere'] === 'undefined') {
window.cusSpells['idgoeshere'] = {};
window.cusSpells['idgoeshere'].json = {spirit: 40, skill: 40, mod: 6, cuslevel: 6, damage: 6};
window.cusSpells['idgoeshere'].output = function () {
document.getElementById('idgoeshere').innerHTML = (Math.floor(((this.json.spirit + this.json.skill) * this.json.mod) * (this.json.skill / 5) * (this.json.cuslevel + this.json.damage)) + '');
}
window.cusSpells['idgoeshere'].output();
}