Add map names to stuff (#21760)

- Station map
- FTL map
This commit is contained in:
metalgearsloth
2023-11-22 15:35:37 +11:00
committed by GitHub
parent 1ef0ed132b
commit ee3e3583bd
4 changed files with 9 additions and 8 deletions

View File

@@ -213,7 +213,7 @@ public sealed partial class ShuttleSystem
if (HasComp<FTLComponent>(uid))
{
_sawmill.Warning($"Tried queuing {ToPrettyString(uid)} which already has HyperspaceComponent?");
Log.Warning($"Tried queuing {ToPrettyString(uid)} which already has HyperspaceComponent?");
return false;
}
@@ -404,7 +404,7 @@ public sealed partial class ShuttleSystem
_console.RefreshShuttleConsoles(uid);
break;
default:
_sawmill.Error($"Found invalid FTL state {comp.State} for {uid}");
Log.Error($"Found invalid FTL state {comp.State} for {uid}");
RemComp<FTLComponent>(uid);
break;
}
@@ -453,7 +453,8 @@ public sealed partial class ShuttleSystem
return;
_hyperSpaceMap = _mapManager.CreateMap();
_sawmill.Info($"Setup hyperspace map at {_hyperSpaceMap.Value}");
_metadata.SetEntityName(_mapManager.GetMapEntityId(_hyperSpaceMap.Value), "FTL");
Log.Debug($"Setup hyperspace map at {_hyperSpaceMap.Value}");
DebugTools.Assert(!_mapManager.IsMapPaused(_hyperSpaceMap.Value));
var parallax = EnsureComp<ParallaxComponent>(_mapManager.GetMapEntityId(_hyperSpaceMap.Value));
parallax.Parallax = "FastSpace";