diff --git a/Content.Server/GameObjects/Components/Nutrition/CreamPieComponent.cs b/Content.Server/GameObjects/Components/Nutrition/CreamPieComponent.cs index 02cd9699bd..c82479e0d2 100644 --- a/Content.Server/GameObjects/Components/Nutrition/CreamPieComponent.cs +++ b/Content.Server/GameObjects/Components/Nutrition/CreamPieComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.Player; namespace Content.Server.GameObjects.Components.Nutrition { [RegisterComponent] - public class CreamPieComponent : Component, ILand + public class CreamPieComponent : Component, ILand, IThrowCollide { public override string Name => "CreamPie"; @@ -19,7 +19,17 @@ namespace Content.Server.GameObjects.Components.Nutrition AudioHelpers.WithVariation(0.125f)); } + void IThrowCollide.DoHit(ThrowCollideEventArgs eventArgs) + { + Splat(); + } + void ILand.Land(LandEventArgs eventArgs) + { + Splat(); + } + + public void Splat() { PlaySound(); diff --git a/Resources/Changelog/Parts/creampie.yml b/Resources/Changelog/Parts/creampie.yml new file mode 100644 index 0000000000..fc7a70ff03 --- /dev/null +++ b/Resources/Changelog/Parts/creampie.yml @@ -0,0 +1,4 @@ +author: Your_Name_Here +changes: + - type: Fix + message: Fixed cream pies not splashing when hitting people or things.