Beispiel #1
0
        public static void init(MandrakeRootCrop plant, bool full) //I MODED
        {
            plant.PickGraphic = (0x18DF);                          //I MODDED Picked Graphic
            plant.FullGraphic = (0x18DE);                          //I MODED Full plant graphic

            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();
            }
        }
Beispiel #2
0
            private MandrakeRootCrop i_plant;                                                                    //I MODED

            public CropTimer(MandrakeRootCrop plant) : base(TimeSpan.FromSeconds(600), TimeSpan.FromSeconds(15)) //I MODED
            {
                Priority = TimerPriority.OneSecond;
                i_plant  = plant;
            }
			private MandrakeRootCrop i_plant; //I MODED

			public CropTimer( MandrakeRootCrop plant ) : base( TimeSpan.FromSeconds( 600 ), TimeSpan.FromSeconds( 15 ) )//I MODED
			{
				Priority = TimerPriority.OneSecond;
				i_plant = plant;
			}
		public static void init ( MandrakeRootCrop plant, bool full )//I MODED
		{
			plant.PickGraphic = ( 0x18DF );//I MODDED Picked Graphic
			plant.FullGraphic = ( 0x18DE );//I MODED Full plant graphic

			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();
			}
		}