Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
Currently, for critical hits, I use the default (2x). However, for some reason or another, certain times the critical hit will result in a decimal (For example, 4416.6). Is there any way to get it to "round up" the number or something?
I've never had this happen with the default battle system, but this should fix it:
Code:
if self.damage.is_a?(Numeric)
self.damage = self.damage.round
end
Go to the Game_Battler 3 script page, and place this above the "return true" in attack_effect and the "return effective" in skill_effect and item_effect.
This will round the damage to the nearest integer. If you would rather it round up replace "round" with "ceil". "floor" will round the number down.