RimWorld

RimWorld

Butcher First
Proxyer 25 Jan, 2021 @ 1:37am
How about switching to a patch?
Currently, WorkGiversDefs is added directly, but why not add a patch with less impact? Below is a sample patch.
< >
Showing 1-3 of 3 comments
Proxyer 25 Jan, 2021 @ 1:38am 
/Patches/WorkGivers_Cooking_Patches.xml


<?xml version="1.0" encoding="utf-8" ?> <Patch> <!-- Change WorkGivers Cooking Patches --> <!-- DoBillsCook --> <Operation Class="PatchOperationConditional"> <success>Always</success> <xpath>*/WorkGiverDef[defName = "DoBillsCook"]/priorityInType</xpath> <match Class="PatchOperationReplace"> <xpath>*/WorkGiverDef[defName = "DoBillsCook"]/priorityInType</xpath> <value> <priorityInType>90</priorityInType> </value> </match> <nomatch><success>Always</success></nomatch> </Operation> <!-- DoBillsCookCampfire --> <Operation Class="PatchOperationConditional"> <success>Always</success> <xpath>*/WorkGiverDef[defName = "DoBillsCookCampfire"]/priorityInType</xpath> <match Class="PatchOperationReplace"> <xpath>*/WorkGiverDef[defName = "DoBillsCookCampfire"]/priorityInType</xpath> <value> <priorityInType>80</priorityInType> </value> </match> <nomatch><success>Always</success></nomatch> </Operation> <!-- DoBillsButcherFlesh --> <Operation Class="PatchOperationConditional"> <success>Always</success> <xpath>*/WorkGiverDef[defName = "DoBillsButcherFlesh"]/priorityInType</xpath> <match Class="PatchOperationReplace"> <xpath>*/WorkGiverDef[defName = "DoBillsButcherFlesh"]/priorityInType</xpath> <value> <priorityInType>100</priorityInType> </value> </match> <nomatch><success>Always</success></nomatch> </Operation> <!-- CookFillHopper --> <Operation Class="PatchOperationConditional"> <success>Always</success> <xpath>*/WorkGiverDef[defName = "CookFillHopper"]/priorityInType</xpath> <match Class="PatchOperationReplace"> <xpath>*/WorkGiverDef[defName = "CookFillHopper"]/priorityInType</xpath> <value> <priorityInType>50</priorityInType> </value> </match> <nomatch><success>Always</success></nomatch> </Operation> <!-- DoBillsBrew --> <Operation Class="PatchOperationConditional"> <success>Always</success> <xpath>*/WorkGiverDef[defName = "DoBillsBrew"]/priorityInType</xpath> <match Class="PatchOperationReplace"> <xpath>*/WorkGiverDef[defName = "DoBillsBrew"]/priorityInType</xpath> <value> <priorityInType>30</priorityInType> </value> </match> <nomatch><success>Always</success></nomatch> </Operation> </Patch>
Fozzy  [developer] 23 Mar, 2024 @ 2:07pm 
that looks great. I have no idea about that tho
Proxyer 23 Mar, 2024 @ 6:28pm 
I would be happy if I could help you make your mod better. :lunar2019wavingpig:
< >
Showing 1-3 of 3 comments
Per page: 1530 50