diff --git a/Items/Accessories/AbyssalDivingGear.png b/Items/Accessories/AbyssalDivingGear.png index a9fb6fc059..2897b4d488 100644 Binary files a/Items/Accessories/AbyssalDivingGear.png and b/Items/Accessories/AbyssalDivingGear.png differ diff --git a/Items/Accessories/AbyssalDivingGear_Face.png b/Items/Accessories/AbyssalDivingGear_Face.png index 4f71e2541b..1352a892c1 100644 Binary files a/Items/Accessories/AbyssalDivingGear_Face.png and b/Items/Accessories/AbyssalDivingGear_Face.png differ diff --git a/Items/Accessories/AbyssalDivingGear_Head.png b/Items/Accessories/AbyssalDivingGear_Head.png deleted file mode 100644 index 4f71e2541b..0000000000 Binary files a/Items/Accessories/AbyssalDivingGear_Head.png and /dev/null differ diff --git a/Items/Accessories/IronBoots.cs b/Items/Accessories/IronBoots.cs index 7c1cb8b66e..5f71a9b2ce 100644 --- a/Items/Accessories/IronBoots.cs +++ b/Items/Accessories/IronBoots.cs @@ -4,6 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { + [AutoloadEquip(EquipType.Shoes)] public class IronBoots : ModItem { public override void SetStaticDefaults() diff --git a/Items/Accessories/IronBoots.png b/Items/Accessories/IronBoots.png index 13da3613bb..e5bc7cc86f 100644 Binary files a/Items/Accessories/IronBoots.png and b/Items/Accessories/IronBoots.png differ diff --git a/Items/Accessories/IronBoots_Shoes.png b/Items/Accessories/IronBoots_Shoes.png new file mode 100644 index 0000000000..284ba02a33 Binary files /dev/null and b/Items/Accessories/IronBoots_Shoes.png differ diff --git a/Items/Accessories/LeadCore.png b/Items/Accessories/LeadCore.png index f5ed74b3ef..94fed45d82 100644 Binary files a/Items/Accessories/LeadCore.png and b/Items/Accessories/LeadCore.png differ diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index de15d652b9..c4803fe3c6 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -201,6 +201,7 @@ namespace CalamityMod.Items case ItemID.Gungnir: case ItemID.ObsidianSwordfish: case ItemID.MonkStaffT3: + case ItemID.MonkStaffT2: case ItemID.MonkStaffT1: trueMelee = true; break; diff --git a/NPCs/CalamityGlobalAI.cs b/NPCs/CalamityGlobalAI.cs index dca7f8f8f7..f01543a39e 100644 --- a/NPCs/CalamityGlobalAI.cs +++ b/NPCs/CalamityGlobalAI.cs @@ -4470,7 +4470,7 @@ namespace CalamityMod.NPCs else if (phase2) { damage += 2; - projectileType = ProjectileID.FrostBeam; + projectileType = ModContent.ProjectileType(); } } else diff --git a/Projectiles/Boss/DestroyerFrostLaser.cs b/Projectiles/Boss/DestroyerFrostLaser.cs new file mode 100644 index 0000000000..02ea888bdb --- /dev/null +++ b/Projectiles/Boss/DestroyerFrostLaser.cs @@ -0,0 +1,52 @@ +using Microsoft.Xna.Framework; +using System; +using System.IO; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Buffs.StatDebuffs; +namespace CalamityMod.Projectiles.Boss +{ + public class DestroyerFrostLaser : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Frost Laser"); + } + + public override void SetDefaults() + { + projectile.ignoreWater = true; + projectile.width = 4; + projectile.height = 4; + projectile.aiStyle = 1; + aiType = ProjectileID.FrostBeam; + projectile.hostile = true; + projectile.penetrate = -1; + projectile.light = 0.75f; + projectile.alpha = 255; + projectile.scale = 1.2f; + projectile.timeLeft = 600; + projectile.magic = true; + projectile.coldDamage = true; + projectile.extraUpdates = 1; + } + + public override Color? GetAlpha(Color lightColor) + { + if (projectile.alpha < 200) + { + return new Color(255 - projectile.alpha, 255 - projectile.alpha, 255 - projectile.alpha, 0); + } + return Color.Transparent; + } + + public override void OnHitPlayer(Player target, int damage, bool crit) + { + if (Main.rand.NextBool(5) && !target.Calamity().gState && !target.frozen && target.chilled) + target.AddBuff(ModContent.BuffType(), 20); + target.AddBuff(BuffID.Frostburn, 240); + target.AddBuff(BuffID.Chilled, 120); + } + } +} diff --git a/Projectiles/Boss/DestroyerFrostLaser.png b/Projectiles/Boss/DestroyerFrostLaser.png new file mode 100644 index 0000000000..513250dc91 Binary files /dev/null and b/Projectiles/Boss/DestroyerFrostLaser.png differ diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 2b581f296b..2f088a449f 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -87,6 +87,7 @@ namespace CalamityMod.Projectiles case ProjectileID.Gungnir: case ProjectileID.ObsidianSwordfish: case ProjectileID.MonkStaffT3: + case ProjectileID.MonkStaffT2: case ProjectileID.MonkStaffT1: trueMelee = true; break;