RimWorld

RimWorld

Not enough ratings
Deconstruct Return Fix B19
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
86.318 KB
30 Sep, 2018 @ 10:42am
1 Change Note ( view )

Subscribe to download
Deconstruct Return Fix B19

Description
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.

Technical Details
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.
3 Comments
dninemfive  [author] 18 Oct, 2018 @ 7:52pm 
@HowMuhKevinNah Yes. More details in the collection .
HowMuhKevinNah 18 Oct, 2018 @ 7:38pm 
Update?
d_valroth 1 Oct, 2018 @ 4:36pm 
Neat, that was something the dissasembly mod couldn't fix. those darn components always breaking just because you needed to move the desk two feet to the left.