public static void init(NightshadeCrop plant, bool full) { plant.PickGraphic = (0xCB5); plant.FullGraphic = (0x18E5); plant.LastPick = DateTime.UtcNow; 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(); } }
public static void init(NightshadeCrop plant, bool full) //I MODED { plant.PickGraphic = (0x18e6); //I MODDED Picked Graphic plant.FullGraphic = (0xf88); //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 NightshadeCrop i_plant; //I MODED public CropTimer(NightshadeCrop plant) : base(TimeSpan.FromSeconds(600), TimeSpan.FromSeconds(15)) //I MODED { Priority = TimerPriority.OneSecond; i_plant = plant; }