Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public CustomCrop(CropPackData data, int tileX, int tileY)
     : this(data)
 {
     this.updateDrawMath(new Vector2(tileX, tileY));
 }
Ejemplo n.º 3
0
 public CustomGiantCrop(CropPackData data, Vector2 tile)
     : this(data)
 {
     this.tile.Value = tile;
 }
Ejemplo n.º 4
0
 partial void DoInit(CropPackData data)
 {
     this.width.Value  = 3;
     this.height.Value = 3;
     this.health.Value = 3;
 }