evershade/Assets/Data/ScriptableObjects/Crop.cs

34 lines
899 B
C#

using UnityEngine;
// This is a base class for all crops in the game. It is for the actual crop in the ground.
// It is not for the seeds that are planted or the harvested crops. (CropItem)
[CreateAssetMenu(fileName = "Crop", menuName = "Game Data/Farming/Crop")]
public class Crop : ScriptableObject
{
// crop item
public CropItem cropItem;
// seed item
public SeedItem seedItem;
// crop properties
public int yield;
public int experience;
public int growthStages;
public int currentGrowthStage;
public int waterRequirement;
public int lightRequirement;
// public int temperatureRequirement;
// public int fertilizerRequirement;
// public int pesticideRequirement;
// public int growthModifier;
// public int quality;
// will need to change the sprite depending on the growth stage
public Sprite[] growthSprites;
}