diff --git a/Assets/Scripts/DamianExperiments/Quarry/SoundBirdPuzzleSection/Sound Generator.cs b/Assets/Scripts/DamianExperiments/Quarry/SoundBirdPuzzleSection/Sound Generator.cs index db9b3b47..6a221094 100644 --- a/Assets/Scripts/DamianExperiments/Quarry/SoundBirdPuzzleSection/Sound Generator.cs +++ b/Assets/Scripts/DamianExperiments/Quarry/SoundBirdPuzzleSection/Sound Generator.cs @@ -9,7 +9,7 @@ public class SoundGenerator : MonoBehaviour [SerializeField] private Sprite exitSprite; [SerializeField] private AudioClip enterSound; [SerializeField] private AppleAudioSource audioSource; - [SerializeField] private AppleMachine soundBirdSMRef; + [SerializeField] public AppleMachine soundBirdSMRef; [SerializeField] private soundBird_CanFly soundbirdHearingCheck; private bool playerInside = false; diff --git a/Assets/Scripts/Interactions/ItemSlot.cs b/Assets/Scripts/Interactions/ItemSlot.cs index 293cf563..e37452db 100644 --- a/Assets/Scripts/Interactions/ItemSlot.cs +++ b/Assets/Scripts/Interactions/ItemSlot.cs @@ -223,6 +223,11 @@ namespace Interactions /// protected override (bool canProceed, string errorMessage) CanProceedWithInteraction() { + // TODO: Fuck this but it's late, check if the soundbird can sill be interacted with + var soundGenerator = FindFirstObjectByType(FindObjectsInactive.Exclude); + if (soundGenerator) + return (soundGenerator.soundBirdSMRef.currentState.name.ToLower().Contains("soundbird_slot"), "Sound Bird!"); + var heldItem = FollowerController?.CurrentlyHeldItemData; // Check if slot is locked after completion