From 05bfa79fda069756700596850aa7f6fdf97c857f Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Tue, 7 May 2024 18:57:36 -0400 Subject: [PATCH] Fixed typo causing Gold Armor to always give its full boost, ruining the point. --- Items/VanillaArmorChanges/GoldArmorSetChange.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/VanillaArmorChanges/GoldArmorSetChange.cs b/Items/VanillaArmorChanges/GoldArmorSetChange.cs index 77a0cf4733..1cd9c38894 100644 --- a/Items/VanillaArmorChanges/GoldArmorSetChange.cs +++ b/Items/VanillaArmorChanges/GoldArmorSetChange.cs @@ -50,7 +50,7 @@ namespace CalamityMod.Items.VanillaArmorChanges // 13FEB2024: Ozzatron: this function doesn't cap at its second argument, it just stops counting if it exceeds that number // so this can give up to 100 gold coins int goldCoins = player.CountItem(ItemID.GoldCoin, 90); - critFromGold = Math.Max(goldCoins * SetBonusCritPerGoldCoin, MaximumCritBonus); + critFromGold = Math.Min(goldCoins * SetBonusCritPerGoldCoin, MaximumCritBonus); } player.GetCritChance() += critFromGold;