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

@@ -58,6 +58,9 @@ public sealed class InteractionPopupSystem : EntitySystem
if (component.InteractSuccessSound != null)
sfx = component.InteractSuccessSound.GetSound();
if (component.InteractSuccessSpawn != null)
Spawn(component.InteractSuccessSpawn, Transform(uid).MapPosition);
}
else
{
@@ -66,6 +69,9 @@ public sealed class InteractionPopupSystem : EntitySystem
if (component.InteractFailureSound != null)
sfx = component.InteractFailureSound.GetSound();
if (component.InteractFailureSpawn != null)
Spawn(component.InteractFailureSpawn, Transform(uid).MapPosition);
}
if (component.MessagePerceivedByOthers != null)