RimWorld

RimWorld

Combat Shields
Erazil 8 Sep, 2021 @ 6:48pm
1.3 Patch Bug Fix
i made this for my personal use , i share with you if you use the same mods of me

File : Patches\Core\PawnKindPatch_Core.xml
<?xml version="1.0" encoding="utf-8" ?> <Patch> <!-- Allow some pawns to spawn with shields --> <!-- Tribal --> <Operation Class="PatchOperationConditional"> <xpath>/Defs/PawnKindDef[defName="Tribal_Berserker"]/apparelTags</xpath> <nomatch Class="PatchOperationAdd"> <xpath>/Defs/PawnKindDef[defName="Tribal_Berserker"]</xpath> <value> <apparelTags> <li>Shield_Neolithic</li> </apparelTags> </value> </nomatch> <match Class="PatchOperationAdd"> <xpath>/Defs/PawnKindDef[defName="Tribal_Berserker"]/apparelTags</xpath> <value> <li>Shield_Neolithic</li> </value> </match> </Operation> <Operation Class="PatchOperationConditional"> <xpath>/Defs/PawnKindDef[defName="Tribal_Warrior"]/apparelTags</xpath> <nomatch Class="PatchOperationAdd"> <xpath>/Defs/PawnKindDef[defName="Tribal_Warrior"]</xpath> <value> <apparelTags> <li>Shield_Neolithic</li> </apparelTags> </value> </nomatch> <match Class="PatchOperationAdd"> <xpath>/Defs/PawnKindDef[defName="Tribal_Warrior"]/apparelTags</xpath> <value> <li>Shield_Neolithic</li> </value> </match> </Operation> <Operation Class="PatchOperationConditional"> <xpath>/Defs/PawnKindDef[defName="Tribal_ChiefMelee"]/apparelTags</xpath> <nomatch Class="PatchOperationAdd"> <xpath>/Defs/PawnKindDef[defName="Tribal_ChiefMelee"]</xpath> <value> <apparelTags> <li>Shield_Neolithic</li> </apparelTags> </value> </nomatch> <match Class="PatchOperationAdd"> <xpath>/Defs/PawnKindDef[defName="Tribal_ChiefMelee"]/apparelTags</xpath> <value> <li>Shield_Neolithic</li> </value> </match> </Operation> </Patch>

fix the trouble with Vanilla Armour Expanded and [Fuu] Uncompromising Tribal Faction (maybe another mods )
Combat Shields need to be loaded AFTER VAE / FUU

change basic patch to conditional patch

File : Patches\Rimsenal\WeaponPatch_Rimsenal_Federation.xml
<?xml version="1.0" encoding="utf-8" ?> <Patch> <Operation Class="PatchOperationFindMod"> <mods> <li>Rimsenal - Federation Faction Pack</li> </mods> <match Class="PatchOperationSequence"> <operations> <li Class="PatchOperationAdd"> <xpath>/Defs/ThingDef[defName="AD_FedPlasmaGrenades"]/weaponTags</xpath> <value> <li>Shield_Sidearm</li> </value> </li> <li Class="PatchOperationAdd"> <xpath>/Defs/ThingDef[defName="AD_EMB"]/weaponTags</xpath> <value> <li>Shield_Sidearm</li> </value> </li> </operations> </match> </Operation> </Patch>

just the removal of patches that have become useless (and caused errors)
< >
Showing 1-4 of 4 comments
velcroboy333 8 Sep, 2021 @ 8:12pm 
I suggested a similar patch in the comments 7 or 8 pages ago. This mod was causing a similar conflict with Powerful Faction Bases
velcroboy333 8 Sep, 2021 @ 8:13pm 
<Operation Class="PatchOperationConditional">
<xpath>/Defs/FactionDef[@Name="TribeBase"]/pawnGroupMakers/li[6]/options/Tribal_Warrior</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>/Defs/FactionDef[@Name="TribeBase"]/pawnGroupMakers/li[6]/options</xpath>
<value>
<Tribal_Warrior>4</Tribal_Warrior>
<Tribal_ShieldWarrior>3</Tribal_ShieldWarrior>
</value>
</nomatch>
<match Class="PatchOperationReplace">
<xpath>/Defs/FactionDef[@Name="TribeBase"]/pawnGroupMakers/li[6]/options/Tribal_Warrior</xpath>
<value>
<Tribal_Warrior>4</Tribal_Warrior>
<Tribal_ShieldWarrior>3</Tribal_ShieldWarrior>
</value>
</match>
</Operation>
Scorpio 10 Oct, 2021 @ 11:32am 
thanks for this
Paizuri-Chan 23 Dec, 2021 @ 3:35am 
how am i using this?
< >
Showing 1-4 of 4 comments
Per page: 1530 50