public static void init(TanGingerCrop plant, bool full) { plant.PickGraphic = (0xCB5); plant.FullGraphic = (0xCC7); plant.LastPick = DateTime.UtcNow; plant.regrowTimer = new CropTimer(plant); if (full) { plant.Yield = plant.Capacity; ((Item)plant).ItemID = plant.FullGraphic; } else { plant.Yield = 0; ((Item)plant).ItemID = plant.PickGraphic; plant.regrowTimer.Start(); } }
public CropTimer(TanGingerCrop plant) : base(TimeSpan.FromSeconds(450), TimeSpan.FromSeconds(15)) { Priority = TimerPriority.OneSecond; i_plant = plant; }