mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
Compatibility patch for HCSK
This commit is contained in:
parent
0fb2c09347
commit
6b8e388e2e
1 changed files with 32 additions and 0 deletions
32
Patches/CompatibilityPatch_HCSK.xml
Normal file
32
Patches/CompatibilityPatch_HCSK.xml
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Patch>
|
||||
<!-- Patch for HCSK, to attach to differently written thingdefs -->
|
||||
<Operation Class="PatchOperationFindMod">
|
||||
<mods>
|
||||
<li>Core SK</li>
|
||||
</mods>
|
||||
<match Class="PatchOperationSequence">
|
||||
<success>Always</success>
|
||||
<operations>
|
||||
<li Class="PatchOperationConditional">
|
||||
<xpath>/Defs/Verse.ThingDef/comps</xpath>
|
||||
<success>Always</success>
|
||||
<nomatch Class="PatchOperationAdd">
|
||||
<xpath>/Defs/Verse.ThingDef</xpath>
|
||||
<value>
|
||||
<comps />
|
||||
</value>
|
||||
</nomatch>
|
||||
</li>
|
||||
|
||||
<li Class="PatchOperationAdd">
|
||||
<xpath>/Defs/Verse.ThingDef/comps</xpath>
|
||||
<value>
|
||||
<li Class="Rimworld_Animations.CompProperties_BodyAnimator" />
|
||||
</value>
|
||||
</li>
|
||||
</operations>
|
||||
</match>
|
||||
</Operation>
|
||||
|
||||
</Patch>
|
Loading…
Reference in a new issue