Ejemplo n.º 1
0
 public static void init(SugarcaneCrop plant, bool full)
 {
     plant.PickGraphic = (Utility.RandomList(0xC55, 0xC56, 0xC57, 0xC59));
     plant.FullGraphic = (Utility.RandomList(0xC5A, 0xC5B));
     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();
     }
 }
Ejemplo n.º 2
0
 public CropTimer(SugarcaneCrop plant) : base(TimeSpan.FromSeconds(450), TimeSpan.FromSeconds(15))
 {
     Priority = TimerPriority.OneSecond;
     i_plant  = plant;
 }