Configurable Deconstruct Percentage
Adds many options to the amount of material returned when a building is deconstructed, failed to construct, cancelled, or destroyed.
There are many mods out there that do similar things, but to my knowledge, none others supports all of these.
Name
Vanilla (Version 1.5)
Vanilla (Version 1.6)
Mod Default
Configurable Range
Deconstruct Building/Floor
50%
50%
100%
0%-100%
Fail Construction
50%
50%
80%
0%-100%
Cancel Building
100%
100%
100%
0%-100%
Cancel Unfinished Worktable Item
75%
75%
90%
0%-100%
Destroy Building Violently*
25%
25%
50%
0%-100%
Minimum Quantity per Resource**
0
1 (constr. fail)
0 (others)
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 setting does nothing if all of the percentages above are set to 100%.
Local Install & Source Code & License
[url=https%3A%2F%2Fgithub.com%2FAmCh-Q%2FRimWorldMod_Configurable-Deconstruct-Percentage%2Freleases]Non-steam download from GitHub[/url][github.com]
Open source on [url=https%3A%2F%2Fgithub.com%2FAmCh-Q%2FRimWorldMod_Configurable-Deconstruct-Percentage]GitHub[/url][github.com] via [url=https%3A%2F%2Fwww.gnu.org%2Flicenses%2Fagpl-3.0.en.html]AGPL 3.0[/url][www.gnu.org]
Loading the Mod & Applying Settings
Support RimWorld 1.0-1.6, requires Harmony on RimWorld 1.2-1.6
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 might reduces the amount of computation required compared to Vanilla so it could even be 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 other similar mods regardless of mod load order.
Technical Detail: [url=https%3A%2F%2Fgithub.com%2FAmCh-Q%2FRimWorldMod_Configurable-Deconstruct-Percentage%2Ftree%2Fmain%2FSource%2FPatches]This mod patches four vanilla methods using transpilers[/url][github.com].
Languages
English (built-in)
Simplified & Traditional Chinese (简体&繁體中文) (built-in) [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2568850063&l=schinese]中文页面在这[/url]
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 [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2568850063]Steam WorkShop[/url]
Or submit an issue on [url=https%3A%2F%2Fgithub.com%2FAmCh-Q%2FRimWorldMod_Configurable-Deconstruct-Percentage%2Fissues]GitHub[/url][github.com]
Or find me on [url=https%3A%2F%2Fdiscord.gg%2Frimworld]RimWorld Discord[/url][discord.gg] (Discord ID: "amch.")
My other mods
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=2566316158]Need Bar Overflow[/url]