Animals make hearts when you pet them (#20859)

This commit is contained in:
Ed
2023-10-13 20:34:18 +03:00
committed by GitHub
parent e6e7d63b84
commit 5fa0e7dd49
7 changed files with 94 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
using Robust.Shared.Audio;
using Robust.Shared.Prototypes;
namespace Content.Server.Interaction.Components;
@@ -40,6 +41,18 @@ public sealed partial class InteractionPopupComponent : Component
[DataField("interactFailureSound")]
public SoundSpecifier? InteractFailureSound;
/// <summary>
/// a prototype that will spawn upon successful interaction (as planned only for special effects)
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public EntProtoId? InteractSuccessSpawn;
/// <summary>
/// a prototype that will spawn upon failure interaction (as planned only for special effects)
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public EntProtoId? InteractFailureSpawn;
/// <summary>
/// Chance that an interaction attempt will succeed.
/// 1 = always play "success" popup and sound.