边缘世界 RimWorld

边缘世界 RimWorld

200 个评价
Drop Loot When Destroyed Framework
2
   
奖励
收藏
已收藏
取消收藏
Mod, 1.4, 1.5, 1.6
文件大小
发表于
更新日期
145.460 KB
2023 年 8 月 5 日 上午 7:41
7 月 13 日 上午 5:48
17 项改动说明 ( 查看 )

订阅以下载
Drop Loot When Destroyed Framework

描述

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.
热门讨论 查看全部(1)
25
2024 年 9 月 10 日 上午 9:57
置顶: Instructions for implementing
Romyashi
25 条留言
Romyashi  [作者] 7 月 17 日 上午 6:31 
@Radiohead Cannot reproduce this behaviour with this mod alone.
Goblins4Lyfe 7 月 17 日 上午 6:19 
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 7 月 4 日 下午 12:45 
1.6 please?
Romyashi  [作者] 2024 年 5 月 10 日 上午 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 2024 年 5 月 10 日 上午 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 2024 年 4 月 26 日 上午 10:45 
Thank you for the update!
thorman123456789 2024 年 4 月 12 日 下午 6:45 
1.5?
Romyashi  [作者] 2024 年 4 月 8 日 下午 9:16 
@owlthemoon Yes, when it releases.
sirduck 2024 年 4 月 8 日 下午 5:05 
you will update for 1.5?
Romyashi  [作者] 2023 年 12 月 22 日 上午 3:22 
@Atmey You can patch the bases and it should work fine I think. Otherwise only manually if plants have no base.