Skip to content

Commit

Permalink
Add Module for Upkeep
Browse files Browse the repository at this point in the history
Add Localization for roots
  • Loading branch information
Idrinth committed May 20, 2020
1 parent 7998740 commit 96d7429
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 14 deletions.
24 changes: 24 additions & 0 deletions Gui/GuiElements[Idrinth][Modules][Upkeep].xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>
<Datatable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="../Schemas/Amplitude.Unity.Gui.GuiElement.xsd">
<ExtendedGuiElement Name="ModuleSupportFleetLogistics1">
<Title>%ModuleSupportFleetLogistics1Title</Title>
<Description>%ModuleSupportFleetLogisticsDescription</Description>
<TooltipElement>
<EffectOverride>%ModuleSupportFleetLogistics1EffectOverride</EffectOverride>
</TooltipElement>
</ExtendedGuiElement>
<ExtendedGuiElement Name="ModuleSupportFleetLogistics2">
<Title>%ModuleSupportFleetLogistics2Title</Title>
<Description>%ModuleSupportFleetLogisticsDescription</Description>
<TooltipElement>
<EffectOverride>%ModuleSupportFleetLogistics2EffectOverride</EffectOverride>
</TooltipElement>
</ExtendedGuiElement>
<ExtendedGuiElement Name="ModuleSupportFleetLogistics3">
<Title>%ModuleSupportFleetLogistics3Title</Title>
<Description>%ModuleSupportFleetLogisticsDescription</Description>
<TooltipElement>
<EffectOverride>%ModuleSupportFleetLogistics3EffectOverride</EffectOverride>
</TooltipElement>
</ExtendedGuiElement>
</Datatable>
15 changes: 15 additions & 0 deletions Gui/GuiElements[Idrinth][Root].xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<Datatable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="../Schemas/Amplitude.Unity.Gui.GuiElement.xsd">
<ExtendedGuiElement Name="ColonizedStarSystemInfluenceStateRootOwner">
<Title>%ColonizedStarSystemInfluenceStateRootOwnerTitle</Title>
<Description>%ColonizedStarSystemInfluenceStateRootOwnerDescription</Description>
</ExtendedGuiElement>
<ExtendedGuiElement Name="ColonizedStarSystemInfluenceStateRootOwnerFriend">
<Title>%ColonizedStarSystemInfluenceStateRootOwnerFriendTitle</Title>
<Description>%ColonizedStarSystemInfluenceStateRootOwnerFriendDescription</Description>
</ExtendedGuiElement>
<ExtendedGuiElement Name="ColonizedStarSystemInfluenceStateRootOwnerFoe">
<Title>%ColonizedStarSystemInfluenceStateRootOwnerFoeTitle</Title>
<Description>%ColonizedStarSystemInfluenceStateRootOwnerFoeDescription</Description>
</ExtendedGuiElement>
</Datatable>
44 changes: 31 additions & 13 deletions IdrinthsImprovedResources.xml
Original file line number Diff line number Diff line change
@@ -1,31 +1,49 @@
<?xml version="1.0" encoding="utf-8" ?>
<Datatable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="Documentation/Schemas/Amplitude.Unity.Runtime.RuntimeModule.xsd">

<RuntimeModule Name="IdrinthsImprovedResources" Type="Extension" Version="0.11">
<RuntimeModule Name="IdrinthsImprovedResources" Type="Extension" Version="0.11">

<Title>Idrinth's Improved Resources</Title>
<Description>Manipulates trade and repair to lead to a less annoying resource gameplay. Also touches on Root-Effects on star systems to make them more noticeable.

This mod is still hightly WIP!
Added ship modules: Upkeep reduction(Heroes, -5 and -5% | -10 and -10% | -15 and -15%, unlocked via Economy Research)

This mod is still hightly WIP!

Source code at https://github.com/Idrinth-s-Endless-Space-2-Mods/IdrinthsImprovedResources - contributions always welcome.</Description>
Source code at https://github.com/Idrinth-s-Endless-Space-2-Mods/IdrinthsImprovedResources - contributions always welcome.</Description>

<Author>Idrinth</Author>
<Author>Idrinth</Author>

<Homepage></Homepage>
<Homepage>https://github.com/Idrinth-s-Endless-Space-2-Mods/IdrinthsImprovedResources</Homepage>

<PreviewImageFile>iir.jpg</PreviewImageFile>

