Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

Ali's Patchleather Fix

Fixes the Vanilla recipe for patchleather so that it actually correctly de-selects thrumbofur and alphathrumbofur as the vanilla code suggests that it should do, rtaher than enabling the entire leather category. It changes the code layout of the patchleather recipe so that modded leathers can be easily added to the recipe to be selected for or against, without having to be completely disallowed. Example pictures show the code for the patch as well as the highlighted problematic section of the the vanilla code. *** can be just used on its own to restore the vanilla functionality to auto deselect thrumbofur, but can also be used in combination with mods that add new types of leather. (In the in-game example pic you see that I have added my "ranger leather" from one of my other mods to be auto deselected.) *** for modders wanting to add their modded items to the altered patchleather code: if you add a new leather type to the game in your code, but want it to be deselected from automatically be turned into patchleather, use the following patch line: <Patch> <Operation Class="PatchOperationAdd"> <xpath>Defs/RecipeDef[defName="Make_Patchleather"]/defaultIngredientFilter/disallowedThingDefs</xpath> <value> <li>YourModdedLeather</li> </value> </Operation> </Patch> when this line is used in your modded leather types, make sure that this mod is listed as a dependency and also that it is loaded before the other mod. *** please note that because this changes the layout of the vanilla patchleather code, it may have unexpected interactions with othr mods which also interact with the vanilla patchleather code. No functionality is removed, but the changes of the positions of the nodes may confuse other patches which require them where they are. I have given the specific code clearly and with the simple patch line so that any other modders who have been doing individual workarounds for this can use this as a base dependency and hopfully get everything to play well together. *** this may not be an indepndent idea, as i doubt that i am the first modder to run into this issue, but i found it quicker to simply make my own patch and upload it than searching the workshop for one that only did this single change and nothing else. If anyone else knows of similar mods, please let me know.