Fixed typo causing Gold Armor to always give its full boost, ruining the point.
This commit is contained in:
1 parent
9223a5278e
commit
05bfa79fda
1 file changed
+1
-1
@@ -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<GenericDamageClass>() += critFromGold;
|
||||
|
||||
Reference in new issue
Block a user