give paused maps from polymorph and cryostorage a name (#39453)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user