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

@@ -52,6 +52,7 @@ public sealed class FoodSystem : EntitySystem
[Dependency] private readonly ReactiveSystem _reaction = default!;
[Dependency] private readonly SharedAudioSystem _audio = default!;
[Dependency] private readonly SharedDoAfterSystem _doAfter = default!;
[Dependency] private readonly SharedDestructibleSystem _destructible = default!;
[Dependency] private readonly SharedHandsSystem _hands = default!;
[Dependency] private readonly SharedInteractionSystem _interaction = default!;
[Dependency] private readonly SharedSolutionContainerSystem _solutionContainer = default!;
@@ -336,6 +337,11 @@ public sealed class FoodSystem : EntitySystem
if (ev.Cancelled)
return;
var attemptEv = new DestructionAttemptEvent();
RaiseLocalEvent(food, attemptEv);
if (attemptEv.Cancelled)
return;
var afterEvent = new AfterFullyEatenEvent(user);
RaiseLocalEvent(food, ref afterEvent);