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 deltanedas
parent 7f19d50900
commit a65484e61a
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