RimWorld

RimWorld

Vanilla Furniture Expanded - Spacer Module
magneticflux- 28. maj 2021 kl. 20: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"?
< >
Viser 1-4 af 4 kommentarer
magneticflux- 31. maj 2021 kl. 20:04 
It's been an in-game year, with no change. I think something's broken.
magneticflux- 4. juni 2021 kl. 20:14 
I can confirm it works with other weapons. They tick up health at around 2 points per in-game hour.
Jalordon 23. juni 2021 kl. 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 9. aug. 2021 kl. 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.
< >
Viser 1-4 af 4 kommentarer
Per side: 1530 50