prevent using holo inside containers (#32068)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user