From e52ff1a6764d77fa388dda4c92a5c9080bbd9fda Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 16 Jan 2025 00:21:21 -0500 Subject: [PATCH] Removed a couple of potion sells Healing Potion and Mana Potion from Merchant Stink Potion from Goblin Tinkerer Invisibility Potion and Night Owl Potion from Bandit --- NPCs/CalamityGlobalTownNPC.cs | 7 ++----- NPCs/TownNPCs/DILF.cs | 1 - NPCs/TownNPCs/THIEF.cs | 3 --- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index 35d296f03b..96cf3ceef6 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -1114,9 +1114,7 @@ namespace CalamityMod.NPCs { shop.AddWithCustomValue(ItemID.Bottle, Item.buyPrice(copper: 20), potionSells, Condition.HappyEnoughToSellPylons) .AddWithCustomValue(ItemID.WormholePotion, Item.buyPrice(silver: 5), potionSells, Condition.HappyEnoughToSellPylons); - shop.Add(ItemID.HealingPotion, potionSells, Condition.HappyEnoughToSellPylons, Condition.DownedEowOrBoc) - .Add(ItemID.ManaPotion, potionSells, Condition.HappyEnoughToSellPylons, Condition.DownedEowOrBoc) - .Add(ItemID.Flare, hasFlareGunUpgrade) + shop.Add(ItemID.Flare, hasFlareGunUpgrade) .Add(ItemID.BlueFlare, hasFlareGunUpgrade) .AddWithCustomValue(ItemID.AngelStatue, Item.buyPrice(gold: 5), Condition.NpcIsPresent(NPCType())) .AddWithCustomValue(ItemID.Burger, Item.buyPrice(gold: 5), Condition.HappyEnoughToSellPylons, Condition.DownedSkeletron) @@ -1178,8 +1176,7 @@ namespace CalamityMod.NPCs if (type == NPCID.GoblinTinkerer) { - shop.AddWithCustomValue(ItemID.StinkPotion, Item.buyPrice(silver: 25), potionSells, Condition.HappyEnoughToSellPylons) - .Add(ItemType()) + shop.Add(ItemType()) .Add(ItemID.Toolbox, Condition.NpcIsPresent(NPCID.Mechanic)) .AddWithCustomValue(ItemID.Spaghetti, Item.buyPrice(gold: 5), Condition.HappyEnoughToSellPylons, Condition.DownedSkeletron); } diff --git a/NPCs/TownNPCs/DILF.cs b/NPCs/TownNPCs/DILF.cs index 2452b37cea..dff19ba5b5 100644 --- a/NPCs/TownNPCs/DILF.cs +++ b/NPCs/TownNPCs/DILF.cs @@ -144,7 +144,6 @@ namespace CalamityMod.NPCs.TownNPCs public override void AddShops() { - Condition potionSells = CalamityConditions.PotionSellingConfig; NPCShop shop = new(Type); shop.Add(ModContent.ItemType()) .Add(ModContent.ItemType()) diff --git a/NPCs/TownNPCs/THIEF.cs b/NPCs/TownNPCs/THIEF.cs index c5c7be082b..d9f9bed7b5 100644 --- a/NPCs/TownNPCs/THIEF.cs +++ b/NPCs/TownNPCs/THIEF.cs @@ -299,7 +299,6 @@ namespace CalamityMod.NPCs.TownNPCs } public override void AddShops() { - Condition potionSells = CalamityConditions.PotionSellingConfig; Condition downedCalclone = CalamityConditions.DownedCalamitasClone; Condition downedDoG = CalamityConditions.DownedDevourerOfGods; Condition downedYharon = CalamityConditions.DownedYharon; @@ -310,8 +309,6 @@ namespace CalamityMod.NPCs.TownNPCs .AddWithCustomValue(ModContent.ItemType(), Item.buyPrice(gold: 25)) .AddWithCustomValue(ModContent.ItemType(), Item.buyPrice(gold: 40)) .Add(ItemID.TigerClimbingGear) - .AddWithCustomValue(ItemID.InvisibilityPotion, Item.buyPrice(silver: 25), potionSells, Condition.HappyEnoughToSellPylons) - .AddWithCustomValue(ItemID.NightOwlPotion, Item.buyPrice(silver: 25), potionSells, Condition.HappyEnoughToSellPylons) .Add(ModContent.ItemType(), Condition.DownedPirates) .AddWithCustomValue(ModContent.ItemType(), Item.buyPrice(gold: 60), Condition.DownedMechBossAll) .Add(ModContent.ItemType(), downedCalclone)