public static void init(HoublonCrop plant, bool full) { plant.PickGraphic = Utility.RandomList(0xC60, 0xC5E); plant.FullGraphic = Utility.RandomList(0x1A9E, 0x1A9F, 0x1AA0, 0x1AA1); plant.LastPick = DateTime.Now; 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(HoublonCrop plant) : base(TimeSpan.FromSeconds(600), TimeSpan.FromSeconds(15)) { Priority = TimerPriority.OneSecond; i_plant = plant; }
public CropTimer(HoublonCrop plant) : base(TimeSpan.FromSeconds(600), TimeSpan.FromSeconds(15)) { Priority = TimerPriority.OneSecond; i_plant = plant; }
public static void init(HoublonCrop plant, bool full) { plant.PickGraphic = Utility.RandomList(0xC60, 0xC5E); plant.FullGraphic = Utility.RandomList(0x1A9E, 0x1A9F, 0x1AA0, 0x1AA1); plant.LastPick = DateTime.Now; 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(); } }