Open Emperor01 opened 6 years ago
var basicHealLvL = 224;
function CountChanges () { var changes = basicHealLvL, result; for (var i = 2; i < 31; i++) { changes = changes + (changes / 100 * 4); changes = Math.round(changes); alert ('At ' + i + ' LvL you will have ' + changes + ' heal'); } }
CountChanges();
this function shows healing of Ana's first skill during different levels from 2 to 30 (hero from games Overwatch and Heroes of the Storm)
oh I've noticed that when I paste my code this editor delete my backspaces
var basicHealLvL = 224;
function CountChanges () { var changes = basicHealLvL, result; for (var i = 2; i < 31; i++) { changes = changes + (changes / 100 * 4); changes = Math.round(changes); alert ('At ' + i + ' LvL you will have ' + changes + ' heal'); } }
CountChanges();