Godmode refactor (#14651)
This commit is contained in:
@@ -6,6 +6,7 @@ using Content.Server.Atmos;
|
||||
using Content.Server.Atmos.Components;
|
||||
using Content.Server.Cargo.Components;
|
||||
using Content.Server.Cargo.Systems;
|
||||
using Content.Server.Damage.Components;
|
||||
using Content.Server.Doors.Components;
|
||||
using Content.Server.Doors.Systems;
|
||||
using Content.Server.Hands.Components;
|
||||
@@ -123,7 +124,7 @@ public sealed partial class AdminVerbSystem
|
||||
args.Verbs.Add(rejuvenate);
|
||||
}
|
||||
|
||||
if (!_godmodeSystem.HasGodmode(args.Target))
|
||||
if (!HasComp<GodmodeComponent>(args.Target))
|
||||
{
|
||||
Verb makeIndestructible = new()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user