Refresh rumours properly between systems

This commit is contained in:
Nick J. Connors 2022-02-21 22:40:21 -05:00
parent f8178a78f8
commit 38ee1ae7a2
2 changed files with 13 additions and 4 deletions

View File

@ -16,10 +16,18 @@ namespace NewHorizons.Builder.ShipLog
{
public static class RumorModeBuilder
{
private static readonly Dictionary<CuriosityName, Color> _curiosityColors = new Dictionary<CuriosityName, Color>();
private static readonly Dictionary<CuriosityName, Color> _curiosityHighlightColors = new Dictionary<CuriosityName, Color>();
private static readonly Dictionary<string, CuriosityName> _rawNameToCuriosityName = new Dictionary<string, CuriosityName>();
private static readonly Dictionary<string, string> _entryIdToRawName = new Dictionary<string, string>();
private static Dictionary<CuriosityName, Color> _curiosityColors;
private static Dictionary<CuriosityName, Color> _curiosityHighlightColors;
private static Dictionary<string, CuriosityName> _rawNameToCuriosityName;
private static Dictionary<string, string> _entryIdToRawName;
public static void Init()
{
_curiosityColors = new Dictionary<CuriosityName, Color>();
_curiosityHighlightColors = new Dictionary<CuriosityName, Color>();
_rawNameToCuriosityName = new Dictionary<string, CuriosityName>();
_entryIdToRawName = new Dictionary<string, string>();
}
public static void AddCuriosityColors(ShipLogModule.CuriosityColorInfo[] newColors)
{

View File

@ -33,6 +33,7 @@ namespace NewHorizons.Tools
public static void OnShipLogManagerAwake(ShipLogManager __instance)
{
RumorModeBuilder.Init();
ShipLogHandler.Init();
Logger.Log("Beginning Ship Log Generation For: " + Main.Instance.CurrentStarSystem, Logger.LogType.Log);
if (Main.Instance.CurrentStarSystem != "SolarSystem")