Example #1
0
 public static void init(SnapdragonCrop plant, bool full)
 {
     plant.PickGraphic = (0x234C);
     plant.FullGraphic = (0x234D);
     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();
     }
 }
Example #2
0
 public CropTimer(SnapdragonCrop plant) : base(TimeSpan.FromSeconds(450), TimeSpan.FromSeconds(15))
 {
     Priority = TimerPriority.OneSecond;
     i_plant  = plant;
 }