Skip to content

Commit

Permalink
Merge pull request #3951 from TheLonerD/darkest-night-anomaly-fixes
Browse files Browse the repository at this point in the history
1.5 fixes for Darkest Night mod.
  • Loading branch information
TheLoneTec authored Sep 25, 2024
2 parents 19c1152 + 8122d2a commit b7501e6
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
<label>Darkness</label>
<description>An unusual dark and cold... night.</description>
<endMessage>The darkness is gone</endMessage>
<exclusiveConditions>
<li>UnnaturalDarkness</li>
<li>BloodRain</li>
<li>DeathPall</li>
</exclusiveConditions>
</GameConditionDef>

</Defs>
1 change: 1 addition & 0 deletions Mods/DarkestNight_SK/Defs/ThingDefs/Races_Darkest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<intelligence>Animal</intelligence>
<thinkTreeMain>Void</thinkTreeMain>
<body>QuadrupedAnimalWithHooves</body>
<renderTree>Animal</renderTree>
<needsRest>false</needsRest>
<makesFootprints>false</makesFootprints>
<hasGenders>false</hasGenders>
Expand Down
22 changes: 22 additions & 0 deletions Mods/DarkestNight_SK/Patches/UpdateAnomalyEvents.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>

<Operation Class="PatchOperationConditional">
<xpath>/Defs/GameConditionDef[defName = "UnnaturalDarkness" or defName = "BloodRain" or defName = "DeathPall"]/exclusiveConditions</xpath>
<nomatch Class="PatchOperationAdd">
<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" or defName = "BloodRain" or defName = "DeathPall"]/exclusiveConditions</xpath>
<value>
<li>Darkness</li>
</value>
</match>
</Operation>

</Patch>

0 comments on commit b7501e6

Please sign in to comment.