Ludeon Forums

RimWorld => Mods => Help => Topic started by: Voideka on March 01, 2015, 06:04:22 AM

Title: Specify Damaged Ingredients
Post by: Voideka on March 01, 2015, 06:04:22 AM
Is it possible to specify whether a recipe should use damaged or undamaged ingredients somehow? So for example you could make a repair bench that only accepts damaged items and which in turn spits out fixed items.
Title: Re: Specify Damaged Ingredients
Post by: Famous Shoes on March 01, 2015, 02:34:33 PM
Maybe, I'd dig into ThingFilter and possibly its specialFilters. But, my guess would be no and since ThingFilter is yet another non-virtual without an interface, you'd be hard-pressed to monkey-patch filtration. I was just looking at it as a way to filter by size and decided to heck with it.
Title: Re: Specify Damaged Ingredients
Post by: Gaesatae on March 01, 2015, 03:18:29 PM
I can't think of an easy way to make it work without, probably, a lot of coding. In theory adding a couple of lines to the WorkGiver_DoBill to filter out damaged ingredients may work. But it's a complex workgiver, the more I look at the code the less I think it's a good idea. I'm not sure.
Title: Re: Specify Damaged Ingredients
Post by: Wastelander on March 03, 2015, 03:38:27 PM
I don't think it's possible... at least I couldn't find a way to do it.

If you want a repair bench, though, I just released one in the mods forum (Mending mod).