RimWorld

RimWorld

191 arvostelua
Drop Loot When Destroyed Framework
2
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Mod, 1.4, 1.5, 1.6
Tiedostokoko
Julkaistu
Päivitetty
145.460 KB
5.8.2023 klo 7.41
13.7. klo 5.48
17 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Drop Loot When Destroyed Framework

Kuvaus

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.
Suositut keskustelut Näytä kaikki (1)
25
10.9.2024 klo 9.57
TÄRKEÄ: Instructions for implementing
Romyashi
23 kommenttia
thorman123456789 4.7. klo 12.45 
1.6 please?
Romyashi  [tekijä] 10.5.2024 klo 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.5.2024 klo 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.4.2024 klo 10.45 
Thank you for the update!
thorman123456789 12.4.2024 klo 18.45 
1.5?
Romyashi  [tekijä] 8.4.2024 klo 21.16 
@owlthemoon Yes, when it releases.
sirduck 8.4.2024 klo 17.05 
you will update for 1.5?
Romyashi  [tekijä] 22.12.2023 klo 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.12.2023 klo 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.12.2023 klo 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.