From ab4c6d69a1d2016fd7f52d514f171c2e60df083f Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Tue, 18 Apr 2023 01:09:27 -0500 Subject: [PATCH] Wack ass shop code support --- NPCs/TownNPCs/FAP.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NPCs/TownNPCs/FAP.cs b/NPCs/TownNPCs/FAP.cs index bcb2db11d0..cfe10e1774 100644 --- a/NPCs/TownNPCs/FAP.cs +++ b/NPCs/TownNPCs/FAP.cs @@ -313,7 +313,9 @@ namespace CalamityMod.NPCs.TownNPCs NPCShop shop = new(Type); shop.AddWithCustomValue(ItemID.HeartreachPotion, Item.buyPrice(gold: 4), potionSells, Condition.HappyEnough) - .AddWithCustomValue(ItemID.LifeforcePotion, Item.buyPrice(gold: (NPC.downedMoonlord ? 16 : Main.hardMode ? 8 : 4)), potionSells, Condition.HappyEnough) + .AddWithCustomValue(ItemID.LifeforcePotion, Item.buyPrice(gold: 4), potionSells, Condition.HappyEnough, Condition.PreHardmode) + .AddWithCustomValue(ItemID.LifeforcePotion, Item.buyPrice(gold: 8), potionSells, Condition.HappyEnough, Condition.Hardmode, Condition.NotDownedMoonLord) + .AddWithCustomValue(ItemID.LifeforcePotion, Item.buyPrice(gold: 16), potionSells, Condition.HappyEnough, Condition.DownedMoonLord) .AddWithCustomValue(ItemID.LovePotion, Item.buyPrice(silver: 25), potionSells, Condition.HappyEnough) .AddWithCustomValue(ModContent.ItemType(), Item.buyPrice(silver: 30)) .AddWithCustomValue(ModContent.ItemType(), Item.buyPrice(gold: 1))