prevent using holo inside containers (#32068)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2024-09-15 19:04:31 +00:00
committed by GitHub
parent 540b1b15b1
commit 02c7662617
2 changed files with 7 additions and 0 deletions

View File

@@ -80,6 +80,12 @@ namespace Content.Server.Guardian
if (args.Handled)
return;
if (_container.IsEntityInContainer(uid))
{
_popupSystem.PopupEntity(Loc.GetString("guardian-inside-container"), uid, uid);
return;
}
if (component.HostedGuardian != null)
ToggleGuardian(uid, component);

View File

@@ -10,6 +10,7 @@ guardian-activator-empty-examine = [color=#ba1919]The injector is spent.[/color]
guardian-activator-invalid-target = Only humans can be injected!
guardian-no-soul = Your guardian has no soul.
guardian-available = Your guardian now has a soul.
guardian-inside-container = There's no room to release your guardian!
## Guardian entity specific