diff --git a/Items/Armor/Vanity/AshenHorns.cs b/Items/Armor/Vanity/AshenHorns.cs new file mode 100644 index 0000000000..ef4b0359fe --- /dev/null +++ b/Items/Armor/Vanity/AshenHorns.cs @@ -0,0 +1,24 @@ +using Terraria.ModLoader; +using Terraria.ID; + +namespace CalamityMod.Items.Armor.Vanity +{ + [AutoloadEquip(EquipType.Head)] + public class AshenHorns : ModItem + { + public override void SetStaticDefaults() => DisplayName.SetDefault("Ashen Horns"); + + public override void SetDefaults() + { + item.width = 28; + item.height = 20; + item.rare = ItemRarityID.Blue; + item.vanity = true; + } + + public override void DrawHair(ref bool drawHair, ref bool drawAltHair) + { + drawHair = true; + } + } +} diff --git a/Items/Armor/Vanity/AshenHorns.png b/Items/Armor/Vanity/AshenHorns.png new file mode 100644 index 0000000000..0085c11cf3 Binary files /dev/null and b/Items/Armor/Vanity/AshenHorns.png differ diff --git a/Items/Armor/Vanity/AshenHorns_Head.png b/Items/Armor/Vanity/AshenHorns_Head.png new file mode 100644 index 0000000000..12cc0083ee Binary files /dev/null and b/Items/Armor/Vanity/AshenHorns_Head.png differ diff --git a/Items/Armor/Vanity/SCalBoots.cs b/Items/Armor/Vanity/SCalBoots.cs new file mode 100644 index 0000000000..5557bb0bdc --- /dev/null +++ b/Items/Armor/Vanity/SCalBoots.cs @@ -0,0 +1,19 @@ +using Terraria.ModLoader; +using Terraria.ID; + +namespace CalamityMod.Items.Armor.Vanity +{ + [AutoloadEquip(EquipType.Legs)] + public class SCalBoots : ModItem + { + public override void SetStaticDefaults() => DisplayName.SetDefault("Calamitous Boots"); + + public override void SetDefaults() + { + item.width = 28; + item.height = 20; + item.rare = ItemRarityID.Blue; + item.vanity = true; + } + } +} diff --git a/Items/Armor/Vanity/SCalBoots.png b/Items/Armor/Vanity/SCalBoots.png new file mode 100644 index 0000000000..2c4283bcd3 Binary files /dev/null and b/Items/Armor/Vanity/SCalBoots.png differ diff --git a/Items/Armor/Vanity/SCalBoots_Legs.png b/Items/Armor/Vanity/SCalBoots_Legs.png new file mode 100644 index 0000000000..867d3c73ea Binary files /dev/null and b/Items/Armor/Vanity/SCalBoots_Legs.png differ diff --git a/Items/Armor/Vanity/SCalMask.cs b/Items/Armor/Vanity/SCalMask.cs new file mode 100644 index 0000000000..b5776465da --- /dev/null +++ b/Items/Armor/Vanity/SCalMask.cs @@ -0,0 +1,21 @@ +using Terraria.ModLoader; +using Terraria.ID; + +namespace CalamityMod.Items.Armor.Vanity +{ + [AutoloadEquip(EquipType.Head)] + public class SCalMask : ModItem + { + public override void SetStaticDefaults() => DisplayName.SetDefault("Calamitous Hood"); + + public override void SetDefaults() + { + item.width = 28; + item.height = 20; + item.rare = ItemRarityID.Blue; + item.vanity = true; + } + + public override bool DrawHead() => false; + } +} diff --git a/Items/Armor/Vanity/SCalMask.png b/Items/Armor/Vanity/SCalMask.png new file mode 100644 index 0000000000..bdb80ee25a Binary files /dev/null and b/Items/Armor/Vanity/SCalMask.png differ diff --git a/Items/Armor/Vanity/SCalMask_Head.png b/Items/Armor/Vanity/SCalMask_Head.png new file mode 100644 index 0000000000..818608cb43 Binary files /dev/null and b/Items/Armor/Vanity/SCalMask_Head.png differ diff --git a/Items/Armor/Vanity/SCalRobes.cs b/Items/Armor/Vanity/SCalRobes.cs new file mode 100644 index 0000000000..912ca647e9 --- /dev/null +++ b/Items/Armor/Vanity/SCalRobes.cs @@ -0,0 +1,19 @@ +using Terraria.ModLoader; +using Terraria.ID; + +namespace CalamityMod.Items.Armor.Vanity +{ + [AutoloadEquip(EquipType.Body)] + public class SCalRobes : ModItem + { + public override void SetStaticDefaults() => DisplayName.SetDefault("Calamitous Robes"); + + public override void SetDefaults() + { + item.width = 28; + item.height = 20; + item.rare = ItemRarityID.Blue; + item.vanity = true; + } + } +} diff --git a/Items/Armor/Vanity/SCalRobes.png b/Items/Armor/Vanity/SCalRobes.png new file mode 100644 index 0000000000..3ddf36518f Binary files /dev/null and b/Items/Armor/Vanity/SCalRobes.png differ diff --git a/Items/Armor/Vanity/SCalRobes_Arms.png b/Items/Armor/Vanity/SCalRobes_Arms.png new file mode 100644 index 0000000000..9e678c9974 Binary files /dev/null and b/Items/Armor/Vanity/SCalRobes_Arms.png differ diff --git a/Items/Armor/Vanity/SCalRobes_Body.png b/Items/Armor/Vanity/SCalRobes_Body.png new file mode 100644 index 0000000000..facccaeb4b Binary files /dev/null and b/Items/Armor/Vanity/SCalRobes_Body.png differ diff --git a/Items/TreasureBags/SCalBag.cs b/Items/TreasureBags/SCalBag.cs new file mode 100644 index 0000000000..0478b55c4a --- /dev/null +++ b/Items/TreasureBags/SCalBag.cs @@ -0,0 +1,66 @@ +using CalamityMod.Items.Accessories; +using CalamityMod.Items.Armor.Vanity; +using CalamityMod.Items.Pets; +using CalamityMod.Items.Weapons.Magic; +using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Summon; +using Terraria; +using Terraria.ModLoader; +using Terraria.ID; + +using SCalBoss = CalamityMod.NPCs.SupremeCalamitas.SupremeCalamitas; + +namespace CalamityMod.Items.TreasureBags +{ + public class SCalBag : ModItem + { + public override int BossBagNPC => ModContent.NPCType(); + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Treasure Coffer"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + + public override void SetDefaults() + { + item.maxStack = 999; + item.consumable = true; + item.width = 24; + item.height = 24; + item.rare = ItemRarityID.Purple; + item.expert = true; + } + + public override bool CanRightClick() => true; + + public override void OpenBossBag(Player player) + { + player.TryGettingDevArmor(); + + // Weapons + float w = DropHelper.BagWeaponDropRateFloat; + DropHelper.DropEntireWeightedSet(player, + DropHelper.WeightStack(w), + DropHelper.WeightStack(w), + DropHelper.WeightStack(w), + DropHelper.WeightStack(w), + DropHelper.WeightStack(w), + DropHelper.WeightStack(w) + ); + + // Equipment + DropHelper.DropItem(player, ModContent.ItemType()); + + // Vanity + if (Main.rand.NextBool(7)) + { + DropHelper.DropItem(player, ModContent.ItemType()); + DropHelper.DropItem(player, ModContent.ItemType()); + DropHelper.DropItem(player, ModContent.ItemType()); + DropHelper.DropItem(player, ModContent.ItemType()); + } + } + } +} diff --git a/Items/TreasureBags/SCalBag.png b/Items/TreasureBags/SCalBag.png new file mode 100644 index 0000000000..2fc6a926b0 Binary files /dev/null and b/Items/TreasureBags/SCalBag.png differ diff --git a/Items/Weapons/Summon/Perdition.cs b/Items/Weapons/Summon/Perdition.cs index ed08789e23..7bc6ada075 100644 --- a/Items/Weapons/Summon/Perdition.cs +++ b/Items/Weapons/Summon/Perdition.cs @@ -12,8 +12,7 @@ namespace CalamityMod.Items.Weapons.Summon { DisplayName.SetDefault("Perdition"); Tooltip.SetDefault("Summons a beacon at the position of the mouse\n" + - "When a target is manually selected via right click it releases torrents of souls from below onto the target\n" + - "The beacon does not move"); + "When a target is manually selected via right click it releases torrents of souls from below onto the target"); } public override void SetDefaults() diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 2a0af9787e..d7798bcc38 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -577,7 +577,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("SupremeCalamitas", out float order); int type = NPCType(); int summon = ItemType(); - List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use an [i:{summon}]"; string despawn = CalamityUtils.ColorMessage("Please don't waste my time.", new Color(0xFF, 0xA5, 0x00)); diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 8669ddac3f..d438591214 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -2,12 +2,14 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Events; using CalamityMod.Items.Accessories; +using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Potions; using CalamityMod.Items.Tools; +using CalamityMod.Items.TreasureBags; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -200,6 +202,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit1; music = CalamityMod.Instance.GetMusicFromMusicMod("SCG") ?? MusicID.Boss2; + bossBag = ModContent.ItemType(); } public override void BossHeadSlot(ref int index) @@ -2736,6 +2739,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas // Make the town NPC spawn. NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y + 12, ModContent.NPCType()); + DropHelper.DropBags(npc); + // Increase the player's SCal kill count if (Main.player[npc.target].Calamity().sCalKillCount < 5) Main.player[npc.target].Calamity().sCalKillCount++; @@ -2748,32 +2753,28 @@ namespace CalamityMod.NPCs.SupremeCalamitas int essenceMax = Main.expertMode ? 40 : 30; DropHelper.DropItem(npc, ModContent.ItemType(), true, essenceMin, essenceMax); - // Weapons - // Rejoice! Hybrid weapons are no more, so this list is no longer cluttered. - DropHelper.DropItemFromSetCondition(npc, true, Main.expertMode, - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), // Flamsteed Ring - ModContent.ItemType(), // Illustrious Knives - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), // Staff of Blushie - ModContent.ItemType(), - ModContent.ItemType(), // Temporal Umbrella - ModContent.ItemType(), // The Dance of Light - ModContent.ItemType(), - ModContent.ItemType() // Voidragon - ); - DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.expertMode, CalamityWorld.revenge); + if (!Main.expertMode) + { + // Weapons. + float w = DropHelper.NormalWeaponDropRateFloat; + DropHelper.DropEntireWeightedSet(npc, + DropHelper.WeightStack(w), + DropHelper.WeightStack(w), + DropHelper.WeightStack(w), + DropHelper.WeightStack(w), + DropHelper.WeightStack(w), + DropHelper.WeightStack(w) + ); + + // Vanity. + if (Main.rand.NextBool(7)) + { + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItem(npc, ModContent.ItemType()); + } + } // Vanity DropHelper.DropItem(npc, ModContent.ItemType(), Main.expertMode);