RimWorld

RimWorld

97 ratings
Configurable Deconstruct Percentage
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5
File Size
Posted
Updated
197.025 KB
7 Aug, 2021 @ 2:38pm
20 May @ 1:28pm
4 Change Notes ( view )

Subscribe to download
Configurable Deconstruct Percentage

Description
Adds many options to the amount of material returned when a building is deconstructed, failed to construct, or destroyed.

There are many mods out there that do similar things, but to my knowledge, none supports all of these.
Name
Vanilla 1.5
Mod Default
Configurable Range
Deconstruct
50%
100%
0%-100%
Construction Fail
50%
80%
0%-100%
Violently Destroyed*
25%
50%
0%-100%
Minimum Quantity per Resource**
0
1
0-100

* Some materials are blacklisted by Vanilla and would never return, and some buildings have their own material return logic, for example a destroyed wall does not return its materials. This mod respects and does not alter those special cases.
** For example, when you deconstruct a Wastepack Atomizer, the Nano Structuring Chip may be lost, this setting allows you to guarantee that at least 1 is returned. It never returns more than the building had to start with. This settings does nothing if all of the percentages above are set to 100%.

Local Install & Source Code & License
Non-steam download from GitHub[github.com]
Open source on GitHub[github.com] via AGPL 3.0[www.gnu.org]

Loading the Mod & Applying Settings
Support RimWorld 1.0-1.5, requires Harmony on RimWorld 1.2-1.5
Any load position after Harmony and Core would work.
This mod is safe to add/remove mid-save.
No reload required upon settings change as they take effect immediately.

Performance
There should be negligible impact on performance.
In fact, this mod actually reduces the amount of computation required compared to Vanilla so it could even be theoretically faster.

Mod Compatibility
This mod should be compatible with most other mods, including other QoL mods that add similar functions.
This mod is likely to take priority over most other similar mods regardless of mod load order.
Technical Details: This mod patches RimWorld.GenLeaving.GetBuildingResourcesLeaveCalculator() using a transpiler.

Languages
English (built-in)
Simplified & Traditional Chinese (简体&繁體中文) (built-in) 中文页面在这
Translators: Let me know if you made a translation mod and I'll include it here.

For RimWorld 1.0 and 1.1
There's no Harmony before RimWorld 1.2.
As a result this mod does not require Harmony in those two versions.
However, only the deconstruction return setting is available.

Questions?
Either leave a comment on Steam WorkShop
Or submit an issue on GitHub[github.com]
Or find me on RimWorld Discord[discord.gg] (Discord ID: "amch.")

My other mods
Need Bar Overflow
40 Comments
Shiyuan 15 Jun @ 2:13pm 
My bad, upon some testing I realized that it does return all the material, not sure why I thought it didn't in the first place.
AmCh  [author] 14 Jun @ 10:28pm 
@Shiyuan
Cancelling a construction should already return 100% of the material in vanilla. I could make it configurable so that it returns less though...
---
原版游戏里 取消建筑本来就会返还100%的材料。不过我确实可以考虑添加一下设置,允许你把他设置成返还更少的材料……
Shiyuan 14 Jun @ 10:22pm 
Great mod, thank you very much! Can you also add the function so that cancelling a building after the material is already hauled to the build site also returns the full amount?
见习天使猫猫头 26 May @ 5:33am 
nice!:steamhappy:
AmCh  [author] 24 May @ 7:17am 
New idea WIP: In Vanilla 1.0-1.5, when you cancel an unfinished thing (for example a WIP sculpture, component or cloth), only 75% of the ingredients are returned. I think I can make it configurable too.
---
新功能开发中:原版1.0-1.5里未完成的东西(例如做到一半的雕塑,组件,或者衣物)被取消时会返回75%的材料。我感觉我应该能把这个也搞成可以设置的项目。
XYM04689733 23 May @ 8:44am 
正道的光 照在了大地上:steamthumbsup:
AmCh  [author] 20 May @ 1:29pm 
v2.0 Updated! Let me know if you notice any bugs.
v2.0 更新完了!发现BUG的话戳我一下~
AmCh  [author] 20 May @ 9:45am 
我快更新完了!测试找BUG中
新:1.0-1.5支持(1.0-1.1只支持部分功能)
建造失败时返还百分比可设置(原版:50%,模组默认:80%)
建筑摧毁时返还百分比可设置(原版:25%,模组默认:50%)
每种建筑材料至少返回X份(模组默认:X=1)
简体&繁体中文
AmCh  [author] 20 May @ 9:42am 
Almost done updating!
New: 1.0-1.5 Support (limited functionality for 1.0-1.1)
Configurable return percentage when failing construction (Vanilla: 50%, mod default: 80%)
Configurable return percentage when building is violently destroyed (Vanilla: 25%, mod default: 50%)
Configurable minimum number of each item to return (mod default: 1 of each item) (@Maoman )
见习天使猫猫头 20 May @ 2:22am 
1.5 please~:eothas: