[Tweak] Adjusted cake sizes (#15382)
This commit is contained in:
@@ -6,6 +6,7 @@ using Content.Shared.Examine;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Content.Shared.Hands.EntitySystems;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Item;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.Player;
|
||||
@@ -78,7 +79,15 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
SoundSystem.Play(component.Sound.GetSound(), Filter.Pvs(uid),
|
||||
transform.Coordinates, AudioParams.Default.WithVolume(-2));
|
||||
|
||||
// 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
|
||||
// if (TryComp(uid, out ItemComponent? itemComp) && TryComp(sliceUid, out ItemComponent? sliceComp))
|
||||
// {
|
||||
// itemComp.Size -= sliceComp.Size;
|
||||
// }
|
||||
|
||||
component.Count--;
|
||||
|
||||
// If someone makes food proto with 1 slice...
|
||||
if (component.Count < 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user