public static void init(BloodmossCrop plant, bool full) //I MODED { plant.PickGraphic = (0x1f11); //I MODDED Picked Graphic plant.FullGraphic = (0x1f0d); //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 BloodmossCrop i_plant; //I MODED public CropTimer( BloodmossCrop plant ) : base( TimeSpan.FromSeconds( 600 ), TimeSpan.FromSeconds( 15 ) )//I MODED { Priority = TimerPriority.OneSecond; i_plant = plant; }
public static void init ( BloodmossCrop plant, bool full )//I MODED { plant.PickGraphic = ( 0x1f11 );//I MODDED Picked Graphic plant.FullGraphic = ( 0x1f0d );//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 BloodmossCrop i_plant; //I MODED public CropTimer(BloodmossCrop plant) : base(TimeSpan.FromSeconds(600), TimeSpan.FromSeconds(15)) //I MODED { Priority = TimerPriority.OneSecond; i_plant = plant; }