コード例 #1
0
        public static void init(GrapesCrop plant, bool full) //I MODED
        {
            plant.PickGraphic = (0xD1F);                     //I MODDED Picked Graphic
            plant.FullGraphic = (0xD1E);                     //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();
            }
        }
コード例 #2
0
			private GrapesCrop i_plant; //I MODED

			public CropTimer( GrapesCrop plant ) : base( TimeSpan.FromSeconds( 600 ), TimeSpan.FromSeconds( 15 ) )//I MODED
			{
				Priority = TimerPriority.OneSecond;
				i_plant = plant;
			}
コード例 #3
0
		public static void init ( GrapesCrop plant, bool full )//I MODED
		{
			plant.PickGraphic = ( 0xD1F );//I MODDED Picked Graphic
			plant.FullGraphic = ( 0xD1E );//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();
			}
		}
コード例 #4
0
            private GrapesCrop i_plant;                                                                    //I MODED

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