Revamp the puzzle registration system

This commit is contained in:
Michal Pikulski
2025-10-16 00:04:42 +02:00
parent cc6e89c003
commit 1ae065b45d
59 changed files with 2567 additions and 750 deletions

View File

@@ -418,7 +418,8 @@ namespace Interactions
{
// Check for ObjectiveStepBehaviour and lock state
var step = GetComponent<PuzzleS.ObjectiveStepBehaviour>();
if (step != null && !step.IsStepUnlocked())
var slot = GetComponent<ItemSlot>();
if (step != null && !step.IsStepUnlocked() && slot == null)
{
DebugUIMessage.Show("This step is locked!", Color.yellow);
BroadcastInteractionComplete(false);