partial void DoInit(CropPackData data) { if ((data.Colors?.Count ?? 0) > 0) { this.tintColor.Value = data.Colors[Game1.random.Next(data.Colors.Count)]; } this.ResetPhaseDays(); this.harvestMethod.Value = this.Data.Phases[0].Scythable ? Crop.sickleHarvest : Crop.grabHarvest; this.raisedSeeds.Value = this.Data.Phases[0].Trellis; }
public CustomCrop(CropPackData data, int tileX, int tileY) : this(data) { this.updateDrawMath(new Vector2(tileX, tileY)); }
public CustomGiantCrop(CropPackData data, Vector2 tile) : this(data) { this.tile.Value = tile; }
partial void DoInit(CropPackData data) { this.width.Value = 3; this.height.Value = 3; this.health.Value = 3; }