Skip to content

Commit

Permalink
Update to 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Abernethy committed Aug 1, 2017
2 parents 2e8de20 + dedbf78 commit 72c6165
Show file tree
Hide file tree
Showing 5 changed files with 214 additions and 1 deletion.
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>Autarky</name>
<author>Chais</author>
<targetVersion>0.17.0</targetVersion>
<description>V1.7.2
<description>V1.8.0
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>
47 changes: 47 additions & 0 deletions Defs/ResearchProjectDefs/ResearchProjects_Misc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,51 @@
<researchViewX>11</researchViewX>
<researchViewY>1</researchViewY>
</ResearchProjectDef>

<ResearchProjectDef>
<defName>Autarky_Telescope</defName>
<label>telescope</label>
<description>Learn to build a telescope.</description>
<baseCost>1600</baseCost>
<techLevel>Industrial</techLevel>
<researchViewX>3</researchViewX>
<researchViewY>4</researchViewY>
</ResearchProjectDef>

<ResearchProjectDef>
<defName>Autarky_FlatscreenTelevision</defName>
<label>flat screen television</label>
<description>Learn to build a flatscreen television.</description>
<baseCost>1600</baseCost>
<techLevel>Industrial</techLevel>
<prerequisites>
<li>TubeTelevision</li>
</prerequisites>
<researchViewX>8</researchViewX>
<researchViewY>5</researchViewY>
</ResearchProjectDef>

<ResearchProjectDef>
<defName>Autarky_MegascreenTelevision</defName>
<label>flat screen television</label>
<description>Learn to build a megascreen television.</description>
<baseCost>3200</baseCost>
<techLevel>Industrial</techLevel>
<prerequisites>
<li>Autarky_FlatscreenTelevision</li>
</prerequisites>
<requiredResearchBuilding>HiTechResearchBench</requiredResearchBuilding>
<researchViewX>9</researchViewX>
<researchViewY>5</researchViewY>
</ResearchProjectDef>

<ResearchProjectDef>
<defName>Autarky_Ambrosia</defName>
<label>ambrosia</label>
<description>Allows colonists to cultivate Ambrosia, a sensitive plant that produces pleasurable fruits.</description>
<baseCost>1600</baseCost>
<techLevel>Neolithic</techLevel>
<researchViewX>1</researchViewX>
<researchViewY>2</researchViewY>
</ResearchProjectDef>
</Defs>
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,13 @@

<Autarky_GlitterworldMedicineProduction.label>Glitzerwelt Medizin Produktion</Autarky_GlitterworldMedicineProduction.label>
<Autarky_GlitterworldMedicineProduction.description>Lerne Glitzerwelt Medizin herzustellen. Extrem effektives medizinisches Zubehör das erfolgreiche Operationen unter widrigsten Umständen ermöglicht.</Autarky_GlitterworldMedicineProduction.description>

<Autarky_Telescope.label>Teleskop</Autarky_Telescope.label>
<Autarky_Telescope.description>Lerne, ein Teleskop zu bauen.</Autarky_Telescope.description>

<Autarky_FlatscreenTelevision.label>Flachbild Fernseher</Autarky_FlatscreenTelevision.label>
<Autarky_FlatscreenTelevision.description>Lerne, einen Flachbild Fernseher zu bauen.</Autarky_FlatscreenTelevision.description>

<Autarky_MegascreenTelevision.label>Riesen Flachbild Fernseher</Autarky_MegascreenTelevision.label>
<Autarky_MegascreenTelevision.description>Lerne, einen Riesen Flachbild Fernseher zu bauen.</Autarky_MegascreenTelevision.description>
</Defs>
132 changes: 132 additions & 0 deletions Patches/ThingDefs_Buildings/Buildings_Joy.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!-- Flatscreen TV -->
<!-- Only add researchPrerequisite if list already exists -->
<Operation Class="PatchOperationSequence">
<success>Never</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>
<value>
<li>Autarky_FlatscreenTelevision</li>
</value>
</li>
</operations>
</Operation>

<!-- Or add list -->
<Operation Class="PatchOperationSequence">
<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"]</xpath>
<value>
<researchPrerequisites>
<li>Autarky_FlatscreenTelevision</li>
</researchPrerequisites>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/ThingDefs/ThingDef[defName="FlatscreenTelevision"]/designationCategory</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>/ThingDefs/ThingDef[defName="FlatscreenTelevision"]</xpath>
<value>
<designationCategory>Joy</designationCategory>
</value>
</li>
</operations>
</Operation>

<!-- Megascreen TV -->
<!-- Only add researchPrerequisite if list already exists -->
<Operation Class="PatchOperationSequence">
<success>Never</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>
<value>
<li>Autarky_MegascreenTelevision</li>
</value>
</li>
</operations>
</Operation>

<!-- Or add list -->
<Operation Class="PatchOperationSequence">
<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"]</xpath>
<value>
<researchPrerequisites>
<li>Autarky_MegascreenTelevision</li>
</researchPrerequisites>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/ThingDefs/ThingDef[defName="MegascreenTelevision"]/designationCategory</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>/ThingDefs/ThingDef[defName="MegascreenTelevision"]</xpath>
<value>
<designationCategory>Joy</designationCategory>
</value>
</li>
</operations>
</Operation>

<!-- Telescope -->
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/ThingDefs/ThingDef[defName="Telescope"]/costList</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>/ThingDefs/ThingDef[defName="Telescope"]</xpath>
<value>
<costList>
<Steel>80</Steel>
<Component>10</Component>
</costList>
<designationCategory>Joy</designationCategory>
<researchPrerequisites>
<li>Autarky_Telescope</li>
</researchPrerequisites>
</value>
</li>
</operations>
</Operation>
</Patch>
25 changes: 25 additions & 0 deletions Patches/ThingDefs_Plants/Plants_Special.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/Defs/ThingDef[defName="PlantAmbrosia"]/plant/sowTags</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="PlantAmbrosia"]/plant</xpath>
<value>
<sowMinSkill>17</sowMinSkill>
<sowTags>
<li>Ground</li>
<li>Hydroponic</li>
</sowTags>
<sowResearchPrerequisites>
<li>Autarky_Ambrosia</li>
</sowResearchPrerequisites>
</value>
</li>
</operations>
</Operation>
</Patch>

0 comments on commit 72c6165

Please sign in to comment.