RimWorld

RimWorld

Project RimFactory Revived
Specter 12 Aug, 2020 @ 4:37am
Attempt to fix quality postprocessing
as promised, I had a go at the code...

I believe we all agree that the current system is teh suck (having quality messages pop up, then changing the quality is... well...)

also, the core-code is fugly...

I tried a couple of approaches to "fix it", but what it comes down to is this:
copy & paste GenRecipe.cs, adjust PostProcessProduct(args) to
a) take quality as an argument or
b) calculate the proper quality in there
and then call your own GenRecipe.MakeRecipeProducts(args) in your assemblers

now, I know this goes against any and all "best practices", but until ludeon completely refactors GenRecipe.MakeRecipeProducts(args) (or adds a QualityCategory argument to both methods), this seems the only way to keep user info consistent