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.
[0.18.34] on_entity_damaged event final_health attribute wrong
- Muppet9010
- Filter Inserter
- Posts: 279
- Joined: Sat Dec 09, 2017 6:01 pm
- Contact:
Re: [0.18.34] on_entity_damaged event final_health attribute wrong
Thanks for the report. It's now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.