Edible Sound Specifier Override (#40312)

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
This commit is contained in:
Princess Cheeseballs
2025-09-12 14:49:12 -07:00
committed by GitHub
parent 2820882754
commit 928e6c8079
2 changed files with 9 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
using Content.Shared.FixedPoint;
using Content.Shared.Nutrition.EntitySystems;
using Content.Shared.Nutrition.Prototypes;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
@@ -78,6 +79,13 @@ public sealed partial class EdibleComponent : Component
[DataField]
public bool RequireDead = true;
/// <summary>
/// An optional override for the sound made when consuming this item.
/// Useful for if an edible type doesn't justify a new prototype, like with plushies.
/// </summary>
[DataField]
public SoundSpecifier? UseSound;
/// <summary>
/// Verb, icon, and sound data for our edible.
/// </summary>