diff --git a/Items/Armor/Vanity/AncientGodSlayerChestplate.cs b/Items/Armor/Vanity/AncientGodSlayerChestplate.cs new file mode 100644 index 0000000000..c1f2a160e7 --- /dev/null +++ b/Items/Armor/Vanity/AncientGodSlayerChestplate.cs @@ -0,0 +1,22 @@ +using Terraria; +using Terraria.ModLoader; +namespace CalamityMod.Items.Armor.Vanity +{ + [AutoloadEquip(EquipType.Body)] + public class AncientGodSlayerChestplate : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Ancient God Slayer Chestplate"); + } + + public override void SetDefaults() + { + item.width = 28; + item.height = 20; + item.Calamity().customRarity = (CalamityRarity)14; + item.vanity = true; + item.value = Item.buyPrice(0, 60, 0, 0); + } + } +} diff --git a/Items/Armor/Vanity/AncientGodSlayerChestplate.png b/Items/Armor/Vanity/AncientGodSlayerChestplate.png new file mode 100644 index 0000000000..c7da0556f9 Binary files /dev/null and b/Items/Armor/Vanity/AncientGodSlayerChestplate.png differ diff --git a/Items/Armor/Vanity/AncientGodSlayerChestplate_Arms.png b/Items/Armor/Vanity/AncientGodSlayerChestplate_Arms.png new file mode 100644 index 0000000000..3b67923316 Binary files /dev/null and b/Items/Armor/Vanity/AncientGodSlayerChestplate_Arms.png differ diff --git a/Items/Armor/Vanity/AncientGodSlayerChestplate_Body.png b/Items/Armor/Vanity/AncientGodSlayerChestplate_Body.png new file mode 100644 index 0000000000..34caebddaa Binary files /dev/null and b/Items/Armor/Vanity/AncientGodSlayerChestplate_Body.png differ diff --git a/Items/Armor/Vanity/AncientGodSlayerChestplate_FemaleBody.png b/Items/Armor/Vanity/AncientGodSlayerChestplate_FemaleBody.png new file mode 100644 index 0000000000..7992b4d30a Binary files /dev/null and b/Items/Armor/Vanity/AncientGodSlayerChestplate_FemaleBody.png differ diff --git a/Items/Armor/Vanity/AncientGodSlayerHelm.cs b/Items/Armor/Vanity/AncientGodSlayerHelm.cs new file mode 100644 index 0000000000..a88e439438 --- /dev/null +++ b/Items/Armor/Vanity/AncientGodSlayerHelm.cs @@ -0,0 +1,32 @@ +using Terraria; +using Terraria.ModLoader; +namespace CalamityMod.Items.Armor.Vanity +{ + [AutoloadEquip(EquipType.Head)] + public class AncientGodSlayerHelm : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Ancient God Slayer Helm"); + } + + public override void SetDefaults() + { + item.width = 28; + item.height = 20; + item.Calamity().customRarity = (CalamityRarity)14; + item.value = Item.buyPrice(0, 75, 0, 0); + item.vanity = true; + } + + public override bool IsArmorSet(Item head, Item body, Item legs) + { + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); + } + + public override void ArmorSetShadows(Player player) + { + player.armorEffectDrawShadow = true; + } + } +} diff --git a/Items/Armor/Vanity/AncientGodSlayerHelm.png b/Items/Armor/Vanity/AncientGodSlayerHelm.png new file mode 100644 index 0000000000..95687a9e9a Binary files /dev/null and b/Items/Armor/Vanity/AncientGodSlayerHelm.png differ diff --git a/Items/Armor/Vanity/AncientGodSlayerHelm_Head.png b/Items/Armor/Vanity/AncientGodSlayerHelm_Head.png new file mode 100644 index 0000000000..2c96461a7c Binary files /dev/null and b/Items/Armor/Vanity/AncientGodSlayerHelm_Head.png differ diff --git a/Items/Armor/Vanity/AncientGodSlayerLeggings.cs b/Items/Armor/Vanity/AncientGodSlayerLeggings.cs new file mode 100644 index 0000000000..7058688781 --- /dev/null +++ b/Items/Armor/Vanity/AncientGodSlayerLeggings.cs @@ -0,0 +1,22 @@ +using Terraria; +using Terraria.ModLoader; +namespace CalamityMod.Items.Armor.Vanity +{ + [AutoloadEquip(EquipType.Legs)] + public class AncientGodSlayerLeggings : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Ancient God Slayer Leggings"); + } + + public override void SetDefaults() + { + item.width = 28; + item.height = 20; + item.Calamity().customRarity = (CalamityRarity)14; + item.value = Item.buyPrice(0, 45, 0, 0); + item.vanity = true; + } + } +} diff --git a/Items/Armor/Vanity/AncientGodSlayerLeggings.png b/Items/Armor/Vanity/AncientGodSlayerLeggings.png new file mode 100644 index 0000000000..87be871e83 Binary files /dev/null and b/Items/Armor/Vanity/AncientGodSlayerLeggings.png differ diff --git a/Items/Armor/Vanity/AncientGodSlayerLeggings_Legs.png b/Items/Armor/Vanity/AncientGodSlayerLeggings_Legs.png new file mode 100644 index 0000000000..cd7b2c6db3 Binary files /dev/null and b/Items/Armor/Vanity/AncientGodSlayerLeggings_Legs.png differ diff --git a/Items/Weapons/Rogue/IchorSpear.png b/Items/Weapons/Rogue/IchorSpear.png index 6c8e3be05f..e564266e89 100644 Binary files a/Items/Weapons/Rogue/IchorSpear.png and b/Items/Weapons/Rogue/IchorSpear.png differ diff --git a/NPCs/CeaselessVoid/CeaselessVoid.cs b/NPCs/CeaselessVoid/CeaselessVoid.cs index 74936e834e..0fa08a28e6 100644 --- a/NPCs/CeaselessVoid/CeaselessVoid.cs +++ b/NPCs/CeaselessVoid/CeaselessVoid.cs @@ -102,6 +102,12 @@ namespace CalamityMod.NPCs.CeaselessVoid // Vanity DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); + if (Main.rand.NextBool(20)) + { + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItem(npc, ModContent.ItemType()); + } // Other bool lastSentinelKilled = !CalamityWorld.downedSentinel1 && CalamityWorld.downedSentinel2 && CalamityWorld.downedSentinel3; diff --git a/NPCs/Signus/Signus.cs b/NPCs/Signus/Signus.cs index 3104d9ec74..96683ae9ce 100644 --- a/NPCs/Signus/Signus.cs +++ b/NPCs/Signus/Signus.cs @@ -757,6 +757,12 @@ namespace CalamityMod.NPCs.Signus // Vanity DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); + if (Main.rand.NextBool(20)) + { + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItem(npc, ModContent.ItemType()); + } // Other bool lastSentinelKilled = CalamityWorld.downedSentinel1 && CalamityWorld.downedSentinel2 && !CalamityWorld.downedSentinel3; diff --git a/NPCs/StormWeaver/StormWeaverHeadNaked.cs b/NPCs/StormWeaver/StormWeaverHeadNaked.cs index 44261b12fd..e0dc7a035d 100644 --- a/NPCs/StormWeaver/StormWeaverHeadNaked.cs +++ b/NPCs/StormWeaver/StormWeaverHeadNaked.cs @@ -624,6 +624,12 @@ namespace CalamityMod.NPCs.StormWeaver // Vanity DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); + if (Main.rand.NextBool(20)) + { + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItem(npc, ModContent.ItemType()); + } // Other bool lastSentinelKilled = CalamityWorld.downedSentinel1 && !CalamityWorld.downedSentinel2 && CalamityWorld.downedSentinel3; diff --git a/Projectiles/Rogue/IchorSpearProj.cs b/Projectiles/Rogue/IchorSpearProj.cs index 607bcc2111..f4ba6c88f5 100644 --- a/Projectiles/Rogue/IchorSpearProj.cs +++ b/Projectiles/Rogue/IchorSpearProj.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Rogue { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 246, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); } - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 2.355f; + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 0.785f; if (projectile.spriteDirection == -1) { projectile.rotation -= 1.57f; diff --git a/Projectiles/Rogue/IchorSpearProj.png b/Projectiles/Rogue/IchorSpearProj.png index 88bb1ebf5b..e564266e89 100644 Binary files a/Projectiles/Rogue/IchorSpearProj.png and b/Projectiles/Rogue/IchorSpearProj.png differ diff --git a/UI/BossHealthBarManager.cs b/UI/BossHealthBarManager.cs index 1b11466aa5..849db2c543 100644 --- a/UI/BossHealthBarManager.cs +++ b/UI/BossHealthBarManager.cs @@ -136,24 +136,12 @@ namespace CalamityMod.UI OneToMany[ModContent.NPCType()] = StarWorm; OneToMany[ModContent.NPCType()] = StarWorm; - int[] Cal = new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }; - OneToMany[ModContent.NPCType()] = Cal; - OneToMany[ModContent.NPCType()] = Cal; - OneToMany[ModContent.NPCType()] = Cal; - int[] Void = new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }; OneToMany[ModContent.NPCType()] = Void; OneToMany[ModContent.NPCType()] = Void; OneToMany[ModContent.NPCType()] = Void; OneToMany[ModContent.NPCType()] = Void; - int[] Perfs = new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), - ModContent.NPCType() }; - OneToMany[ModContent.NPCType()] = Perfs; - OneToMany[ModContent.NPCType()] = Perfs; - OneToMany[ModContent.NPCType()] = Perfs; - OneToMany[ModContent.NPCType()] = Perfs; - int[] Rav = new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }; OneToMany[ModContent.NPCType()] = Rav; @@ -243,6 +231,9 @@ namespace CalamityMod.UI //Prehardmode ModContent.NPCType(), + ModContent.NPCType(), + ModContent.NPCType(), + ModContent.NPCType() //Hardmode ModContent.NPCType(), @@ -250,6 +241,8 @@ namespace CalamityMod.UI ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), + ModContent.NPCType(), //Clone's brothers + ModContent.NPCType() //Abyss ModContent.NPCType(), @@ -453,9 +446,7 @@ namespace CalamityMod.UI enum SpecialType2 : byte { None, - Calam, Ceaseless, - Perforator, Ravage, SlimeCore } @@ -494,18 +485,10 @@ namespace CalamityMod.UI { _special2 = SpecialType2.Ravage; } - else if (type == ModContent.NPCType()) - { - _special2 = SpecialType2.Perforator; - } else if (type == ModContent.NPCType()) { _special2 = SpecialType2.Ceaseless; } - else if (type == ModContent.NPCType()) - { - _special2 = SpecialType2.Calam; - } else if (type == ModContent.NPCType()) { _special = SpecialType.Astrum; @@ -700,22 +683,11 @@ namespace CalamityMod.UI { default: break; - case SpecialType2.Calam: - int count = NPC.CountNPCS(ModContent.NPCType()) + - NPC.CountNPCS(ModContent.NPCType()); - _specialData2[0] = count; - break; case SpecialType2.Ceaseless: int count2 = NPC.CountNPCS(ModContent.NPCType()) + NPC.CountNPCS(ModContent.NPCType()) + NPC.CountNPCS(ModContent.NPCType()); - _specialData2[1] = count2; - break; - case SpecialType2.Perforator: - int count3 = NPC.CountNPCS(ModContent.NPCType()) + - NPC.CountNPCS(ModContent.NPCType()) + - NPC.CountNPCS(ModContent.NPCType()); - _specialData2[2] = count3; + _specialData2[0] = count; break; case SpecialType2.Ravage: int count4 = NPC.CountNPCS(ModContent.NPCType()) + @@ -723,14 +695,14 @@ namespace CalamityMod.UI NPC.CountNPCS(ModContent.NPCType()) + NPC.CountNPCS(ModContent.NPCType()) + NPC.CountNPCS(ModContent.NPCType()); - _specialData2[3] = count4; + _specialData2[1] = count3; break; case SpecialType2.SlimeCore: int count5 = NPC.CountNPCS(ModContent.NPCType()) + NPC.CountNPCS(ModContent.NPCType()) + NPC.CountNPCS(ModContent.NPCType()) + NPC.CountNPCS(ModContent.NPCType()); - _specialData2[4] = count5; + _specialData2[2] = count4; break; } } @@ -842,32 +814,20 @@ namespace CalamityMod.UI { default: break; - case SpecialType2.Calam: - string count = "(Brothers left: " + _specialData2[0] + ")"; - Vector2 countSize = Main.fontItemStack.MeasureString(count) * textScale; - float countX = Math.Max(x, x + mainBarWidth - countSize.X); - DrawBorderStringEightWay(sb, Main.fontItemStack, count, new Vector2(countX, y + MainBarYOffset + 17), Color.White, Color.Black * 0.24f, textScale); - return; case SpecialType2.Ceaseless: - string count2 = "(Dark Energy left: " + _specialData2[1] + ")"; + string count2 = "(Dark Energy left: " + _specialData2[0] + ")"; Vector2 countSize2 = Main.fontItemStack.MeasureString(count2) * textScale; float countX2 = Math.Max(x, x + mainBarWidth - countSize2.X); DrawBorderStringEightWay(sb, Main.fontItemStack, count2, new Vector2(countX2, y + MainBarYOffset + 17), Color.White, Color.Black * 0.24f, textScale); return; - case SpecialType2.Perforator: - string count3 = "(Worms left: " + _specialData2[2] + ")"; - Vector2 countSize3 = Main.fontItemStack.MeasureString(count3) * textScale; - float countX3 = Math.Max(x, x + mainBarWidth - countSize3.X); - DrawBorderStringEightWay(sb, Main.fontItemStack, count3, new Vector2(countX3, y + MainBarYOffset + 17), Color.White, Color.Black * 0.24f, textScale); - return; case SpecialType2.Ravage: - string count4 = "(Body Parts left: " + _specialData2[3] + ")"; + string count4 = "(Body Parts left: " + _specialData2[1] + ")"; Vector2 countSize4 = Main.fontItemStack.MeasureString(count4) * textScale; float countX4 = Math.Max(x, x + mainBarWidth - countSize4.X); DrawBorderStringEightWay(sb, Main.fontItemStack, count4, new Vector2(countX4, y + MainBarYOffset + 17), Color.White, Color.Black * 0.24f, textScale); return; case SpecialType2.SlimeCore: - string count5 = "(Large Slimes left: " + _specialData2[4] + ")"; + string count5 = "(Large Slimes left: " + _specialData2[2] + ")"; Vector2 countSize5 = Main.fontItemStack.MeasureString(count5) * textScale; float countX5 = Math.Max(x, x + mainBarWidth - countSize5.X); DrawBorderStringEightWay(sb, Main.fontItemStack, count5, new Vector2(countX5, y + MainBarYOffset + 17), Color.White, Color.Black * 0.24f, textScale); @@ -974,36 +934,22 @@ namespace CalamityMod.UI { default: break; - case SpecialType2.Calam: - string count = "(Brothers left: " + _specialData2[0] + ")"; - Vector2 countSize = Main.fontItemStack.MeasureString(count) * textScale; - float countX = Math.Max(x, x + mainBarWidth - countSize.X); - DrawBorderStringEightWay(sb, Main.fontItemStack, count, new Vector2(countX, y + MainBarYOffset + 17), Color.White * flickerValue, Color.Black * 0.24f * flickerValue, textScale); - _openAnimCounter--; - return; case SpecialType2.Ceaseless: - string count2 = "(Dark Energy left: " + _specialData2[1] + ")"; + string count2 = "(Dark Energy left: " + _specialData2[0] + ")"; Vector2 countSize2 = Main.fontItemStack.MeasureString(count2) * textScale; float countX2 = Math.Max(x, x + mainBarWidth - countSize2.X); DrawBorderStringEightWay(sb, Main.fontItemStack, count2, new Vector2(countX2, y + MainBarYOffset + 17), Color.White * flickerValue, Color.Black * 0.24f * flickerValue, textScale); _openAnimCounter--; return; - case SpecialType2.Perforator: - string count3 = "(Worms left: " + _specialData2[2] + ")"; - Vector2 countSize3 = Main.fontItemStack.MeasureString(count3) * textScale; - float countX3 = Math.Max(x, x + mainBarWidth - countSize3.X); - DrawBorderStringEightWay(sb, Main.fontItemStack, count3, new Vector2(countX3, y + MainBarYOffset + 17), Color.White * flickerValue, Color.Black * 0.24f * flickerValue, textScale); - _openAnimCounter--; - return; case SpecialType2.Ravage: - string count4 = "(Body Parts left: " + _specialData2[3] + ")"; + string count4 = "(Body Parts left: " + _specialData2[1] + ")"; Vector2 countSize4 = Main.fontItemStack.MeasureString(count4) * textScale; float countX4 = Math.Max(x, x + mainBarWidth - countSize4.X); DrawBorderStringEightWay(sb, Main.fontItemStack, count4, new Vector2(countX4, y + MainBarYOffset + 17), Color.White * flickerValue, Color.Black * 0.24f * flickerValue, textScale); _openAnimCounter--; return; case SpecialType2.SlimeCore: - string count5 = "(Large Slimes left: " + _specialData2[4] + ")"; + string count5 = "(Large Slimes left: " + _specialData2[2] + ")"; Vector2 countSize5 = Main.fontItemStack.MeasureString(count5) * textScale; float countX5 = Math.Max(x, x + mainBarWidth - countSize5.X); DrawBorderStringEightWay(sb, Main.fontItemStack, count5, new Vector2(countX5, y + MainBarYOffset + 17), Color.White * flickerValue, Color.Black * 0.24f * flickerValue, textScale);