public CarrotStage2(string name) : base(name) { Classes.ItemHelper.OnRemove[] onRemoveNode = { new Classes.ItemHelper.OnRemove("carrotstage1", 1, 0.8f) }; this.OnRemove = onRemoveNode; this.IsSolid = false; this.NeedsBase = true; this.OnRemoveAudio = "grassDelete"; this.OnPlaceAudio = "grassDelete"; this.MaxStackSize = 1200; this.NPCLimit = 0; this.SideAll = "wheatwheat"; this.Mesh = "carrotstage2"; this.AllowCreative = false; this.maxGrowth = 1f; TypeManager.registerCrop(this); CropManager.addCropStage(name, "carrotstage3"); CropManager.CropTypes.Add("carrotstage2", this); this.Register(); }
public LettuceStage1(string name) : base(name, true) { Classes.ItemHelper.OnRemove[] onRemoveNode = { new Classes.ItemHelper.OnRemove("lettucestage1", 1, 0.6f) }; this.OnRemove = onRemoveNode; this.IsSolid = false; this.NeedsBase = true; this.IsPlaceable = true; this.AllowCreative = true; this.OnRemoveAudio = "grassDelete"; this.OnPlaceAudio = "grassDelete"; this.MaxStackSize = 1200; this.Icon = "lettuce"; this.NPCLimit = 0; this.SideAll = "wheatwheat"; this.Mesh = "wheatstage1"; this.maxGrowth = 12f; this.NutritionalValue = 0.3F; TypeManager.registerCrop(this); CropManager.addCropStage(name, "lettucestage2"); CropManager.CropTypes.Add("lettucestage1", this); this.Register(); }