Skip to content

Commit

Permalink
Release v1.8.1
Browse files Browse the repository at this point in the history
Philip Abernethy committed Aug 27, 2017
2 parents 72c6165 + 2b4e9cc commit 0896c35
Showing 3 changed files with 38 additions and 26 deletions.
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
<name>Autarky</name>
<author>Chais</author>
<targetVersion>0.17.0</targetVersion>
<description>V1.8.0
<description>V1.8.1
This mod adds crafting recipes for Neutroamine, Luciferium and glitterworld medicine, granting you more independence from traders. It makes Boomalopes and Boomrats more useful and requires to build a production line of drugs if you want Luciferium. Luciferium and glitterworld medicine require a lot of research.
</description>
</ModMetaData>
60 changes: 36 additions & 24 deletions Patches/ThingDefs_Buildings/Buildings_Joy.xml
Original file line number Diff line number Diff line change
@@ -1,37 +1,35 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!-- Flatscreen TV -->
<!-- Only add researchPrerequisite if list already exists -->
<Operation Class="PatchOperationSequence">
<success>Never</success>
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/ThingDefs/ThingDef[defName="FlatscreenTelevision"]/researchPrerequisites</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>/ThingDefs/ThingDef[defName="FlatscreenTelevision"]/researchPrerequisites</xpath>
<xpath>/ThingDefs/ThingDef[defName="FlatscreenTelevision"]</xpath>
<value>
<li>Autarky_FlatscreenTelevision</li>
<researchPrerequisites>
<li>Autarky_FlatscreenTelevision</li>
</researchPrerequisites>
</value>
</li>
</operations>
</Operation>

<!-- Or add list -->
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/ThingDefs/ThingDef[defName="FlatscreenTelevision"]/researchPrerequisites</xpath>
<xpath>/ThingDefs/ThingDef[defName="FlatscreenTelevision"]/designationCategory</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>/ThingDefs/ThingDef[defName="FlatscreenTelevision"]</xpath>
<value>
<researchPrerequisites>
<li>Autarky_FlatscreenTelevision</li>
</researchPrerequisites>
<designationCategory>Joy</designationCategory>
</value>
</li>
</operations>
@@ -41,50 +39,48 @@
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/ThingDefs/ThingDef[defName="FlatscreenTelevision"]/designationCategory</xpath>
<xpath>/ThingDefs/ThingDef[defName="FlatscreenTelevision"]/statBases/WorkToBuild</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>/ThingDefs/ThingDef[defName="FlatscreenTelevision"]</xpath>
<xpath>/ThingDefs/ThingDef[defName="FlatscreenTelevision"]/statBases</xpath>
<value>
<designationCategory>Joy</designationCategory>
<WorkToBuild>7500</WorkToBuild>
</value>
</li>
</operations>
</Operation>

<!-- Megascreen TV -->
<!-- Only add researchPrerequisite if list already exists -->
<Operation Class="PatchOperationSequence">
<success>Never</success>
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/ThingDefs/ThingDef[defName="MegascreenTelevision"]/researchPrerequisites</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>/ThingDefs/ThingDef[defName="MegascreenTelevision"]/researchPrerequisites</xpath>
<xpath>/ThingDefs/ThingDef[defName="MegascreenTelevision"]</xpath>
<value>
<li>Autarky_MegascreenTelevision</li>
<researchPrerequisites>
<li>Autarky_MegascreenTelevision</li>
</researchPrerequisites>
</value>
</li>
</operations>
</Operation>

<!-- Or add list -->
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/ThingDefs/ThingDef[defName="MegascreenTelevision"]/researchPrerequisites</xpath>
<xpath>/ThingDefs/ThingDef[defName="MegascreenTelevision"]/designationCategory</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>/ThingDefs/ThingDef[defName="MegascreenTelevision"]</xpath>
<value>
<researchPrerequisites>
<li>Autarky_MegascreenTelevision</li>
</researchPrerequisites>
<designationCategory>Joy</designationCategory>
</value>
</li>
</operations>
@@ -94,13 +90,13 @@
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/ThingDefs/ThingDef[defName="MegascreenTelevision"]/designationCategory</xpath>
<xpath>/ThingDefs/ThingDef[defName="MegascreenTelevision"]/statBases/WorkToBuild</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>/ThingDefs/ThingDef[defName="MegascreenTelevision"]</xpath>
<xpath>/ThingDefs/ThingDef[defName="MegascreenTelevision"]/statBases</xpath>
<value>
<designationCategory>Joy</designationCategory>
<WorkToBuild>9000</WorkToBuild>
</value>
</li>
</operations>
@@ -129,4 +125,20 @@
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/ThingDefs/ThingDef[defName="Telescope"]/statBases/WorkToBuild</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>/ThingDefs/ThingDef[defName="Telescope"]/statBases</xpath>
<value>
<WorkToBuild>7000</WorkToBuild>
</value>
</li>
</operations>
</Operation>
</Patch>
2 changes: 1 addition & 1 deletion Patches/ThingDefs_Plants/Plants_Special.xml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="PlantAmbrosia"]/plant</xpath>
<value>
<sowMinSkill>17</sowMinSkill>
<sowMinSkill>16</sowMinSkill>
<sowTags>
<li>Ground</li>
<li>Hydroponic</li>

0 comments on commit 0896c35

Please sign in to comment.