Hello guys, I would like to know how to round this formula:
$gameParty.members().forEach(function(m){
m.gainHp(0.15*(m.mhp));
m.gainMp(0.15*(m.mmp));
});
I´m getting 0,5 numbers somethimes...
I tried
$gameParty.members().forEach(function(m){
m.gainHp(0.15*(m.mhp));
m.gainMp(0.15*(m.mmp));
});
I´m getting 0,5 numbers somethimes...
I tried
$gameParty.members().forEach(function(m){
Math.ceil(m.gainHp(0.15*(m.mhp)));
Math.ceil(m.gainMp(0.15*(m.mmp)));
});
but nothing happened...
Please I need some help!
Thank you very much in advance!
Math.ceil(m.gainHp(0.15*(m.mhp)));
Math.ceil(m.gainMp(0.15*(m.mmp)));
});
but nothing happened...
Please I need some help!
Thank you very much in advance!