In the Mod API, on_entity_died doesn't include a value for the loot dropped by the dead entity.
I think it should, because dropping loot is kinda an interesting thing.
Granted, it isn't quite as interesting with the base game now that alien artifact/eggs don't drop as requirements for getting to space, but the functionality is interesting.
on_entity_died event should include dropped loot data somewhere in there
Re: on_entity_died event should include dropped loot data somewhere in there
+1
Would be good to also include inventory drops. Currently that's only something player avatars do, but it would be fun to see chests or warehouses spilling their contents when destroyed only to have that instantly marked for deconstruction and bots swarming in to clean up the mess.
Would be good to also include inventory drops. Currently that's only something player avatars do, but it would be fun to see chests or warehouses spilling their contents when destroyed only to have that instantly marked for deconstruction and bots swarming in to clean up the mess.
My Mods: mods.factorio.com
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: on_entity_died event should include dropped loot data somewhere in there
You have an oddly sadistic idea of "fun".Optera wrote: Sat Oct 06, 2018 8:29 am but it would be fun to see chests or warehouses spilling their contents when destroyed only to have that instantly marked for deconstruction and bots swarming in to clean up the mess. :lol:
+1 for the general idea though.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: on_entity_died event should include dropped loot data somewhere in there
Didn't forcing players to learn combinators and binary with LTN give that away already?eradicator wrote: Sat Oct 06, 2018 8:51 am You have an oddly sadistic idea of "fun".
+1 for the general idea though.
My Mods: mods.factorio.com
Re: on_entity_died event should include dropped loot data somewhere in there
Ok. I've added "loot" to the entity died event for 0.17.
If you want to get ahold of me I'm almost always on Discord.
Re: on_entity_died event should include dropped loot data somewhere in there
So, it should be possible for a mod to mark loot for deconstruction on drop?
Which has some interesting prospects for multiplayer, but also automated biter farms...
Which has some interesting prospects for multiplayer, but also automated biter farms...
Shameless mod plugging: Ribbon Maze