public static void init(MandrakeCrop plant, bool full) { plant.PickGraphic = (0xC61); plant.FullGraphic = (0x18DF); 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(MandrakeCrop plant) : base(TimeSpan.FromSeconds(600), TimeSpan.FromSeconds(15)) { Priority = TimerPriority.OneSecond; i_plant = plant; }
public CropTimer(MandrakeCrop plant) : base(TimeSpan.FromMinutes(45), TimeSpan.FromMinutes(30)) { Priority = TimerPriority.OneSecond; i_plant = plant; }