Deconstruct Return Fix
The base game has a bug where the maximum number of drops for a given resource cost when deconstructing a building is one less than the actual cost, which is all well and good except when you have buildings which need one of a resource – in which case they can never drop. This mod fixes that.
Non-Steam download available here.[github.com]
This mod consists of a Harmony prefix which overrides GenLeaving.DoLeavingsFor() in the case that the specified DestroyMode is DestroyMode.Deconstruct. It acts nearly the same, but the calculated drop rate has maximum be Count, not Count-1. Mod conflicts are not expected, since DestroyMode is an enum and to my knowledge cannot be modified without recompiling the base game, but this is a moderately hacky fix.
> You’re not supposed to get everything back when constructing. This isn’t a bug!
The game lets you set the amount a building should return when deconstructing. However, if you set a building to return 100% when deconstructed, the game will instead return one less item than is required to construct it. This is a problem when you have buildings which require a single item and are expected to drop that item.
If you ask that question, I’m just going to delete your comment instead of relitigating this point I’ve made too many times already.
Revisions:
Old revisions of this mod are available below. Click the link to download.