Skip to content
Snippets Groups Projects
Commit 44a0d9c4 authored by Zaltys's avatar Zaltys :snake:
Browse files

Added conditionals for better mod compatibility.

parent 2bd1e3b1
No related branches found
No related tags found
No related merge requests found
......@@ -50,74 +50,155 @@
</operations>
</Operation>
<Operation Class="PatchOperationAdd">
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Nimble"]/degreeDatas/li/statOffsets</xpath>
<value>
<SexAbility>0.2</SexAbility>
<Vulnerability>-0.1</Vulnerability>
</value>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Nimble"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<SexAbility>0.2</SexAbility>
<Vulnerability>-0.1</Vulnerability>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Nimble"]/degreeDatas/li/statOffsets</xpath>
<value>
<SexAbility>0.2</SexAbility>
<Vulnerability>-0.1</Vulnerability>
</value>
</match>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Bloodlust"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Bloodlust"]/degreeDatas/li/statOffsets</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Bloodlust"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<Vulnerability>-0.1</Vulnerability>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Bloodlust"]/degreeDatas/li/statOffsets</xpath>
<value>
<Vulnerability>-0.1</Vulnerability>
</statOffsets>
</value>
</value>
</match>
</Operation>
<!-- Brawler does not need vulnerability patching: they already get hefty bonus from melee-->
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Tough"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Tough"]/degreeDatas/li/statOffsets</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Tough"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<Vulnerability>-0.4</Vulnerability>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Tough"]/degreeDatas/li/statOffsets</xpath>
<value>
<Vulnerability>-0.4</Vulnerability>
</statOffsets>
</value>
</value>
</match>
</Operation>
<!-- Lower vulnerability because TooSmart pwans are better prepared and/or likely to outwit the potential rapist-->
<Operation Class="PatchOperationAdd">
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="TooSmart"]/degreeDatas/li/statOffsets</xpath>
<value>
<Vulnerability>-0.3</Vulnerability>
</value>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="TooSmart"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<Vulnerability>-0.3</Vulnerability>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="TooSmart"]/degreeDatas/li/statOffsets</xpath>
<value>
<Vulnerability>-0.3</Vulnerability>
</value>
</match>
</Operation>
<Operation Class="PatchOperationAdd">
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Wimp"]/degreeDatas/li/statOffsets</xpath>
<value>
<Vulnerability>0.2</Vulnerability>
</value>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Wimp"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<Vulnerability>0.2</Vulnerability>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Wimp"]/degreeDatas/li/statOffsets</xpath>
<value>
<Vulnerability>0.2</Vulnerability>
</value>
</match>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Masochist"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Masochist"]/degreeDatas/li/statOffsets</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Masochist"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<Vulnerability>0.3</Vulnerability>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Masochist"]/degreeDatas/li/statOffsets</xpath>
<value>
<Vulnerability>0.3</Vulnerability>
</statOffsets>
</value>
</value>
</match>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Ascetic"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Ascetic"]/degreeDatas/li/statOffsets</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Ascetic"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<SexFrequency>-0.3</SexFrequency>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="Ascetic"]/degreeDatas/li/statOffsets</xpath>
<value>
<SexFrequency>-0.3</SexFrequency>
</statOffsets>
</value>
</value>
</match>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="BodyPurist"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="BodyPurist"]/degreeDatas/li/statOffsets</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="BodyPurist"]/degreeDatas/li</xpath>
<value>
<statOffsets>
<SexFrequency>-0.1</SexFrequency>
</statOffsets>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>Defs/TraitDef[defName="BodyPurist"]/degreeDatas/li/statOffsets</xpath>
<value>
<SexFrequency>-0.1</SexFrequency>
</statOffsets>
</value>
</value>
</match>
</Operation>
<Operation Class="PatchOperationSequence">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment