LuaEntityPrototype::dying_speed [R]

Things that already exist in the current mod API
Galista
Burner Inserter
Burner Inserter
Posts: 11
Joined: Mon May 17, 2021 7:52 am
Contact:

LuaEntityPrototype::dying_speed [R]

Post by Galista »

When using LuaEntityPrototype::time_to_live in control stage to get a Prototype/Corpse.time_before_removed property, the value returned is not the one defined in the prototype (in ticks) but has been in-between multiplied by its Prototype/Corpse.dying_speed property, making it unusable.

Adding LuaEntityPrototype::dying_speed (read-only) could be a simple solution.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14363
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: LuaEntityPrototype::dying_speed [R]

Post by Rseding91 »

This has been implemented at some point in the last 2 years.
If you want to get ahold of me I'm almost always on Discord.
Galista
Burner Inserter
Burner Inserter
Posts: 11
Joined: Mon May 17, 2021 7:52 am
Contact:

Re: LuaEntityPrototype::dying_speed [R]

Post by Galista »

I didn't noticed, it slipped through the changelogs. Thank you for the notification!

It was added in 1.1.60 apparently.
Post Reply

Return to “Already exists”