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 @@ ...@@ -50,74 +50,155 @@
</operations> </operations>
</Operation> </Operation>
<Operation Class="PatchOperationAdd"> <Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Nimble"]/degreeDatas/li/statOffsets</xpath> <xpath>Defs/TraitDef[defName="Nimble"]/degreeDatas/li/statOffsets</xpath>
<value> <nomatch Class="PatchOperationAdd">
<SexAbility>0.2</SexAbility> <xpath>Defs/TraitDef[defName="Nimble"]/degreeDatas/li</xpath>
<Vulnerability>-0.1</Vulnerability> <value>
</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>
<Operation Class="PatchOperationAdd"> <Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Bloodlust"]/degreeDatas/li</xpath> <xpath>Defs/TraitDef[defName="Bloodlust"]/degreeDatas/li/statOffsets</xpath>
<value> <nomatch Class="PatchOperationAdd">
<statOffsets> <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> <Vulnerability>-0.1</Vulnerability>
</statOffsets> </value>
</value> </match>
</Operation> </Operation>
<!-- Brawler does not need vulnerability patching: they already get hefty bonus from melee--> <!-- Brawler does not need vulnerability patching: they already get hefty bonus from melee-->
<Operation Class="PatchOperationAdd"> <Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Tough"]/degreeDatas/li</xpath> <xpath>Defs/TraitDef[defName="Tough"]/degreeDatas/li/statOffsets</xpath>
<value> <nomatch Class="PatchOperationAdd">
<statOffsets> <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> <Vulnerability>-0.4</Vulnerability>
</statOffsets> </value>
</value> </match>
</Operation> </Operation>
<!-- Lower vulnerability because TooSmart pwans are better prepared and/or likely to outwit the potential rapist--> <!-- 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> <xpath>Defs/TraitDef[defName="TooSmart"]/degreeDatas/li/statOffsets</xpath>
<value> <nomatch Class="PatchOperationAdd">
<Vulnerability>-0.3</Vulnerability> <xpath>Defs/TraitDef[defName="TooSmart"]/degreeDatas/li</xpath>
</value> <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>
<Operation Class="PatchOperationAdd"> <Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Wimp"]/degreeDatas/li/statOffsets</xpath> <xpath>Defs/TraitDef[defName="Wimp"]/degreeDatas/li/statOffsets</xpath>
<value> <nomatch Class="PatchOperationAdd">
<Vulnerability>0.2</Vulnerability> <xpath>Defs/TraitDef[defName="Wimp"]/degreeDatas/li</xpath>
</value> <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>
<Operation Class="PatchOperationAdd"> <Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Masochist"]/degreeDatas/li</xpath> <xpath>Defs/TraitDef[defName="Masochist"]/degreeDatas/li/statOffsets</xpath>
<value> <nomatch Class="PatchOperationAdd">
<statOffsets> <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> <Vulnerability>0.3</Vulnerability>
</statOffsets> </value>
</value> </match>
</Operation> </Operation>
<Operation Class="PatchOperationAdd"> <Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="Ascetic"]/degreeDatas/li</xpath> <xpath>Defs/TraitDef[defName="Ascetic"]/degreeDatas/li/statOffsets</xpath>
<value> <nomatch Class="PatchOperationAdd">
<statOffsets> <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> <SexFrequency>-0.3</SexFrequency>
</statOffsets> </value>
</value> </match>
</Operation> </Operation>
<Operation Class="PatchOperationAdd"> <Operation Class="PatchOperationConditional">
<xpath>Defs/TraitDef[defName="BodyPurist"]/degreeDatas/li</xpath> <xpath>Defs/TraitDef[defName="BodyPurist"]/degreeDatas/li/statOffsets</xpath>
<value> <nomatch Class="PatchOperationAdd">
<statOffsets> <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> <SexFrequency>-0.1</SexFrequency>
</statOffsets> </value>
</value> </match>
</Operation> </Operation>
<Operation Class="PatchOperationSequence"> <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