示例#1
0
            public StumpTimer(PlumTree Tree, FruitTreeStump Stump, Mobile from) : base(TimeSpan.FromMilliseconds(5500))
            {
                Priority = TimerPriority.TenMS;

                i_tree    = Tree;
                i_stump   = Stump;
                m_chopper = from;
            }
示例#2
0
        public static void init(PlumTree plant, bool full)
        {
            plant.LastPick    = DateTime.Now;
            plant.regrowTimer = new FruitTimer(plant);

            if (full)
            {
                plant.Yield = plant.Capacity;
            }
            else
            {
                plant.Yield = 0;
                plant.regrowTimer.Start();
            }
        }
示例#3
0
 public FruitTimer(PlumTree plant) : base(TimeSpan.FromSeconds(900), TimeSpan.FromSeconds(30))
 {
     Priority = TimerPriority.OneSecond;
     i_plant  = plant;
 }
示例#4
0
			public StumpTimer( PlumTree Tree, FruitTreeStump Stump, Mobile from ) : base( TimeSpan.FromMilliseconds( 5500 ) )
			{
				Priority = TimerPriority.TenMS;

				i_tree = Tree;
				i_stump = Stump;
				m_chopper = from;
			}
示例#5
0
			public FruitTimer( PlumTree plant ) : base( TimeSpan.FromSeconds( 900 ), TimeSpan.FromSeconds( 30 ) )
			{
				Priority = TimerPriority.OneSecond;
				i_plant = plant;
			}
示例#6
0
		public static void init ( PlumTree plant, bool full )
		{
			plant.LastPick = DateTime.Now;
			plant.regrowTimer = new FruitTimer( plant );

			if ( full )
			{
				plant.Yield = plant.Capacity;
			}
			else
			{
				plant.Yield = 0;
				plant.regrowTimer.Start();
			}
		}