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