Skip to content

Commit

Permalink
Adding events, starfighters, and regiments to initial game generation. (
Browse files Browse the repository at this point in the history
  • Loading branch information
davidadas authored Dec 2, 2024
1 parent 962c882 commit bc0c9bd
Show file tree
Hide file tree
Showing 63 changed files with 1,882 additions and 1,024 deletions.
26 changes: 13 additions & 13 deletions Assets/Resources/Data/Buildings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<MaintenanceCost>10</MaintenanceCost>
<Bombardment>3</Bombardment>
<ProcessRate>4</ProcessRate>
<ResearchLevel>0</ResearchLevel>
<RequiredResearchLevel>0</RequiredResearchLevel>
</Building>
<Building>
<TypeID>BDFA02</TypeID>
Expand All @@ -33,7 +33,7 @@
<MaintenanceCost>10</MaintenanceCost>
<Bombardment>3</Bombardment>
<ProcessRate>4</ProcessRate>
<ResearchLevel>0</ResearchLevel>
<RequiredResearchLevel>0</RequiredResearchLevel>
</Building>
<Building>
<TypeID>BDFA03</TypeID>
Expand All @@ -49,7 +49,7 @@
<MaintenanceCost>13</MaintenanceCost>
<Bombardment>2</Bombardment>
<ProcessRate>4</ProcessRate>
<ResearchLevel>0</ResearchLevel>
<RequiredResearchLevel>0</RequiredResearchLevel>
</Building>
<Building>
<TypeID>BDFA04</TypeID>
Expand All @@ -65,7 +65,7 @@
<MaintenanceCost>0</MaintenanceCost>
<Bombardment>5</Bombardment>
<ProcessRate>5</ProcessRate>
<ResearchLevel>0</ResearchLevel>
<RequiredResearchLevel>0</RequiredResearchLevel>
</Building>
<Building>
<TypeID>BDFA05</TypeID>
Expand All @@ -81,7 +81,7 @@
<MaintenanceCost>0</MaintenanceCost>
<Bombardment>2</Bombardment>
<ProcessRate>5</ProcessRate>
<ResearchLevel>0</ResearchLevel>
<RequiredResearchLevel>0</RequiredResearchLevel>
</Building>
<Building>
<TypeID>BDFA06</TypeID>
Expand All @@ -97,7 +97,7 @@
<MaintenanceCost>10</MaintenanceCost>
<Bombardment>4</Bombardment>
<ProcessRate>2</ProcessRate>
<ResearchLevel>1</ResearchLevel>
<RequiredResearchLevel>1</RequiredResearchLevel>
</Building>
<Building>
<TypeID>BDFA07</TypeID>
Expand All @@ -113,7 +113,7 @@
<MaintenanceCost>20</MaintenanceCost>
<Bombardment>2</Bombardment>
<ProcessRate>2</ProcessRate>
<ResearchLevel>5</ResearchLevel>
<RequiredResearchLevel>5</RequiredResearchLevel>
</Building>
<!-- ************************************************** -->
<!-- ******************** DEFENSES ******************** -->
Expand All @@ -133,7 +133,7 @@
<Bombardment>4</Bombardment>
<WeaponPower>800</WeaponPower>
<ShieldStrength>0</ShieldStrength>
<ResearchLevel>0</ResearchLevel>
<RequiredResearchLevel>0</RequiredResearchLevel>
</Building>
<Building>
<TypeID>BDDF02</TypeID>
Expand All @@ -150,7 +150,7 @@
<Bombardment>2</Bombardment>
<WeaponPower>0</WeaponPower>
<ShieldStrength>40</ShieldStrength>
<ResearchLevel>0</ResearchLevel>
<RequiredResearchLevel>0</RequiredResearchLevel>
</Building>
<Building>
<TypeID>BDDF03</TypeID>
Expand All @@ -167,7 +167,7 @@
<Bombardment>5</Bombardment>
<WeaponPower>2000</WeaponPower>
<ShieldStrength>0</ShieldStrength>
<ResearchLevel>0</ResearchLevel>
<RequiredResearchLevel>0</RequiredResearchLevel>
</Building>
<Building>
<TypeID>BDDF04</TypeID>
Expand All @@ -184,7 +184,7 @@
<Bombardment>1</Bombardment>
<WeaponPower>0</WeaponPower>
<ShieldStrength>0</ShieldStrength>
<ResearchLevel>3</ResearchLevel>
<RequiredResearchLevel>3</RequiredResearchLevel>
</Building>
<Building>
<TypeID>BDDF05</TypeID>
Expand All @@ -201,7 +201,7 @@
<Bombardment>3</Bombardment>
<WeaponPower>5000</WeaponPower>
<ShieldStrength>0</ShieldStrength>
<ResearchLevel>4</ResearchLevel>
<RequiredResearchLevel>4</RequiredResearchLevel>
</Building>
<Building>
<TypeID>BDDF06</TypeID>
Expand All @@ -218,6 +218,6 @@
<Bombardment>3</Bombardment>
<WeaponPower>0</WeaponPower>
<ShieldStrength>80</ShieldStrength>
<ResearchLevel>6</ResearchLevel>
<RequiredResearchLevel>6</RequiredResearchLevel>
</Building>
</Buildings>
3 changes: 0 additions & 3 deletions Assets/Resources/Data/Events.xml

This file was deleted.

52 changes: 52 additions & 0 deletions Assets/Resources/Data/GameEvents.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8" ?>
<GameEvents>
<!-- Luke Visits Yoda -->
<GameEvent>
<DisplayName>Luke Visits Yoda</DisplayName>
<InstanceID>LUKE_VISITS_YODA</InstanceID>
<IsRepeatable>false</IsRepeatable>
<Conditionals>
<TickCount Type="GreaterThan" Value="30"/>
<IsMovable Value="LUKE_SKYWALKER"/>
<Not>
<Conditionals>
<IsOnMission Value="LUKE_SKYWALKER"/>
</Conditionals>
</Not>
</Conditionals>
</GameEvent>

<!-- Luke Confronts Vader -->
<GameEvent>
<DisplayName>Luke Confronts Vader</DisplayName>
<InstanceID>LUKE_CONFRONTS_VADER</InstanceID>
<IsRepeatable>true</IsRepeatable>
<Conditionals>
<AreOnSamePlanet>
<UnitInstanceIDs>
<string>LUKE_SKYWALKER</string>
<string>DARTH_VADER</string>
</UnitInstanceIDs>
</AreOnSamePlanet>
<Xor>
<Conditionals>
<IsOnMission Value="LUKE_SKYWALKER"/>
<IsOnMission Value="DARTH_VADER"/>
</Conditionals>
</Xor>
</Conditionals>
<Actions>
<!-- @TODO: Trigger combat. -->
</Actions>
</GameEvent>

<GameEvent>
<DisplayName>Luke Discovers Heritage</DisplayName>
<InstanceID>LUKE_DISCOVERS_HERITAGE</InstanceID>
<IsRepeatable>false</IsRepeatable>
<Actions>
<!-- @TODO: Send messages indicating Luke's discovery to both factions. -->
</Actions>
</GameEvent>

</GameEvents>
Loading

0 comments on commit bc0c9bd

Please sign in to comment.