From 8a5c94941e8be067ce1faadfbc0989c7c60d640f Mon Sep 17 00:00:00 2001 From: DominicKarma42 <51094361+DominicKarma@users.noreply.github.com> Date: Thu, 30 Jul 2020 07:04:19 -0500 Subject: [PATCH] The planetoid lab now has herbs again --- World/DraedonStructures.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/World/DraedonStructures.cs b/World/DraedonStructures.cs index b1e48864a7..2ab751ad07 100644 --- a/World/DraedonStructures.cs +++ b/World/DraedonStructures.cs @@ -302,7 +302,7 @@ namespace CalamityMod.World for (int y = placementPoint.Y; y < placementPoint.Y + schematicSize.Y; y++) { Tile tile = CalamityUtils.ParanoidTileRetrieval(x, y); - if (ShouldAvoidLocation(new Point(x, y))) + if (ShouldAvoidLocation(new Point(x, y), false)) shouldAvoidArea = true; } } @@ -478,10 +478,18 @@ namespace CalamityMod.World public static void FillPlanetoidLaboratoryChest(Chest chest, int type, bool hasPlacedLogAndSchematic) { int potionType = Utils.SelectRandom(WorldGen.genRand, ItemID.EndurancePotion, ItemID.GravitationPotion, ItemID.HeartreachPotion, ItemID.LifeforcePotion); + List contents = new List() { new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(8, 14 + 1)), new ChestItem(ModContent.ItemType(), WorldGen.genRand.Next(7, 12 + 1)), + new ChestItem(ItemID.HerbBag, WorldGen.genRand.Next(12, 17 + 1)), + new ChestItem(ItemID.CorruptPlanterBox, WorldGen.genRand.Next(5, 9 + 1)), + new ChestItem(ItemID.DayBloomPlanterBox, WorldGen.genRand.Next(5, 9 + 1)), + new ChestItem(ItemID.FireBlossomPlanterBox, WorldGen.genRand.Next(5, 9 + 1)), + new ChestItem(ItemID.MoonglowPlanterBox, WorldGen.genRand.Next(5, 9 + 1)), + new ChestItem(ItemID.ShiverthornPlanterBox, WorldGen.genRand.Next(5, 9 + 1)), + new ChestItem(ItemID.WaterleafPlanterBox, WorldGen.genRand.Next(5, 9 + 1)), new ChestItem(ItemID.Torch, WorldGen.genRand.Next(15, 29 + 1)), new ChestItem(ItemID.GoldCoin, WorldGen.genRand.Next(5, 11 + 1)), new ChestItem(ItemID.HealingPotion, WorldGen.genRand.Next(5, 7 + 1)),