View Issue Details

IDProjectCategoryLast Update
0019173AI War 2[All Projects] SuggestionJun 28, 2017 5:27 pm
ReporterBadgerBadgerAssigned Tokeith.lamothe 
Severityminor 
Status assignedResolutionopen 
Product Version0.401 Ship Batch 6 of 7, And Gimbal Perfoooormance! 
Fixed in Version 
Summary0019173: Golems are not mentioned in Objectives tab
DescriptionIt seems like advising the player to capture a Golem in the Objectives screen would be a good idea. At the moment it is unmentioned.
TagsNo tags attached.

Activities

BadgerBadger

Jun 13, 2017 10:07 am

reporter   ~0046283

This diff will add support for golems to the Objectives screen.

+++ b/AIWarExternalCode/src/UIs/MasterMenu/Window_InGameObjectivesWindow.cs
@@ -118,6 +118,7 @@ namespace Arcen.AIW2.External
         GainFleetStrength,
         ExploreGalaxy,
         ClaimFlagship,
+ RepairGolem,
         GetBonusShipType,
         DestroyAIPReducer,
         Length
@@ -311,6 +312,20 @@ namespace Arcen.AIW2.External
                     }
                     break;
                 #endregion
+ #region RepairGolem
+ case ObjectiveType.RepairGolem:
+ {
+ GetKnownPlanetsWithAtLeastOneUnitOf( WorldSideType.NaturalObject, "Golem" );
+ this.RelatedPlanets.Sort( delegate ( Planet Left, Planet Right )
+ {
+ return Left.OriginalHopsToHumanHomeworld.CompareTo( Right.OriginalHopsToHumanHomeworld );
+ } );
+ if ( this.RelatedPlanets.Count > 0 )
+ this.State = ObjectiveState.NeedToAchieve;
+ }
+ break;
+ #endregion
+
                 #region GetBonusShipType
                 case ObjectiveType.GetBonusShipType:
                     {
@@ -402,6 +417,14 @@ namespace Arcen.AIW2.External
                     }
                     break;
                 #endregion
+ #region RepairGolem
+ case ObjectiveType.RepairGolem:
+ {
+ buffer.Add( "Strengthen your Fleet by repairing Golem(s) on " );
+ AppendPlanetNames( buffer, 3 );
+ }
+ break;
+ #endregion
                 #region GetBonusShipType
                 case ObjectiveType.GetBonusShipType:
                     {
@@ -587,6 +610,7 @@ namespace Arcen.AIW2.External
                     }
                     break;
                 case ObjectiveType.ClaimFlagship:
+ case ObjectiveType.RepairGolem:
                 case ObjectiveType.DestroyAIPReducer:
                 case ObjectiveType.ExploreGalaxy:
                 case ObjectiveType.GetBonusShipType:
@@ -622,10 +646,14 @@ namespace Arcen.AIW2.External
                     string tag = string.Empty;
                     switch ( Type )
                     {
                        case ObjectiveType.ClaimFlagship:
                             tag = "Flagship";
                             sideType = WorldSideType.NaturalObject;
                             break;
+ case ObjectiveType.RepairGolem:
+ tag = "Golem";
+ sideType = WorldSideType.NaturalObject;
+ break;
                         case ObjectiveType.DestroyAIPReducer:
                             tag = "DataCenter";
                             sideType = WorldSideType.AI;
@@ -689,4 +717,4 @@ namespace Arcen.AIW2.External
             }

BadgerBadger

Jun 28, 2017 5:26 pm

reporter  

Window_InGameObjectivesWindow.cs (34,699 bytes)

BadgerBadger

Jun 28, 2017 5:27 pm

reporter   ~0046366

I just attached the Objectives file with my changes for your convenience.

Issue History

Date Modified Username Field Change
Jun 13, 2017 12:13 am BadgerBadger New Issue
Jun 13, 2017 10:07 am BadgerBadger Note Added: 0046283
Jun 19, 2017 8:37 pm x4000Bughunter Assigned To => keith.lamothe
Jun 19, 2017 8:37 pm x4000Bughunter Status new => assigned
Jun 28, 2017 5:26 pm BadgerBadger File Added: Window_InGameObjectivesWindow.cs
Jun 28, 2017 5:27 pm BadgerBadger Note Added: 0046366