边缘世界 RimWorld

边缘世界 RimWorld

Thrones plus
Matsay 2023 年 10 月 9 日 下午 8:07
VFE Empire compat
So I wanted a compatibility patch for VFE Empire, and ended up completely rewriting the original patch to ensure better compatibility with other mods. Guess I'll share it for anyone interested. Lumi, feel free to integrate it to the base mod :)

NOTE - This code REPLACES the original patch ; either create a new patch file and get rid of the old one, or paste this over the original.

<Patch>
<Operation Class="PatchOperationInsert">
<xpath>//Defs/RoyalTitleDef/throneRoomRequirements/li[@Class="RoomRequirement_HasAssignedThroneAnyOf"]/things/li[text()="GrandThrone"]</xpath>
<order>Append</order>
<value>
<li>GrandThroneA</li>
<li>GrandThroneB</li>
<li>GrandThroneC</li>
</value>
</Operation>
<Operation Class="PatchOperationInsert">
<xpath>//Defs/RoyalTitleDef/throneRoomRequirements/li[@Class="RoomRequirement_HasAssignedThroneAnyOf" or @Class="RoomRequirement_ThingAnyOfCount"]/things/li[text()="Throne"]</xpath>
<order>Append</order>
<value>
<li>ThroneA</li>
<li>ThroneB</li>
<li>ThroneC</li>
</value>
</Operation>
<Operation Class="PatchOperationConditional"
MayRequire="OskarPotocki.VFE.Empire">
<xpath>//Defs/RoyalTitleDef/throneRoomRequirements/li[@Class="RoomRequirement_ThingCount"][thingDef="Throne"]</xpath>
<match Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationAttributeSet">
<xpath>//Defs/RoyalTitleDef/throneRoomRequirements/li[@Class="RoomRequirement_ThingCount"][thingDef="Throne"]</xpath>
<attribute>Class</attribute>
<value>RoomRequirement_ThingAnyOfCount</value>
</li>
<li Class="PatchOperationReplace">
<xpath>/Defs/RoyalTitleDef/throneRoomRequirements/li[thingDef="Throne"]/thingDef</xpath>
<value>
<things>
<li>Throne</li>
<li>ThroneA</li>
<li>ThroneB</li>
<li>ThroneC</li>
</things>
</value>
</li>
</operations>
</match>
</Operation>
</Patch>
最后由 Matsay 编辑于; 2023 年 10 月 9 日 下午 8:43
< >
正在显示第 1 - 5 条,共 5 条留言
Sotetsu 2023 年 10 月 14 日 上午 8:44 
Thanks for this! Do I just paste this over what's in the file Patch_RoyalTitles_Empire.xml in the 1.3 Patches folder?
Matsay 2023 年 11 月 9 日 下午 1:26 
Oops, sorry I didn't come back sooner, my hope was that by now the author would have updated the mod...
Yes, that's exactly what you need to do. Or better yet, create a new patch file and get rid of the old one.
arkai65 2023 年 11 月 19 日 下午 4:25 
is it a straight overwrite or do i need to follow the format of the original?
Sotetsu 2024 年 8 月 5 日 下午 2:46 
@matsay Could you update this for 1.5? Or is it all the same? I ask because after redoing this, my Grand Meditation throne from this mod is still not meeting title requirements after making the new patch file.
最后由 Sotetsu 编辑于; 2024 年 8 月 5 日 下午 2:54
Matsay 2024 年 10 月 16 日 下午 11:06 
引用自 Sotetsu
@matsay Could you update this for 1.5? Or is it all the same? I ask because after redoing this, my Grand Meditation throne from this mod is still not meeting title requirements after making the new patch file.
EDIT : Ooops, wrong mod. I kinda stopped using this mod a while ago and don't really feel like digging through the files to see what's changed, sorry. Maybe the author of the mod could take a look?
最后由 Matsay 编辑于; 2024 年 10 月 18 日 下午 8:37
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50