Better Godmode (#37020)

* Commit

* Oversights oops

* breaking changes

* unbreaking changes

* Compatibility with AfterFullyEaten

* Fixed

* Update Content.Server/Kitchen/EntitySystems/ReagentGrinderSystem.cs

---------

Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
This commit is contained in:
Princess Cheeseballs
2025-05-09 22:06:19 -07:00
committed by GitHub
parent 4407eab96b
commit 62c380fc53
6 changed files with 40 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ using Content.Shared.Movement.Systems;
using Robust.Shared.Audio;
using Robust.Shared.Timing;
using System.Numerics;
using Content.Shared.Damage.Components;
namespace Content.Server.Body.Systems;
@@ -110,6 +111,9 @@ public sealed class BodySystem : SharedBodySystem
return new HashSet<EntityUid>();
}
if (HasComp<GodmodeComponent>(bodyId))
return new HashSet<EntityUid>();
var xform = Transform(bodyId);
if (xform.MapUid is null)
return new HashSet<EntityUid>();