public FertilizerSaveData(FertilizerData data) { itemName = data.itemName; growthSpeed = data.growthSpeed; quality = data.quality; upQuality = data.upQuality; downQuality = data.downQuality; getValue = data.getValue; }
public void FertilizerAdd(FertilizerData fd) { foreach (FertilizerData f in fertilizers) { if (f.itemName == fd.itemName) { f.growthSpeed += fd.growthSpeed; return; } } fertilizers.Add(fd); }