RimWorld

RimWorld

191 betyg
Drop Loot When Destroyed Framework
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Mod, 1.4, 1.5, 1.6
Filstorlek
Lades upp
Uppdaterades
145.460 KB
5 aug, 2023 @ 7:41
13 jul @ 5:48
17 ändringsnotiser ( visa )

Abonnera för att ladda ner
Drop Loot When Destroyed Framework

Beskrivning

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.
Populära diskussioner Visa alla (1)
25
10 sep, 2024 @ 9:57
KLISTRAD: Instructions for implementing
Romyashi
23 kommentarer
thorman123456789 4 jul @ 12:45 
1.6 please?
Romyashi  [skapare] 10 maj, 2024 @ 11:43 
@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 10 maj, 2024 @ 11:06 
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 26 apr, 2024 @ 10:45 
Thank you for the update!
thorman123456789 12 apr, 2024 @ 18:45 
1.5?
Romyashi  [skapare] 8 apr, 2024 @ 21:16 
@owlthemoon Yes, when it releases.
sirduck 8 apr, 2024 @ 17:05 
you will update for 1.5?
Romyashi  [skapare] 22 dec, 2023 @ 3:22 
@Atmey You can patch the bases and it should work fine I think. Otherwise only manually if plants have no base.
Atmey 22 dec, 2023 @ 1:53 
I want to make all trees/plants drop hay when destroyed/cut/harvested, is it possible? is there a way to patch them all? or do I have to make a patch for every single item?
Atmey 22 dec, 2023 @ 1:52 
@star: I doubt it will work for multiplayer, anything RNG won't work be default, you have to pull the RNG from a pre existing pool shared with all players.