diff --git a/ModSupport/ModCalls.cs b/ModSupport/ModCalls.cs index b18b363fb9..35349c9fad 100644 --- a/ModSupport/ModCalls.cs +++ b/ModSupport/ModCalls.cs @@ -1335,7 +1335,7 @@ namespace CalamityMod #region Item Rarity public static bool SetCalamityRarity(Item item, int rarityNum) { - CalamityGlobalItem cgi = item.GetGlobalItem(); + CalamityGlobalItem cgi = item.Calamity(); cgi.customRarity = (CalamityRarity)rarityNum; return cgi.customRarity != CalamityRarity.NoEffect; } @@ -1663,6 +1663,7 @@ namespace CalamityMod Item item = (Item)args[1]; int rarity = (int)args[2]; return SetCalamityRarity(item, rarity); + case "AbominationnClearEvents": bool eventActive = CalamityWorld.rainingAcid; bool canClear = Convert.ToBoolean(args[1]); //This is to indicate whether abomm is able to clear the event due to a cooldown @@ -1673,6 +1674,7 @@ namespace CalamityMod AcidRainEvent.UpdateInvasion(false); } return eventActive; + default: return new ArgumentException("ERROR: Invalid method name."); } diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index a507492d2a..98f712662a 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -3435,6 +3435,10 @@ namespace CalamityMod.NPCs { damage = (int)(damage * 0.75); } + else if (projectile.type == ModContent.ProjectileType()) + { + damage = (int)(damage * 0.5); + } else if (projectile.type == ModContent.ProjectileType()) { damage /= 3; @@ -3446,7 +3450,7 @@ namespace CalamityMod.NPCs else if (projectile.type == ModContent.ProjectileType()) { if (projectile.penetrate == -1) - projectile.penetrate = 5; + projectile.penetrate = 4; damage = (int)(damage * 0.1); } } @@ -3457,13 +3461,17 @@ namespace CalamityMod.NPCs damage = (int)(damage * 0.5); } if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType()) + { + damage = (int)(damage * 0.5); + } + else if (projectile.type == ModContent.ProjectileType()) { damage = (int)(damage * 0.5); } else if (projectile.type == ModContent.ProjectileType()) { if (projectile.penetrate == -1) - projectile.penetrate = 5; + projectile.penetrate = 4; damage = (int)(damage * 0.1); } } diff --git a/Projectiles/Melee/ProfanedSwordProj.cs b/Projectiles/Melee/ProfanedSwordProj.cs index 9fd95f3e9d..2bc87ddb94 100644 --- a/Projectiles/Melee/ProfanedSwordProj.cs +++ b/Projectiles/Melee/ProfanedSwordProj.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Projectiles.Melee projectile.width = 10; projectile.height = 10; projectile.friendly = true; - projectile.penetrate = 5; + projectile.penetrate = 4; projectile.aiStyle = 113; projectile.timeLeft = 600; aiType = ProjectileID.BoneJavelin;