RimWorld

RimWorld

212 ratings
Repair at Crafting Bench
4
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
3.398 MB
14 Apr, 2024 @ 3:39am
16 Aug @ 9:42pm
4 Change Notes ( view )

Subscribe to download
Repair at Crafting Bench

Description
1.6 supported, although I haven't tested much on it, so it may be buggy. Please report bugs below.

Lets you repair weapons/armor/clothes at the original workbenches you crafted them on, without needing extra mending workbenches.

Features
Completely repair durability on items using the same workbenches you use to create them
Nifty progress bar to tell you how close to done you are

Details
This is based on/a fork of the excellent MendAndRecycle mod; however, it doesn't add any new workbenches. Instead, it automatically adds repair bills to any existing workbenches, which have a skill requirement depending on the skill requirement of the original recipes. Currently it does not support recycling :'(

Repairing items currently only costs time. Which items get repaired can be controlled via the standard BillsTab filtering behavior.

The repair bills correspond roughly to the type and difficulty of skill required to craft the item:
  • items requiring less than 6 of any skill to craft are "simple", and have no skill requirements to repair
  • items whose highest skill required to craft is between 6 and 11 are "complex", and require 4 in that skill to repair
  • items whose highest skill required to craft is between 12 and 17 are "advanced", and require 8 in that skill to repair
    ...
  • items whose highest skill required to craft is between [6*N] and [6*N+5] require [4*N] in that skill to repair (to my knowledge, nothing in vanilla requires a crafting skill higher than 8, so this is really just for mod items)

Currently, you can only repair weapon or apparel items that have at least one recipe which matches all of the following:
  • produced at a workbench with the "production" tag
  • produces only a single item
  • uses an unfinished item to track progress

The single exception to this is that the mod is currently hardcoded to allow repair of eltex items at the tailoring bench using crafting skill.

Compatibility
This mod should be compatible with any mods that add new workbenches or crafting recipes; those items will be repairable at their producing workbench if they match the conditions above.

It should be compatible with new or old save games. You should remove any outstanding repair bills before disabling the mod.

If using 1.5, HugsLib is also required.

A 1.4 version is available here: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2881809577

Credits
Everyone who's worked on MendAndRecycle over the years and whose code I therefore learned from—NotFood, topp2000, Skyarkhangel, Wastelander

Ludeon studios, whose code I also learned from and "reverse-engineered" (i.e. copied wholesale)

Source is available in the mod; github pending.

94 Comments
Bob Gnarly 30 Sep @ 8:55am 
I'm getting same standing bug when trying to repair complex items at fabricator, particurarly marine and cataphract armor
Mana 8 Sep @ 12:50pm 
Does repairing remove tainted?
JoeBanane 5 Sep @ 7:37am 
I was able to reproduce the error with just this mod in a dev quicktest on a machining table with damaged flak pants loaded on an outfit stand.
However i noticed it's only when the option "Allow Removing Items" is checked on the stand
swwu  [author] 5 Sep @ 1:12am 
@JoeBanane Outfit stands block the job from being assigned, but it shouldn't get stuck; it should just never start. (This is what it does for me right now on a clean save with only this mod installed.) This is consistent with vanilla behaviors, e.g. the smelter is also unable to smelt apparel that's on an outfit stand.

I haven't been able to reproduce the "stuck" behavior generally, but I can look into it if anyone can give me a more specific way to reproduce it.
JoeBanane 23 Aug @ 6:33pm 
@Frosty I've had that issue happen to me while trying to repair a flak jacket at a machining table.
I think it does that when trying to repair an item that's on an outfit stand.
Frosty 23 Aug @ 3:49am 
Can create a bill for complex repairing at the fabrication bench, but whenever i prioritise anyone to do the repair they just end up stuck 'standing' and don't actually go to the bench to do anything? There are items that need repairing. The repair bill on the tailoring bench is working though.
auberraco 22 Aug @ 7:53am 
Thanks for update I love you
swwu  [author] 18 Aug @ 3:49am 
@Chloe The recon armor seems to work for me, under "Repair complex crafting items" on the fabrication bench.
BloodCardBeefy 17 Aug @ 11:11pm 
For they're a jolly good modder, which nobody can deny!!!

Thanks for the update. I can't believe that some sort of repair option for gear isn't in base game, and this mod just seems the simplest way to do it.
Klaun 17 Aug @ 1:17pm 
Thanks for the update! <3