Skip to content

Commit

Permalink
Forbid Darkness event while BloodRain or DeathPall are active (and vi…
Browse files Browse the repository at this point in the history
…ce-versa).
  • Loading branch information
TheLonerD committed Sep 25, 2024
1 parent 1753c2c commit 8122d2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<endMessage>The darkness is gone</endMessage>
<exclusiveConditions>
<li>UnnaturalDarkness</li>
<li>BloodRain</li>
<li>DeathPall</li>
</exclusiveConditions>
</GameConditionDef>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>

<Operation Class="PatchOperationConditional">
<xpath>/Defs/GameConditionDef[defName = "UnnaturalDarkness"]/exclusiveConditions</xpath>
<xpath>/Defs/GameConditionDef[defName = "UnnaturalDarkness" or defName = "BloodRain" or defName = "DeathPall"]/exclusiveConditions</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>/Defs/GameConditionDef[defName = "UnnaturalDarkness"]</xpath>
<xpath>/Defs/GameConditionDef[defName = "UnnaturalDarkness" or defName = "BloodRain" or defName = "DeathPall"]</xpath>
<value>
<exclusiveConditions>
<li>Darkness</li>
</exclusiveConditions>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>/Defs/GameConditionDef[defName = "UnnaturalDarkness"]/exclusiveConditions</xpath>
<xpath>/Defs/GameConditionDef[defName = "UnnaturalDarkness" or defName = "BloodRain" or defName = "DeathPall"]/exclusiveConditions</xpath>
<value>
<li>Darkness</li>
</value>
Expand Down

0 comments on commit 8122d2a

Please sign in to comment.