The planetoid lab now has herbs again

This commit is contained in:
DominicKarma42 committed 2020-07-30 07:04:19 -05:00
1 parent 5382e2ce78
commit 8a5c94941e
1 file changed
+9 -1
+9 -1
View File
@@ -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<ChestItem> contents = new List<ChestItem>()
{
new ChestItem(ModContent.ItemType<DubiousPlating>(), WorldGen.genRand.Next(8, 14 + 1)),
new ChestItem(ModContent.ItemType<MysteriousCircuitry>(), 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)),