View Issue Details

IDProjectCategoryLast Update
0025198AI War 2SuggestionOct 29, 2021 9:49 pm
ReporterApthorpe Assigned Totom.prince  
Status assignedResolutionopen 
Product Version3.101 Buffs, Fixes, And Quickstarts 
Summary0025198: Change spire debris time display while > 59 seconds
DescriptionCurrently the spire debris countdown always displays as seconds (e.g., "The Debris on Bolic will be lost to you in 517 seconds). Displaying this in minutes and seconds would be more conventional--I imagine most players would prefer not having to do the seconds-to-minutes calculation in their heads.
TagsNo tags attached.

Activities

tom.prince

Oct 23, 2021 6:22 am

developer   ~0062990

spire-debris-time.patch (3,373 bytes)   
# HG changeset patch
# User Tom Prince <[email protected]>
# Date 1634984009 21600
#      Sat Oct 23 04:13:29 2021 -0600
# Node ID afceaeb8b937f39f55851d155e9fc1b3b4d6b8fe
# Parent  c0b2dbb4368ffd060ebb58699b3afec95e70007b
Display Spire Debris timer in human readable format. Fixes 0025198.

diff --git CodeExternal/AIWarExternalCode/src/BaseInfo/DLC1/FallenSpire/PublicSpireDebrisNotifier.cs CodeExternal/AIWarExternalCode/src/BaseInfo/DLC1/FallenSpire/PublicSpireDebrisNotifier.cs
--- CodeExternal/AIWarExternalCode/src/BaseInfo/DLC1/FallenSpire/PublicSpireDebrisNotifier.cs
+++ CodeExternal/AIWarExternalCode/src/BaseInfo/DLC1/FallenSpire/PublicSpireDebrisNotifier.cs
@@ -66,7 +66,8 @@ namespace Arcen.AIW2.External
                     Planet planet = debris.Planet;
                     World_AIW2.Instance.FocusedPlanetForMapDarkening = planet; //CHRIS_TODO multi-hover
                     debugCode = 220;
-                    tooltipBuffer.Add( "\tThe Debris on " ).Add( planet.Name, planet.GetControllingFaction().FactionCenterColor.ColorHexBrighter ).Add( " will be lost to you in " ).Add( remainingTime.ToString(), "a1ffa1" ).Add( " seconds." );
+                    String timeString = Engine_Universal.ToHoursAndMinutesString( remainingTime );
+                    tooltipBuffer.Add( "\tThe Debris on " ).Add( planet.Name, planet.GetControllingFaction().FactionCenterColor.ColorHexBrighter ).Add( " will be lost to you in " ).Add(timeString, "a1ffa1" ).Add( "." );
                     debugCode = 230;
                     Faction destFaction = World_AIW2.Instance.GetFactionByIndex( debrisData.FactionIndexForDebris );
                     debugCode = 240;
diff --git CodeExternal/AIWarExternalDeepProcessingCode/src/DeepInfo/DLC1/FallenSpireFactionDeepInfo.cs CodeExternal/AIWarExternalDeepProcessingCode/src/DeepInfo/DLC1/FallenSpireFactionDeepInfo.cs
--- CodeExternal/AIWarExternalDeepProcessingCode/src/DeepInfo/DLC1/FallenSpireFactionDeepInfo.cs
+++ CodeExternal/AIWarExternalDeepProcessingCode/src/DeepInfo/DLC1/FallenSpireFactionDeepInfo.cs
@@ -388,8 +388,10 @@ namespace Arcen.AIW2.External
                             debrisData.FactionIndexForDebris = -1;
                         else
                             debrisData.FactionIndexForDebris = destinationFactionForDebris.FactionIndex;
-                        if ( ArcenNetworkAuthority.GetIsHostMode() )
-                            World_AIW2.Instance.QueueChatMessageOrCommand( "Spire Debris is spawning on " + debris.GetPlanetName_Safe() + ". You have " + debrisTime + " seconds to retrieve it before someone else does. Some Spire Debris is generated shortly after a new Spire City is built.", ChatType.LogToCentralChat, string.Empty );
+                        if ( ArcenNetworkAuthority.GetIsHostMode() ) {
+                            String timeString = Engine_Universal.ToHoursAndMinutesString( debrisTime );
+                            World_AIW2.Instance.QueueChatMessageOrCommand( "Spire Debris is spawning on " + debris.GetPlanetName_Safe() + ". You have " + timeString + " to retrieve it before someone else does. Some Spire Debris is generated shortly after a new Spire City is built.", ChatType.LogToCentralChat, string.Empty );
+			}
                         BaseInfo.SpireDebris.AddToDisplayList(debris);
                     }
                 }
spire-debris-time.patch (3,373 bytes)   

Issue History

Date Modified Username Field Change
Jun 8, 2021 9:09 am Apthorpe New Issue
Oct 23, 2021 6:22 am tom.prince Note Added: 0062990
Oct 23, 2021 6:22 am tom.prince File Added: spire-debris-time.patch
Oct 29, 2021 9:49 pm BadgerBadger Assigned To => tom.prince
Oct 29, 2021 9:49 pm BadgerBadger Status new => assigned