This commit is contained in:
Andrew Marheine committed 2021-12-06 01:56:54 -06:00
commit 315d05bd76
1 file changed
+4
+4
View File
@@ -198,6 +198,10 @@ namespace CalamityMod.DataStructures
public void PlayerOnHitEffects(int hitDamage)
{
// Don't do anything if the player is not wearing the Gem Tech set.
if (!Owner.Calamity().GemTechSet)
return;
bool gemWasLost = false;
int gemDamage = 0;
if (hitDamage >= GemTechHeadgear.GemBreakDamageLowerBound)