|
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);
}
}
|