From 3aaebd53a25564bc2847f238900e9ed072c43336 Mon Sep 17 00:00:00 2001 From: Phupperbat Date: Fri, 25 Feb 2022 23:19:02 -0500 Subject: [PATCH] Potion price re-tweak --- Items/Potions/AnechoicCoating.cs | 2 +- Items/Potions/BoundingPotion.cs | 2 +- Items/Potions/CalciumPotion.cs | 2 +- Items/Potions/CrumblingPotion.cs | 3 +-- Items/Potions/PhotosynthesisPotion.cs | 3 +-- Items/Potions/RevivifyPotion.cs | 2 +- Items/Potions/SoaringPotion.cs | 2 +- Items/Potions/SulphurskinPotion.cs | 2 +- Items/Potions/SunkenStew.cs | 2 +- Items/Potions/TriumphPotion.cs | 2 +- Items/Potions/ZenPotion.cs | 2 +- Items/Potions/ZergPotion.cs | 2 +- 12 files changed, 12 insertions(+), 14 deletions(-) diff --git a/Items/Potions/AnechoicCoating.cs b/Items/Potions/AnechoicCoating.cs index 88024b2ca5..2f3f3b505c 100644 --- a/Items/Potions/AnechoicCoating.cs +++ b/Items/Potions/AnechoicCoating.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Potions item.height = 18; item.useTurn = true; item.maxStack = 30; - item.value = CalamityGlobalItem.Rarity1BuyPrice; + item.value = Item.buyPrice(0, 2, 0, 0); item.rare = ItemRarityID.Blue; item.useAnimation = 17; item.useTime = 17; diff --git a/Items/Potions/BoundingPotion.cs b/Items/Potions/BoundingPotion.cs index 2649f06253..444b4a5679 100644 --- a/Items/Potions/BoundingPotion.cs +++ b/Items/Potions/BoundingPotion.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Potions item.height = 18; item.useTurn = true; item.maxStack = 30; - item.value = CalamityGlobalItem.Rarity1BuyPrice; + item.value = Item.buyPrice(0, 2, 0, 0); item.rare = ItemRarityID.Blue; item.useAnimation = 17; item.useTime = 17; diff --git a/Items/Potions/CalciumPotion.cs b/Items/Potions/CalciumPotion.cs index 564af1ebdc..a393632482 100644 --- a/Items/Potions/CalciumPotion.cs +++ b/Items/Potions/CalciumPotion.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Potions item.height = 18; item.useTurn = true; item.maxStack = 30; - item.value = CalamityGlobalItem.Rarity1BuyPrice; + item.value = Item.buyPrice(0, 2, 0, 0); item.rare = ItemRarityID.Blue; item.useAnimation = 17; item.useTime = 17; diff --git a/Items/Potions/CrumblingPotion.cs b/Items/Potions/CrumblingPotion.cs index 372b9da7e6..7cf3a82ba1 100644 --- a/Items/Potions/CrumblingPotion.cs +++ b/Items/Potions/CrumblingPotion.cs @@ -21,11 +21,10 @@ namespace CalamityMod.Items.Potions item.height = 18; item.useTurn = true; item.maxStack = 30; - item.rare = ItemRarityID.Orange; item.useAnimation = 17; item.useTime = 17; item.useStyle = ItemUseStyleID.EatingUsing; - item.value = CalamityGlobalItem.Rarity4BuyPrice; + item.value = Item.buyPrice(0, 2, 0, 0); item.rare = ItemRarityID.LightRed; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/PhotosynthesisPotion.cs b/Items/Potions/PhotosynthesisPotion.cs index ac32283c83..b6c4addfc9 100644 --- a/Items/Potions/PhotosynthesisPotion.cs +++ b/Items/Potions/PhotosynthesisPotion.cs @@ -21,11 +21,10 @@ namespace CalamityMod.Items.Potions item.height = 18; item.useTurn = true; item.maxStack = 30; - item.rare = ItemRarityID.Orange; item.useAnimation = 17; item.useTime = 17; item.useStyle = ItemUseStyleID.EatingUsing; - item.value = CalamityGlobalItem.Rarity4BuyPrice; + item.value = Item.buyPrice(0, 2, 0, 0); item.rare = ItemRarityID.LightRed; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/RevivifyPotion.cs b/Items/Potions/RevivifyPotion.cs index fe0ed0d8b5..6518581b46 100644 --- a/Items/Potions/RevivifyPotion.cs +++ b/Items/Potions/RevivifyPotion.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Potions item.useAnimation = 17; item.useTime = 17; item.useStyle = ItemUseStyleID.EatingUsing; - item.value = CalamityGlobalItem.Rarity4BuyPrice; + item.value = Item.buyPrice(0, 2, 0, 0); item.rare = ItemRarityID.LightRed; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/SoaringPotion.cs b/Items/Potions/SoaringPotion.cs index e8021f9d4e..e5c11d7630 100644 --- a/Items/Potions/SoaringPotion.cs +++ b/Items/Potions/SoaringPotion.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Potions item.useAnimation = 17; item.useTime = 17; item.useStyle = ItemUseStyleID.EatingUsing; - item.value = CalamityGlobalItem.Rarity4BuyPrice; + item.value = Item.buyPrice(0, 2, 0, 0); item.rare = ItemRarityID.LightRed; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/SulphurskinPotion.cs b/Items/Potions/SulphurskinPotion.cs index 558f4362fc..369c0d271c 100644 --- a/Items/Potions/SulphurskinPotion.cs +++ b/Items/Potions/SulphurskinPotion.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Potions item.height = 18; item.useTurn = true; item.maxStack = 30; - item.value = CalamityGlobalItem.Rarity2BuyPrice; + item.value = Item.buyPrice(0, 1, 0, 0); item.rare = ItemRarityID.Green; item.useAnimation = 17; item.useTime = 17; diff --git a/Items/Potions/SunkenStew.cs b/Items/Potions/SunkenStew.cs index 879cfabf97..15de14a706 100644 --- a/Items/Potions/SunkenStew.cs +++ b/Items/Potions/SunkenStew.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Potions item.maxStack = 30; item.useAnimation = 17; item.useTime = 17; - item.value = CalamityGlobalItem.Rarity2BuyPrice; + item.value = Item.buyPrice(0, 2, 0, 0); item.rare = ItemRarityID.Green; item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; diff --git a/Items/Potions/TriumphPotion.cs b/Items/Potions/TriumphPotion.cs index 3140977192..66579d45b2 100644 --- a/Items/Potions/TriumphPotion.cs +++ b/Items/Potions/TriumphPotion.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Potions item.height = 18; item.useTurn = true; item.maxStack = 30; - item.value = CalamityGlobalItem.Rarity2BuyPrice; + item.value = Item.buyPrice(0, 2, 0, 0); item.rare = ItemRarityID.Green; item.useAnimation = 17; item.useTime = 17; diff --git a/Items/Potions/ZenPotion.cs b/Items/Potions/ZenPotion.cs index 1e49e9deae..2dbf837856 100644 --- a/Items/Potions/ZenPotion.cs +++ b/Items/Potions/ZenPotion.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.useAnimation = 17; item.useTime = 17; item.useStyle = ItemUseStyleID.EatingUsing; - item.value = CalamityGlobalItem.Rarity4BuyPrice; + item.value = Item.buyPrice(0, 2, 0, 0); item.rare = ItemRarityID.LightRed; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/ZergPotion.cs b/Items/Potions/ZergPotion.cs index 4bdcbdcf55..3a34465f6e 100644 --- a/Items/Potions/ZergPotion.cs +++ b/Items/Potions/ZergPotion.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.useAnimation = 17; item.useTime = 17; item.useStyle = ItemUseStyleID.EatingUsing; - item.value = CalamityGlobalItem.Rarity4BuyPrice; + item.value = Item.buyPrice(0, 2, 0, 0); item.rare = ItemRarityID.LightRed; item.consumable = true; item.buffType = ModContent.BuffType();