边缘世界 RimWorld

边缘世界 RimWorld

Vanilla Furniture Expanded - Spacer Module
magneticflux- 2021 年 5 月 28 日 下午 8:10
Repair shelf not working on psychic animal pulser?
I left a psychic animal pulser on the shelf for a few days, and it hasn't increased from 15/80 (19%). Does the shelf work on all items, or just "clothing, armour or weapons"?
< >
正在显示第 1 - 4 条,共 4 条留言
magneticflux- 2021 年 5 月 31 日 下午 8:04 
It's been an in-game year, with no change. I think something's broken.
magneticflux- 2021 年 6 月 4 日 下午 8:14 
I can confirm it works with other weapons. They tick up health at around 2 points per in-game hour.
Jalordon 2021 年 6 月 23 日 上午 7:40 
I think I remember a few months ago when I read the decompiled code, when I also noticed some items not repairing on the shelf, that the shelf checks if the item is in the "weapons" or "apparel" category to allow applying repairs.

line of code in question:
if ((firstItem != null && firstItem.get_HitPoints() != firstItem.get_MaxHitPoints() && firstItem.def.IsWithinCategory(ThingCategoryDefOf.Weapons)) || (firstItem != null && firstItem.get_HitPoints() != firstItem.get_MaxHitPoints() && firstItem.def.IsWithinCategory(ThingCategoryDefOf.Apparel)))

I assume these categories refer to the tags stockpiles use, ie it only repairs items if they are under the apparel or weapons category
Kikohi 2021 年 8 月 9 日 上午 1:34 
@magneticflux You created a new thread, we don't get notified of that. That's why we never responded.

Yes the shelf only repair apparel and armors, with the last update, the storage tab has been updated to only have those categories.
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50