Lockable seeds
This commit is contained in:
parent
e03658e727
commit
a4c58bb245
19 changed files with 405 additions and 61 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue