Fix cream pie bomb when eaten or sliced (#25928)
* fix bomb activation when eaten * no swap / no eject * activate when sliced
This commit is contained in:
committed by
GitHub
parent
855def1fba
commit
0d0edbba4a
@@ -1,5 +1,6 @@
|
||||
using Content.Server.Chemistry.Containers.EntitySystems;
|
||||
using Content.Server.Nutrition.Components;
|
||||
using Content.Shared.Nutrition;
|
||||
using Content.Shared.Nutrition.Components;
|
||||
using Content.Shared.Chemistry.Components;
|
||||
using Content.Shared.Examine;
|
||||
@@ -66,6 +67,8 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
FillSlice(sliceUid, lostSolution);
|
||||
|
||||
_audio.PlayPvs(component.Sound, transform.Coordinates, AudioParams.Default.WithVolume(-2));
|
||||
var ev = new SliceFoodEvent();
|
||||
RaiseLocalEvent(uid, ref ev);
|
||||
|
||||
// Decrease size of item based on count - Could implement in the future
|
||||
// Bug with this currently is the size in a container is not updated
|
||||
|
||||
Reference in New Issue
Block a user