From 062f3475e2ed2e6d26f6086429710fefba7ebbde Mon Sep 17 00:00:00 2001 From: Philip Abernethy Date: Tue, 1 Aug 2017 20:27:46 +0200 Subject: [PATCH 1/3] Added research projects for flatscreen and megascreen TVs. Fixes #2 and #3 --- .../ResearchProjects_Misc.xml | 27 +++++ .../ResearchProjects_Misc.xml | 6 + Patches/ThingsDefs_Races/Buildings_Joy.xml | 108 ++++++++++++++++++ 3 files changed, 141 insertions(+) create mode 100644 Patches/ThingsDefs_Races/Buildings_Joy.xml diff --git a/Defs/ResearchProjectDefs/ResearchProjects_Misc.xml b/Defs/ResearchProjectDefs/ResearchProjects_Misc.xml index 1e6c353..79d4706 100644 --- a/Defs/ResearchProjectDefs/ResearchProjects_Misc.xml +++ b/Defs/ResearchProjectDefs/ResearchProjects_Misc.xml @@ -61,4 +61,31 @@ 11 1 + + + Autarky_FlatscreenTelevision + + learn to build a flatscreen television. + 1600 + Industrial + +
  • TubeTelevision
  • +
    + 8 + 5 +
    + + + Autarky_MegascreenTelevision + + learn to build a megascreen television. + 3200 + Industrial + +
  • Autarky_FlatscreenTelevision
  • +
    + HiTechResearchBench + 9 + 5 +
    diff --git a/Languages/German/DefInjected/ResearchProjectDef/ResearchProjects_Misc.xml b/Languages/German/DefInjected/ResearchProjectDef/ResearchProjects_Misc.xml index 1753de5..57d10f0 100644 --- a/Languages/German/DefInjected/ResearchProjectDef/ResearchProjects_Misc.xml +++ b/Languages/German/DefInjected/ResearchProjectDef/ResearchProjects_Misc.xml @@ -11,4 +11,10 @@ Glitzerwelt Medizin Produktion Lerne Glitzerwelt Medizin herzustellen. Extrem effektives medizinisches Zubehör das erfolgreiche Operationen unter widrigsten Umständen ermöglicht. + + Flachbild Fernseher + Lerne, einen Flachbild Fernseher zu bauen. + + Riesen Flachbild Fernseher + Lerne, einen Riesen Flachbild Fernseher zu bauen. diff --git a/Patches/ThingsDefs_Races/Buildings_Joy.xml b/Patches/ThingsDefs_Races/Buildings_Joy.xml new file mode 100644 index 0000000..e78bdcd --- /dev/null +++ b/Patches/ThingsDefs_Races/Buildings_Joy.xml @@ -0,0 +1,108 @@ + + + + + + Never + +
  • + /ThingDefs/ThingDef[defName="FlatscreenTelevision"]/researchPrerequisites + Invert +
  • +
  • + /ThingDefs/ThingDef[defName="FlatscreenTelevision"]/researchPrerequisites + +
  • Autarky_FlatscreenTelevision
  • + + +
    +
    + + + + Always + +
  • + /ThingDefs/ThingDef[defName="FlatscreenTelevision"]/researchPrerequisites + Invert +
  • +
  • + /ThingDefs/ThingDef[defName="FlatscreenTelevision"] + + +
  • Autarky_FlatscreenTelevision
  • + + + +
    +
    + + + Always + +
  • + /ThingDefs/ThingDef[defName="FlatscreenTelevision"]/designationCategory + Invert +
  • +
  • + /ThingDefs/ThingDef[defName="FlatscreenTelevision"] + + Joy + +
  • +
    +
    + + + + + Never + +
  • + /ThingDefs/ThingDef[defName="MegascreenTelevision"]/researchPrerequisites + Invert +
  • +
  • + /ThingDefs/ThingDef[defName="MegascreenTelevision"]/researchPrerequisites + +
  • Autarky_MegascreenTelevision
  • + + +
    +
    + + + + Always + +
  • + /ThingDefs/ThingDef[defName="MegascreenTelevision"]/researchPrerequisites + Invert +
  • +
  • + /ThingDefs/ThingDef[defName="MegascreenTelevision"] + + +
  • Autarky_MegascreenTelevision
  • + + + +
    +
    + + + Always + +
  • + /ThingDefs/ThingDef[defName="MegascreenTelevision"]/designationCategory + Invert +
  • +
  • + /ThingDefs/ThingDef[defName="MegascreenTelevision"] + + Joy + +
  • +
    +
    +
    From a581936208dd608383d88d9130d5aadc0031f40e Mon Sep 17 00:00:00 2001 From: Philip Abernethy Date: Tue, 1 Aug 2017 21:47:11 +0200 Subject: [PATCH 2/3] Added research and recipe for telescope. Fixes #1 --- .../ResearchProjects_Misc.xml | 14 +++++++++-- .../ResearchProjects_Misc.xml | 3 +++ Patches/ThingsDefs_Races/Buildings_Joy.xml | 24 +++++++++++++++++++ 3 files changed, 39 insertions(+), 2 deletions(-) diff --git a/Defs/ResearchProjectDefs/ResearchProjects_Misc.xml b/Defs/ResearchProjectDefs/ResearchProjects_Misc.xml index 79d4706..5769fe3 100644 --- a/Defs/ResearchProjectDefs/ResearchProjects_Misc.xml +++ b/Defs/ResearchProjectDefs/ResearchProjects_Misc.xml @@ -62,10 +62,20 @@ 1 + + Autarky_Telescope + + Learn to build a telescope. + 1600 + Industrial + 3 + 4 + + Autarky_FlatscreenTelevision - learn to build a flatscreen television. + Learn to build a flatscreen television. 1600 Industrial @@ -78,7 +88,7 @@ Autarky_MegascreenTelevision - learn to build a megascreen television. + Learn to build a megascreen television. 3200 Industrial diff --git a/Languages/German/DefInjected/ResearchProjectDef/ResearchProjects_Misc.xml b/Languages/German/DefInjected/ResearchProjectDef/ResearchProjects_Misc.xml index 57d10f0..fe1498a 100644 --- a/Languages/German/DefInjected/ResearchProjectDef/ResearchProjects_Misc.xml +++ b/Languages/German/DefInjected/ResearchProjectDef/ResearchProjects_Misc.xml @@ -12,6 +12,9 @@ Glitzerwelt Medizin Produktion Lerne Glitzerwelt Medizin herzustellen. Extrem effektives medizinisches Zubehör das erfolgreiche Operationen unter widrigsten Umständen ermöglicht. + Teleskop + Lerne, ein Teleskop zu bauen. + Flachbild Fernseher Lerne, einen Flachbild Fernseher zu bauen. diff --git a/Patches/ThingsDefs_Races/Buildings_Joy.xml b/Patches/ThingsDefs_Races/Buildings_Joy.xml index e78bdcd..2b5edfe 100644 --- a/Patches/ThingsDefs_Races/Buildings_Joy.xml +++ b/Patches/ThingsDefs_Races/Buildings_Joy.xml @@ -105,4 +105,28 @@ + + + + Never + +
  • + /ThingDefs/ThingDef[defName="Telescope"]/costList + Invert +
  • +
  • + /ThingDefs/ThingDef[defName="Telescope"] + + + 80 + 10 + + Joy + +
  • Autarky_Telescope
  • + + + +
    +
    From dedbf78e7ef209ffb0acc89ee3f2ba4a3aff1825 Mon Sep 17 00:00:00 2001 From: Philip Abernethy Date: Tue, 1 Aug 2017 23:19:37 +0200 Subject: [PATCH 3/3] Added access to telescopes and ambrosia. Fixes #4. --- About/About.xml | 2 +- .../ResearchProjects_Misc.xml | 10 ++++++++ .../Buildings_Joy.xml | 2 +- Patches/ThingDefs_Plants/Plants_Special.xml | 25 +++++++++++++++++++ 4 files changed, 37 insertions(+), 2 deletions(-) rename Patches/{ThingsDefs_Races => ThingDefs_Buildings}/Buildings_Joy.xml (99%) create mode 100644 Patches/ThingDefs_Plants/Plants_Special.xml diff --git a/About/About.xml b/About/About.xml index 3507c50..f1b4e91 100644 --- a/About/About.xml +++ b/About/About.xml @@ -3,7 +3,7 @@ Autarky Chais 0.17.0 - V1.7.2 + 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. diff --git a/Defs/ResearchProjectDefs/ResearchProjects_Misc.xml b/Defs/ResearchProjectDefs/ResearchProjects_Misc.xml index 5769fe3..fc46317 100644 --- a/Defs/ResearchProjectDefs/ResearchProjects_Misc.xml +++ b/Defs/ResearchProjectDefs/ResearchProjects_Misc.xml @@ -98,4 +98,14 @@ 9 5
    + + + Autarky_Ambrosia + + Allows colonists to cultivate Ambrosia, a sensitive plant that produces pleasurable fruits. + 1600 + Neolithic + 1 + 2 + diff --git a/Patches/ThingsDefs_Races/Buildings_Joy.xml b/Patches/ThingDefs_Buildings/Buildings_Joy.xml similarity index 99% rename from Patches/ThingsDefs_Races/Buildings_Joy.xml rename to Patches/ThingDefs_Buildings/Buildings_Joy.xml index 2b5edfe..e0b937d 100644 --- a/Patches/ThingsDefs_Races/Buildings_Joy.xml +++ b/Patches/ThingDefs_Buildings/Buildings_Joy.xml @@ -108,7 +108,7 @@ - Never + Always
  • /ThingDefs/ThingDef[defName="Telescope"]/costList diff --git a/Patches/ThingDefs_Plants/Plants_Special.xml b/Patches/ThingDefs_Plants/Plants_Special.xml new file mode 100644 index 0000000..f9cf981 --- /dev/null +++ b/Patches/ThingDefs_Plants/Plants_Special.xml @@ -0,0 +1,25 @@ + + + + Always + +
  • + /Defs/ThingDef[defName="PlantAmbrosia"]/plant/sowTags + Invert +
  • +
  • + /Defs/ThingDef[defName="PlantAmbrosia"]/plant + + 17 + +
  • Ground
  • +
  • Hydroponic
  • + + +
  • Autarky_Ambrosia
  • +
    + + +
    +
    +