|
|
|
@ -159,7 +159,6 @@ public partial class FieldBehaviour2D : Sprite2D, ISaveable
|
|
|
|
|
|
|
|
|
|
|
|
public void ChangePlantedState()
|
|
|
|
public void ChangePlantedState()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
GD.Print("Adding Plant.");
|
|
|
|
|
|
|
|
IsPlanted = true;
|
|
|
|
IsPlanted = true;
|
|
|
|
if(FieldState == FieldState.Tilled)
|
|
|
|
if(FieldState == FieldState.Tilled)
|
|
|
|
_fieldSprite.Texture = Tilled;
|
|
|
|
_fieldSprite.Texture = Tilled;
|
|
|
|
@ -236,7 +235,6 @@ public partial class FieldBehaviour2D : Sprite2D, ISaveable
|
|
|
|
|
|
|
|
|
|
|
|
if (IsPlanted)
|
|
|
|
if (IsPlanted)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
GD.Print("Saving plant data.");
|
|
|
|
|
|
|
|
payloadData.Add(
|
|
|
|
payloadData.Add(
|
|
|
|
"plant_data", new Dictionary<string, Variant>()
|
|
|
|
"plant_data", new Dictionary<string, Variant>()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|