<ReleaseNotes></ReleaseNotes>
<ReleaseNotes></ReleaseNotes>

<!-- Available tags: AI, Art, Buildings, Gameplay, Improvements, MajorFactions, Maps, MinorFactions, Multiplayer, Other, Resources, Technologies, Units. -->
<Tags>Resources</Tags>

<Plugins>
<DatabasePlugin DataType="Amplitude.Unity.Simulation.SimulationDescriptor, Assembly-CSharp-firstpass">
<FilePath>Simulation/SimulationDescriptors[Idrinth][*].xml</FilePath>
</DatabasePlugin>
</Plugins>
</RuntimeModule>
<Plugins>
<DatabasePlugin DataType="Amplitude.Unity.Simulation.SimulationDescriptor, Assembly-CSharp-firstpass">
<FilePath>Simulation/SimulationDescriptors[Idrinth][*].xml</FilePath>
<FilePath>Simulation/Battle/SimulationDescriptors[Idrinth][*].xml</FilePath>
</DatabasePlugin>
<DatabasePlugin DataType="ModuleDefinition, Assembly-CSharp" Priority="10">
<ExtraTypes>
<ExtraType DataType="SupportModuleDefinition, Assembly-CSharp"/>
</ExtraTypes>
<FilePath>Simulation/Battle/ModuleDefinitions[Idrinth][*].xml</FilePath>
</DatabasePlugin>
<LocalizationPlugin DefaultLanguage="english">
<Directory>Localization</Directory>
</LocalizationPlugin>
<DatabasePlugin DataType="Amplitude.Unity.Gui.GuiElement, Assembly-CSharp-firstpass">
<ExtraTypes>
<ExtraType DataType="Amplitude.Unity.Gui.ExtendedGuiElement, Assembly-CSharp-firstpass"/>
</ExtraTypes>
<FilePath>Gui/GuiElements[Idrinth][*].xml</FilePath>
</DatabasePlugin>
</Plugins>
</RuntimeModule>
</Datatable>
10 changes: 10 additions & 0 deletions Localization/english/ES2_Localization_Locales.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Datatable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<LocalizationPair Name="%ModuleSupportFleetLogistics1Title">Bare-Bones Logistics Module</LocalizationPair>
<LocalizationPair Name="%ModuleSupportFleetLogistics1EffectOverride">Reduces Upkeep by 5 and 5% on Fleet.</LocalizationPair>
<LocalizationPair Name="%ModuleSupportFleetLogistics2Title">Logistics Module</LocalizationPair>
<LocalizationPair Name="%ModuleSupportFleetLogistics2EffectOverride">Reduces Upkeep by 10 and 10% on Fleet.</LocalizationPair>
<LocalizationPair Name="%ModuleSupportFleetLogistics3Title">Advanced Logistics Module</LocalizationPair>
<LocalizationPair Name="%ModuleSupportFleetLogistics3EffectOverride">Reduces Upkeep by 15 and 15% on Fleet.</LocalizationPair>
<LocalizationPair Name="%ModuleSupportFleetLogisticsDescription">A module capable of distributing required resources more efficiently within a fleet.</LocalizationPair>
</Datatable>
39 changes: 39 additions & 0 deletions Simulation/Battle/ModuleDefinitions[Idrinth][Support][Upkeep].xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8" ?>
<Datatable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="../../Schemas/ModuleDefinition.xsd">
<SupportModule Name="ModuleSupportFleetLogistics1" Family="FleetLogistics" Level="1">
<Cost ResourceName="SystemProduction">150</Cost>
<TechnologyPrerequisite Flags="Edition">TechnologyStageEconomyAndTrade3</TechnologyPrerequisite>
<PathPrerequisite Flags="Edition">ClassShip,ShipRoleHero</PathPrerequisite>
<SimulationDescriptorReference Name="ClassModuleSupport"/>
<SimulationDescriptorReference Name="ClassModuleHeroShipOnly"/>
<SimulationDescriptorReference Name="ClassModuleColonyShipOnly"/>
<CategorizedSimulationDescriptors Category="CategoryFleetLogistics">
<SimulationDescriptorReference Name="ModuleSupportFleetLogistics1"/>
</CategorizedSimulationDescriptors>
</SupportModule>
<SupportModule Name="ModuleSupportFleetLogistics2" Family="FleetLogistics" Level="2">
<Cost ResourceName="SystemProduction">250</Cost>
<TechnologyPrerequisite Flags="Edition">TechnologyStageEconomyAndTrade4</TechnologyPrerequisite>
<PathPrerequisite Flags="Edition">ClassShip,ShipRoleHero</PathPrerequisite>
<SimulationDescriptorReference Name="ClassModuleSupport"/>
<SimulationDescriptorReference Name="ClassModuleHeroShipOnly"/>
<SimulationDescriptorReference Name="ClassModuleColonyShipOnly"/>
<CategorizedSimulationDescriptors Category="CategoryFleetLogistics">
<SimulationDescriptorReference Name="ModuleSupportFleetLogistics1"/>
<SimulationDescriptorReference Name="ModuleSupportFleetLogistics2"/>
</CategorizedSimulationDescriptors>
</SupportModule>
<SupportModule Name="ModuleSupportFleetLogistics3" Family="FleetLogistics" Level="3">
<Cost ResourceName="SystemProduction">300</Cost>
<TechnologyPrerequisite Flags="Edition">TechnologyStageEconomyAndTrade5</TechnologyPrerequisite>
<PathPrerequisite Flags="Edition">ClassShip,ShipRoleHero</PathPrerequisite>
<SimulationDescriptorReference Name="ClassModuleSupport"/>
<SimulationDescriptorReference Name="ClassModuleHeroShipOnly"/>
<SimulationDescriptorReference Name="ClassModuleColonyShipOnly"/>
<CategorizedSimulationDescriptors Category="CategoryFleetLogistics">
<SimulationDescriptorReference Name="ModuleSupportFleetLogistics1"/>
<SimulationDescriptorReference Name="ModuleSupportFleetLogistics2"/>
<SimulationDescriptorReference Name="ModuleSupportFleetLogistics3"/>
</CategorizedSimulationDescriptors>
</SupportModule>
</Datatable>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<Datatable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="../../Schemas/Amplitude.Unity.Simulation.SimulationDescriptor.xsd">
<SimulationDescriptor Name="ModuleSupportFleetLogistics1" Type="ModuleSupport">
<Modifier TargetProperty="GarrisonMoneyUpkeep" Operation="Subtraction" Value="5" Path="../ClassGarrison/ClassShip"/>
<Modifier TargetProperty="GarrisonMoneyUpkeep" Operation="Percent" Value="-0.05" Path="../ClassGarrison/ClassShip"/>
</SimulationDescriptor>
<SimulationDescriptor Name="ModuleSupportFleetLogistics2" Type="ModuleSupport">
<Modifier TargetProperty="GarrisonMoneyUpkeep" Operation="Subtraction" Value="10" Path="../ClassGarrison/ClassShip"/>
<Modifier TargetProperty="GarrisonMoneyUpkeep" Operation="Percent" Value="-0.1" Path="../ClassGarrison/ClassShip"/>
</SimulationDescriptor>
<SimulationDescriptor Name="ModuleSupportFleetLogistics2" Type="ModuleSupport">
<Modifier TargetProperty="GarrisonMoneyUpkeep" Operation="Subtraction" Value="15" Path="../ClassGarrison/ClassShip"/>
<Modifier TargetProperty="GarrisonMoneyUpkeep" Operation="Percent" Value="-0.15" Path="../ClassGarrison/ClassShip"/>
</SimulationDescriptor>
</Datatable>
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<!-- Added -->
<BinaryModifier TargetProperty="NetSystemLifeforce" Operation="Addition" Value="1" Path="ClassColonizedStarSystem"/>
<BinaryModifier TargetProperty="PlanetPopulationFood" Operation="Addition" Value="10" Path="ClassColonizedStarSystem/ClassColonizedPlanet"/>
<Modifier TargetProperty="PlanetDepletionPerTurn" Operation="Substraction" Value="0.005" Path="FAKEFORGUI/./ClassPlanet"/>
<Modifier TargetProperty="PlanetDepletionPerTurn" Operation="Subtraction" Value="0.005" Path="FAKEFORGUI/./ClassPlanet"/>
<Modifier TargetProperty="RepletionPerTurn" Operation="Addition" Value="0.005" Path="ClassColonizedStarSystem/ClassPlanet" TooltipHidden="true"/>
</SimulationDescriptor>
</Datatable>

0 comments on commit 96d7429

Please sign in to comment.