RimWorld

RimWorld

191 vurderinger
Drop Loot When Destroyed Framework
2
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Mod, 1.4, 1.5, 1.6
Filstørrelse:
Offentliggjort:
Opdateret:
145.460 KB
5. aug. 2023 kl. 7:41
13. juli kl. 5:48
17 ændringsbemærkninger ( vis )

Abonner for at downloade
Drop Loot When Destroyed Framework

Beskrivelse

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ære diskussioner Vis alle (1)
25
10. sep. 2024 kl. 9:57
FASTGJORT: Instructions for implementing
Romyashi
23 kommentarer
thorman123456789 4. juli kl. 12:45 
1.6 please?
Romyashi  [ophavsmand] 10. maj 2024 kl. 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 kl. 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 kl. 10:45 
Thank you for the update!
thorman123456789 12. apr. 2024 kl. 18:45 
1.5?
Romyashi  [ophavsmand] 8. apr. 2024 kl. 21:16 
@owlthemoon Yes, when it releases.
sirduck 8. apr. 2024 kl. 17:05 
you will update for 1.5?
Romyashi  [ophavsmand] 22. dec. 2023 kl. 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 kl. 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 kl. 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.