Lockable seeds

This commit is contained in:
Rendo 2025-07-22 03:23:46 +05:00
commit a4c58bb245
19 changed files with 405 additions and 61 deletions

View file

@ -28,7 +28,7 @@ public partial class AlmanachGrid : GridContainer
}
else
{
var list = PlayerProgress.Instance.PlayerPlants;
var list = GameRegistry.GetPlants();
list.Sort((a, b) =>
{
return a.Order - b.Order;
@ -39,6 +39,7 @@ public partial class AlmanachGrid : GridContainer
AddChild(slot);
slot.SetResource(resource);
slot.SetLocked(PlayerProgress.Instance.PlayerPlants.Contains(resource) == false);
slot.SetHandler(new AlmanachHandler(slot));
}
}