Added gate unlock generation and simple Game Won print
This commit is contained in:
@@ -169,11 +169,19 @@ public partial class UIHandler : Control
|
||||
{
|
||||
currentLayer.Text = $"Current layer: {GameData.currentLayer}/{GameData.ruinSize}";
|
||||
deepestLayer.Text = $"Deepest layer: {GameData.lowestLayer}";
|
||||
|
||||
}
|
||||
|
||||
public void UnlockLayer()
|
||||
{
|
||||
|
||||
foreach (Ingredient ingredient in GameData.map[GameData.lowestLayer].gateIngredients)
|
||||
{
|
||||
GD.Print($"{ingredient.Item} ({ingredient.Amount})");
|
||||
}
|
||||
GD.Print("------------------------");
|
||||
GameData.lowestLayer++;
|
||||
if (GameData.lowestLayer == GameData.ruinSize)
|
||||
{
|
||||
GD.Print("GAME WON!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user