Add an editor utility and fix issue with slot items

This commit is contained in:
Michal Pikulski
2025-10-15 16:53:18 +02:00
committed by Michal Pikulski
parent fe2e53b2a2
commit 4a989fdfde
18 changed files with 928 additions and 7 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);