示例#1
0
        public static void init(OrgeCrop plant, bool full)
        {
            plant.PickGraphic = Utility.RandomList(0xC55, 0xC56, 0xC57, 0xC59);
            plant.FullGraphic = Utility.RandomList(0xC58, 0xC5A, 0xC5B);
            plant.Hue         = 0x28E;

            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();
            }
        }
示例#2
0
 public CropTimer(OrgeCrop plant) : base(TimeSpan.FromSeconds(600), TimeSpan.FromSeconds(15))
 {
     Priority = TimerPriority.OneSecond;
     i_plant  = plant;
 }
示例#3
0
			public CropTimer( OrgeCrop plant ) : base( TimeSpan.FromSeconds( 600 ), TimeSpan.FromSeconds( 15 ) )
			{
				Priority = TimerPriority.OneSecond;
				i_plant = plant;
			}
示例#4
0
		public static void init ( OrgeCrop plant, bool full )
		{
			plant.PickGraphic = Utility.RandomList( 0xC55, 0xC56, 0xC57, 0xC59 );
			plant.FullGraphic = Utility.RandomList( 0xC58, 0xC5A, 0xC5B );
			plant.Hue = 0x28E;
			
			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();
			}
		}