give paused maps from polymorph and cryostorage a name (#39453)

This commit is contained in:
slarticodefast
2025-08-07 16:55:25 +02:00
committed by GitHub
parent ff5ce315f9
commit 5eb9dc2475
6 changed files with 16 additions and 5 deletions

View File

@@ -31,7 +31,9 @@ public sealed partial class PolymorphSystem
if (PausedMap != null && Exists(PausedMap))
return;
PausedMap = _map.CreateMap();
_map.SetPaused(PausedMap.Value, true);
var mapUid = _map.CreateMap();
_metaData.SetEntityName(mapUid, Loc.GetString("polymorph-paused-map-name"));
_map.SetPaused(mapUid, true);
PausedMap = mapUid;
}
}

View File

@@ -25,6 +25,7 @@ public abstract class SharedCryostorageSystem : EntitySystem
[Dependency] protected readonly IGameTiming Timing = default!;
[Dependency] protected readonly ISharedAdminLogManager AdminLog = default!;
[Dependency] protected readonly SharedMindSystem Mind = default!;
[Dependency] private readonly MetaDataSystem _meta = default!;
protected EntityUid? PausedMap { get; private set; }
@@ -167,8 +168,10 @@ public abstract class SharedCryostorageSystem : EntitySystem
if (PausedMap != null && Exists(PausedMap))
return;
PausedMap = _map.CreateMap();
_map.SetPaused(PausedMap.Value, true);
var mapUid = _map.CreateMap();
_meta.SetEntityName(mapUid, Loc.GetString("cryostorage-paused-map-name"));
_map.SetPaused(mapUid, true);
PausedMap = mapUid;
}
public bool IsInPausedMap(Entity<TransformComponent?> entity)

View File

@@ -178,7 +178,7 @@ public sealed class ChangelingIdentitySystem : EntitySystem
return;
var mapUid = _map.CreateMap(out var newMapId);
_metaSystem.SetEntityName(mapUid, "Changeling identity storage map");
_metaSystem.SetEntityName(mapUid, Loc.GetString("changeling-paused-map-name"));
PausedMapId = newMapId;
_map.SetPaused(mapUid, true);
}

View File

@@ -5,3 +5,5 @@ earlyleave-cryo-job-unknown = Unknown
# {$entity} available for GENDER function purposes
earlyleave-cryo-announcement = {$character} ({$job}) has entered cryogenic storage!
earlyleave-cryo-sender = Station
cryostorage-paused-map-name = Cryosleeper body storage map

View File

@@ -18,3 +18,5 @@ changeling-devour-consume-complete-others = { CAPITALIZE(POSS-ADJ($user)) } unca
changeling-transform-attempt-self = Our bones snap, muscles tear, one flesh becomes another.
changeling-transform-attempt-others = { CAPITALIZE(POSS-ADJ($user)) } bones snap, muscles tear, body shifts into another.
changeling-paused-map-name = Changeling identity storage map

View File

@@ -3,3 +3,5 @@ polymorph-self-action-description = Instantly polymorph yourself into {$target}.
polymorph-popup-generic = {CAPITALIZE(THE($parent))} turned into {$child}.
polymorph-revert-popup-generic = {CAPITALIZE(THE($parent))} reverted back into {$child}.
polymorph-paused-map-name = Polymorph body storage map