边缘世界 RimWorld

边缘世界 RimWorld

评价数不足
Deconstruct Return Fix B19
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
86.318 KB
2018 年 9 月 30 日 上午 10:42
1 项改动说明 ( 查看 )

订阅以下载
Deconstruct Return Fix B19

描述
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 条留言
dninemfive  [作者] 2018 年 10 月 18 日 下午 7:52 
@HowMuhKevinNah Yes. More details in the collection .
HowMuhKevinNah 2018 年 10 月 18 日 下午 7:38 
Update?
d_valroth 2018 年 10 月 1 日 下午 4:36 
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.