Floored damage in DamagePopup

This commit is contained in:
Cooldude2606
2018-11-06 20:45:43 +00:00
parent bb417a6e7a
commit bc39becfcc
3 changed files with 1 additions and 67 deletions

View File

@@ -36,7 +36,7 @@ Event.register(defines.events.on_entity_damaged, function(event)
entity.surface.create_entity{
name="flying-text",
color=defines.textcolor.med,
text='-'..damage,
text='-'..math.floor(damage), -- cooldude2606 added floor for damage ammount
position=entity.position
}
end