]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
give paused maps from polymorph and cryostorage a name (#39453)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Thu, 7 Aug 2025 14:55:25 +0000 (16:55 +0200)
committerGitHub <noreply@github.com>
Thu, 7 Aug 2025 14:55:25 +0000 (16:55 +0200)
Content.Server/Polymorph/Systems/PolymorphSystem.Map.cs
Content.Shared/Bed/Cryostorage/SharedCryostorageSystem.cs
Content.Shared/Changeling/ChangelingIdentitySystem.cs
Resources/Locale/en-US/bed/cryostorage/cryogenic-storage.ftl
Resources/Locale/en-US/changeling/changeling.ftl
Resources/Locale/en-US/polymorph/polymorph.ftl

index 1db624439ad160c781fd75803bbb7780392ca8ec..fd24ad9774a6bf405ae46a02367fe6efc7e3677f 100644 (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;
     }
 }
index a93f2e061815baf0ee134f25a8a74bb672bb3580..757a707d40b9a64bfb6ac76f56ad1613a25528b2 100644 (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)
index 5e1fa25e4c19caca768a4d531e13cad2a990b63b..f68f72f853a3ce9662e047e229ab9ef67e92635c 100644 (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);
     }
index f966f30e2d4fcd399906b57024fb57c0a3be987c..7d2e50e772f9227e29b89696fe420a81420066e8 100644 (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
index aa3843691a9525e00adb07524a003915bbdc7642..423cb0811ecefeae33e405718e952fcb001a1d52 100644 (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
index ac78eb6bb4761dbd515f6232cd9be9cf52b74c31..2a74b0df324551031132322b5c29fe110c66a146 100644 (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