[0.18.34] on_entity_damaged event final_health attribute wrong
Posted: Sun Jun 28, 2020 6:56 pm
The final_health value given for the on_entity_damaged event doesn't do as described.
https://lua-api.factorio.com/latest/eve ... ty_damaged
It seems to return a percentage of max health the entity has left. Assume its meant to be as per the API description, as returning a ratio of max health seems odd given the raw health of the entity post damage isn't given otherwise.
https://lua-api.factorio.com/latest/eve ... ty_damaged
It seems to return a percentage of max health the entity has left. Assume its meant to be as per the API description, as returning a ratio of max health seems odd given the raw health of the entity post damage isn't given otherwise.