Merge remote-tracking branch 'origin/master' into weapon-modules

This commit is contained in:
CaYpeN1
2024-03-22 19:40:53 +05:00
86 changed files with 1752643 additions and 61 deletions

View File

@@ -1,3 +1,4 @@
using Robust.Shared.Audio;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Prototypes;
@@ -12,6 +13,9 @@ namespace Content.Server.Abilities.Felinid
[DataField("hairballPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string HairballPrototype = "Hairball";
[DataField]
public SoundSpecifier MouseEatingSound = new SoundCollectionSpecifier("eating");
public EntityUid? HairballAction;
public EntityUid? EatMouseAction;

View File

@@ -137,7 +137,7 @@ namespace Content.Server.Abilities.Felinid
Del(component.PotentialTarget.Value);
component.PotentialTarget = null;
_audio.PlayPvs("/Audio/Items/eatfood.ogg", uid, AudioParams.Default.WithVariation(0.15f));
_audio.PlayPvs(component.MouseEatingSound, uid, AudioParams.Default.WithVariation(0.15f));
_hungerSystem.ModifyHunger(uid, 70f, hunger);