边缘世界 RimWorld

边缘世界 RimWorld

Butcher First
Proxyer 2021 年 1 月 25 日 上午 1:37
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.
< >
正在显示第 1 - 3 条,共 3 条留言
Proxyer 2021 年 1 月 25 日 上午 1:38 
/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  [开发者] 2024 年 3 月 23 日 下午 2:07 
that looks great. I have no idea about that tho
Proxyer 2024 年 3 月 23 日 下午 6:28 
I would be happy if I could help you make your mod better. :lunar2019wavingpig:
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50