From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Thu, 7 Aug 2025 14:55:25 +0000 (+0200) Subject: give paused maps from polymorph and cryostorage a name (#39453) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=5eb9dc2475909ebc7f9887dc1642ffa1ba3207df;p=space-station-14.git give paused maps from polymorph and cryostorage a name (#39453) --- diff --git a/Content.Server/Polymorph/Systems/PolymorphSystem.Map.cs b/Content.Server/Polymorph/Systems/PolymorphSystem.Map.cs index 1db624439a..fd24ad9774 100644 --- a/Content.Server/Polymorph/Systems/PolymorphSystem.Map.cs +++ b/Content.Server/Polymorph/Systems/PolymorphSystem.Map.cs @@ -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; } } diff --git a/Content.Shared/Bed/Cryostorage/SharedCryostorageSystem.cs b/Content.Shared/Bed/Cryostorage/SharedCryostorageSystem.cs index a93f2e0618..757a707d40 100644 --- a/Content.Shared/Bed/Cryostorage/SharedCryostorageSystem.cs +++ b/Content.Shared/Bed/Cryostorage/SharedCryostorageSystem.cs @@ -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 entity) diff --git a/Content.Shared/Changeling/ChangelingIdentitySystem.cs b/Content.Shared/Changeling/ChangelingIdentitySystem.cs index 5e1fa25e4c..f68f72f853 100644 --- a/Content.Shared/Changeling/ChangelingIdentitySystem.cs +++ b/Content.Shared/Changeling/ChangelingIdentitySystem.cs @@ -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); } diff --git a/Resources/Locale/en-US/bed/cryostorage/cryogenic-storage.ftl b/Resources/Locale/en-US/bed/cryostorage/cryogenic-storage.ftl index f966f30e2d..7d2e50e772 100644 --- a/Resources/Locale/en-US/bed/cryostorage/cryogenic-storage.ftl +++ b/Resources/Locale/en-US/bed/cryostorage/cryogenic-storage.ftl @@ -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 diff --git a/Resources/Locale/en-US/changeling/changeling.ftl b/Resources/Locale/en-US/changeling/changeling.ftl index aa3843691a..423cb0811e 100644 --- a/Resources/Locale/en-US/changeling/changeling.ftl +++ b/Resources/Locale/en-US/changeling/changeling.ftl @@ -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 diff --git a/Resources/Locale/en-US/polymorph/polymorph.ftl b/Resources/Locale/en-US/polymorph/polymorph.ftl index ac78eb6bb4..2a74b0df32 100644 --- a/Resources/Locale/en-US/polymorph/polymorph.ftl +++ b/Resources/Locale/en-US/polymorph/polymorph.ftl @@ -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