Added unlock mechanic with testing if player has all items in inventory.
This commit is contained in:
@@ -264,4 +264,14 @@ public partial class Layer : Node3D
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public string DisplayGateIngredients()
|
||||
{
|
||||
string result = "";
|
||||
foreach (Ingredient ingredient in gateIngredients)
|
||||
{
|
||||
result += $"{ItemData.GetReadableName(ingredient.Item)} ({ingredient.Amount})\r";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user