RimWorld

RimWorld

200 ratings
Drop Loot When Destroyed Framework
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5, 1.6
File Size
Posted
Updated
145.460 KB
Aug 5, 2023 @ 7:41am
Jul 13 @ 5:48am
17 Change Notes ( view )

Subscribe to download
Drop Loot When Destroyed Framework

Description

This is a framework that allows ThingDefs drop loot when they are destroyed by any means (attacking, deconstruction etc).
As for now it adds two comps and a thingClass for filth. First comp is responsible for the loot drops and can be used on anything that can use comps, so items, buildings, pawns etc. Second comp is responsible for destroying an item if it is used. Filth cannot use comps so loot is implemented with a thingClass.
The instructions are in the discussions and there is a couple of example defs in this mod's files.

Loot from filth will not spawn if there is no free space in a 1 cell radius around the destroyed filth spot.
Currently the framework does not account for stackCount. So if an item has a comp for dropping loot it will roll once for the whole stack, not for the each item individually.
If the loot is dropped outside of the home area and is split into multiple stacks, only one stack will be forbidden. This can happen when the loot amount is set higher than item's max stack count.

SeedsPlease: Plants will not drop any loot added by DLWD Framework.
Popular Discussions View All (1)
25
Sep 10, 2024 @ 9:57am
PINNED: Instructions for implementing
Romyashi
25 Comments
Romyashi  [author] Jul 17 @ 6:31am 
@Radiohead Cannot reproduce this behaviour with this mod alone.
Goblins4Lyfe Jul 17 @ 6:19am 
It seems there may be an issue where this mod is causing bodies I strip, alive or dead, colonist or raider, to only drop a few or a single item at a time?
thorman123456789 Jul 4 @ 12:45pm 
1.6 please?
Romyashi  [author] May 10, 2024 @ 11:43am 
@tanyfilina Tested it and can confirm the incompatibility. I don't really know how to fix it though unfortunately. Thank you for the report.
tanyfilina May 10, 2024 @ 11:06am 
Hello! I've tried this mod along with SeedsPlease: Lite Redux, and (as expected) SeedsPlease blocks the drop of wood by the fruit trees patched to do so via Drop Loot When Destroyed Framework. Is this a strong incompatibility, or there might be some workarounds?
gold_talisman Apr 26, 2024 @ 10:45am 
Thank you for the update!
thorman123456789 Apr 12, 2024 @ 6:45pm 
1.5?
Romyashi  [author] Apr 8, 2024 @ 9:16pm 
@owlthemoon Yes, when it releases.
Balin Apr 8, 2024 @ 5:05pm 
you will update for 1.5?
Romyashi  [author] Dec 22, 2023 @ 3:22am 
@Atmey You can patch the bases and it should work fine I think. Otherwise only manually if plants have no base.