Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 public CropTimer(HoublonCrop plant)
     : base(TimeSpan.FromSeconds(600), TimeSpan.FromSeconds(15))
 {
     Priority = TimerPriority.OneSecond;
     i_plant  = plant;
 }
Exemplo n.º 3
0
 public CropTimer(HoublonCrop plant)
     : base(TimeSpan.FromSeconds(600), TimeSpan.FromSeconds(15))
 {
     Priority = TimerPriority.OneSecond;
     i_plant = plant;
 }
Exemplo n.º 4
0
        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();
            }
        }