From ebeedbe9ea56e652b5541f7a99c57ffaef70674c Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 22 Jan 2023 15:53:55 -0500 Subject: [PATCH 01/12] 1 - Revamped lore items to hold shift to expand for full lore. Thanks Iban and Memes 2 - All current lore items internally renamed and recoded to use the new mechanics. 3 - All currently-finished lore items are fully implemented. 4 - Currently-unfinished lore items say so as their lore. These will be filled in later. 5 - Added a string utility which quickly colors strings the Terraria way. --- CalamityLists.cs | 8 +- Items/LoreItems/KnowledgeAquaticScourge.cs | 80 --------- Items/LoreItems/KnowledgeAstrumAureus.cs | 41 ----- Items/LoreItems/KnowledgeAstrumDeus.cs | 41 ----- Items/LoreItems/KnowledgeBrimstoneCrag.cs | 41 ----- .../LoreItems/KnowledgeBrimstoneElemental.cs | 41 ----- Items/LoreItems/KnowledgeCryogen.cs | 41 ----- Items/LoreItems/KnowledgeDesertScourge.cs | 42 ----- Items/LoreItems/KnowledgeDestroyer.cs | 40 ----- Items/LoreItems/KnowledgeDragonfolly.cs | 42 ----- Items/LoreItems/KnowledgeGolem.cs | 40 ----- Items/LoreItems/KnowledgeLunaticCultist.cs | 41 ----- Items/LoreItems/KnowledgeMoonLord.cs | 41 ----- Items/LoreItems/KnowledgePerforators.cs | 40 ----- .../KnowledgePlaguebringerGoliath.cs | 41 ----- Items/LoreItems/KnowledgePlantera.cs | 41 ----- Items/LoreItems/KnowledgePolterghast.cs | 42 ----- Items/LoreItems/KnowledgeProfanedGuardians.cs | 42 ----- Items/LoreItems/KnowledgeProvidence.cs | 42 ----- Items/LoreItems/KnowledgeRavager.cs | 41 ----- Items/LoreItems/KnowledgeSkeletronPrime.cs | 40 ----- Items/LoreItems/KnowledgeSulphurSea.cs | 38 ---- Items/LoreItems/KnowledgeWallofFlesh.cs | 41 ----- Items/LoreItems/LoreAquaticScourge.cs | 40 +++++ ...aticScourge.png => LoreAquaticScourge.png} | Bin Items/LoreItems/LoreArchmage.cs | 41 +++++ ...{KnowledgeCryogen.png => LoreArchmage.png} | Bin Items/LoreItems/LoreAstrumAureus.cs | 41 +++++ ...eAstrumAureus.png => LoreAstrumAureus.png} | Bin Items/LoreItems/LoreAstrumDeus.cs | 41 +++++ ...ledgeAstrumDeus.png => LoreAstrumDeus.png} | Bin Items/LoreItems/LoreAzafure.cs | 40 +++++ ...ledgeBrimstoneCrag.png => LoreAzafure.png} | Bin ...rainofCthulhu.cs => LoreBrainofCthulhu.cs} | 27 ++- ...inofCthulhu.png => LoreBrainofCthulhu.png} | Bin Items/LoreItems/LoreBrimstoneElemental.cs | 42 +++++ ...emental.png => LoreBrimstoneElemental.png} | Bin ...KnowledgeCalamitas.cs => LoreCalamitas.cs} | 19 +- ...owledgeCalamitas.png => LoreCalamitas.png} | Bin ...alamitasClone.cs => LoreCalamitasClone.cs} | 23 ++- ...amitasClone.png => LoreCalamitasClone.png} | Bin ...owledgeCorruption.cs => LoreCorruption.cs} | 21 +-- ...ledgeCorruption.png => LoreCorruption.png} | Bin .../{KnowledgeCrabulon.cs => LoreCrabulon.cs} | 22 ++- ...KnowledgeCrabulon.png => LoreCrabulon.png} | Bin .../{KnowledgeCrimson.cs => LoreCrimson.cs} | 21 +-- .../{KnowledgeCrimson.png => LoreCrimson.png} | Bin Items/LoreItems/LoreDesertScourge.cs | 38 ++++ ...esertScourge.png => LoreDesertScourge.png} | Bin Items/LoreItems/LoreDestroyer.cs | 40 +++++ ...owledgeDestroyer.png => LoreDestroyer.png} | Bin ...evourerofGods.cs => LoreDevourerofGods.cs} | 18 +- ...ourerofGods.png => LoreDevourerofGods.png} | Bin Items/LoreItems/LoreDragonfolly.cs | 42 +++++ ...dgeDragonfolly.png => LoreDragonfolly.png} | Bin ...ledgeDukeFishron.cs => LoreDukeFishron.cs} | 23 ++- ...dgeDukeFishron.png => LoreDukeFishron.png} | Bin ...eEaterofWorlds.cs => LoreEaterofWorlds.cs} | 22 ++- ...aterofWorlds.png => LoreEaterofWorlds.png} | Bin .../{KnowledgeExoMechs.cs => LoreExoMechs.cs} | 15 +- ...KnowledgeExoMechs.png => LoreExoMechs.png} | Bin ...dgeEyeofCthulhu.cs => LoreEyeofCthulhu.cs} | 21 +-- ...eEyeofCthulhu.png => LoreEyeofCthulhu.png} | Bin Items/LoreItems/LoreGolem.cs | 40 +++++ .../{KnowledgeGolem.png => LoreGolem.png} | Bin .../{KnowledgeHiveMind.cs => LoreHiveMind.cs} | 22 ++- ...KnowledgeHiveMind.png => LoreHiveMind.png} | Bin Items/LoreItems/LoreItem.cs | 72 +++++++- ...KnowledgeKingSlime.cs => LoreKingSlime.cs} | 21 +-- ...owledgeKingSlime.png => LoreKingSlime.png} | Bin ...thanAnahita.cs => LoreLeviathanAnahita.cs} | 25 ++- ...anAnahita.png => LoreLeviathanAnahita.png} | Bin .../{KnowledgeMechs.cs => LoreMechs.cs} | 24 +-- .../{KnowledgeMechs.png => LoreMechs.png} | Bin .../{KnowledgeOldDuke.cs => LoreOldDuke.cs} | 20 +-- .../{KnowledgeOldDuke.png => LoreOldDuke.png} | Bin Items/LoreItems/LorePerforators.cs | 39 +++++ ...dgePerforators.png => LorePerforators.png} | Bin Items/LoreItems/LorePlaguebringerGoliath.cs | 42 +++++ ...liath.png => LorePlaguebringerGoliath.png} | Bin Items/LoreItems/LorePlantera.cs | 42 +++++ ...KnowledgePlantera.png => LorePlantera.png} | Bin Items/LoreItems/LorePolterghast.cs | 44 +++++ ...dgePolterghast.png => LorePolterghast.png} | Bin Items/LoreItems/LorePrelude.cs | 42 +++++ ...edgeLunaticCultist.png => LorePrelude.png} | Bin Items/LoreItems/LoreProfanedGuardians.cs | 40 +++++ ...uardians.png => LoreProfanedGuardians.png} | Bin Items/LoreItems/LoreProvidence.cs | 43 +++++ ...ledgeProvidence.png => LoreProvidence.png} | Bin .../{KnowledgeQueenBee.cs => LoreQueenBee.cs} | 21 ++- ...KnowledgeQueenBee.png => LoreQueenBee.png} | Bin Items/LoreItems/LoreRavager.cs | 42 +++++ .../{KnowledgeRavager.png => LoreRavager.png} | Bin Items/LoreItems/LoreRequiem.cs | 43 +++++ ...{KnowledgeMoonLord.png => LoreRequiem.png} | Bin ...KnowledgeSkeletron.cs => LoreSkeletron.cs} | 22 ++- ...owledgeSkeletron.png => LoreSkeletron.png} | Bin Items/LoreItems/LoreSkeletronPrime.cs | 39 +++++ ...letronPrime.png => LoreSkeletronPrime.png} | Bin .../{KnowledgeSlimeGod.cs => LoreSlimeGod.cs} | 23 ++- ...KnowledgeSlimeGod.png => LoreSlimeGod.png} | Bin Items/LoreItems/LoreSulphurSea.cs | 40 +++++ ...ledgeSulphurSea.png => LoreSulphurSea.png} | Bin .../{KnowledgeTwins.cs => LoreTwins.cs} | 24 +-- .../{KnowledgeTwins.png => LoreTwins.png} | Bin ...owledgeUnderworld.cs => LoreUnderworld.cs} | 23 ++- ...ledgeUnderworld.png => LoreUnderworld.png} | Bin Items/LoreItems/LoreWallofFlesh.cs | 40 +++++ ...dgeWallofFlesh.png => LoreWallofFlesh.png} | Bin .../{KnowledgeYharon.cs => LoreYharon.cs} | 20 +-- .../{KnowledgeYharon.png => LoreYharon.png} | Bin ModSupport/WeakReferenceSupport.cs | 164 +++++++++--------- NPCs/AquaticScourge/AquaticScourgeHead.cs | 4 +- NPCs/AstrumAureus/AstrumAureus.cs | 2 +- NPCs/AstrumDeus/AstrumDeusHead.cs | 2 +- NPCs/BrimstoneElemental/BrimstoneElemental.cs | 2 +- NPCs/Bumblebirb/Bumblefuck.cs | 2 +- NPCs/Calamitas/CalamitasClone.cs | 2 +- NPCs/CalamityGlobalNPCLoot.cs | 50 +++--- NPCs/Crabulon/Crabulon.cs | 2 +- NPCs/Cryogen/Cryogen.cs | 2 +- NPCs/DesertScourge/DesertScourgeHead.cs | 2 +- NPCs/DevourerofGods/DevourerofGodsHead.cs | 2 +- NPCs/ExoMechs/Ares/AresBody.cs | 2 +- NPCs/HiveMind/HiveMind.cs | 2 +- NPCs/Leviathan/Leviathan.cs | 2 +- NPCs/OldDuke/OldDuke.cs | 2 +- NPCs/Perforator/PerforatorHive.cs | 2 +- .../PlaguebringerGoliath.cs | 2 +- NPCs/Polterghast/Polterghast.cs | 2 +- .../ProfanedGuardianCommander.cs | 2 +- NPCs/Providence/Providence.cs | 2 +- NPCs/Ravager/RavagerBody.cs | 2 +- NPCs/SlimeGod/SlimeGodCore.cs | 2 +- NPCs/SupremeCalamitas/SupremeCalamitas.cs | 2 +- NPCs/Yharon/Yharon.cs | 2 +- Utilities/StringUtils.cs | 18 +- 138 files changed, 1329 insertions(+), 1348 deletions(-) delete mode 100644 Items/LoreItems/KnowledgeAquaticScourge.cs delete mode 100644 Items/LoreItems/KnowledgeAstrumAureus.cs delete mode 100644 Items/LoreItems/KnowledgeAstrumDeus.cs delete mode 100644 Items/LoreItems/KnowledgeBrimstoneCrag.cs delete mode 100644 Items/LoreItems/KnowledgeBrimstoneElemental.cs delete mode 100644 Items/LoreItems/KnowledgeCryogen.cs delete mode 100644 Items/LoreItems/KnowledgeDesertScourge.cs delete mode 100644 Items/LoreItems/KnowledgeDestroyer.cs delete mode 100644 Items/LoreItems/KnowledgeDragonfolly.cs delete mode 100644 Items/LoreItems/KnowledgeGolem.cs delete mode 100644 Items/LoreItems/KnowledgeLunaticCultist.cs delete mode 100644 Items/LoreItems/KnowledgeMoonLord.cs delete mode 100644 Items/LoreItems/KnowledgePerforators.cs delete mode 100644 Items/LoreItems/KnowledgePlaguebringerGoliath.cs delete mode 100644 Items/LoreItems/KnowledgePlantera.cs delete mode 100644 Items/LoreItems/KnowledgePolterghast.cs delete mode 100644 Items/LoreItems/KnowledgeProfanedGuardians.cs delete mode 100644 Items/LoreItems/KnowledgeProvidence.cs delete mode 100644 Items/LoreItems/KnowledgeRavager.cs delete mode 100644 Items/LoreItems/KnowledgeSkeletronPrime.cs delete mode 100644 Items/LoreItems/KnowledgeSulphurSea.cs delete mode 100644 Items/LoreItems/KnowledgeWallofFlesh.cs create mode 100644 Items/LoreItems/LoreAquaticScourge.cs rename Items/LoreItems/{KnowledgeAquaticScourge.png => LoreAquaticScourge.png} (100%) create mode 100644 Items/LoreItems/LoreArchmage.cs rename Items/LoreItems/{KnowledgeCryogen.png => LoreArchmage.png} (100%) create mode 100644 Items/LoreItems/LoreAstrumAureus.cs rename Items/LoreItems/{KnowledgeAstrumAureus.png => LoreAstrumAureus.png} (100%) create mode 100644 Items/LoreItems/LoreAstrumDeus.cs rename Items/LoreItems/{KnowledgeAstrumDeus.png => LoreAstrumDeus.png} (100%) create mode 100644 Items/LoreItems/LoreAzafure.cs rename Items/LoreItems/{KnowledgeBrimstoneCrag.png => LoreAzafure.png} (100%) rename Items/LoreItems/{KnowledgeBrainofCthulhu.cs => LoreBrainofCthulhu.cs} (50%) rename Items/LoreItems/{KnowledgeBrainofCthulhu.png => LoreBrainofCthulhu.png} (100%) create mode 100644 Items/LoreItems/LoreBrimstoneElemental.cs rename Items/LoreItems/{KnowledgeBrimstoneElemental.png => LoreBrimstoneElemental.png} (100%) rename Items/LoreItems/{KnowledgeCalamitas.cs => LoreCalamitas.cs} (54%) rename Items/LoreItems/{KnowledgeCalamitas.png => LoreCalamitas.png} (100%) rename Items/LoreItems/{KnowledgeCalamitasClone.cs => LoreCalamitasClone.cs} (52%) rename Items/LoreItems/{KnowledgeCalamitasClone.png => LoreCalamitasClone.png} (100%) rename Items/LoreItems/{KnowledgeCorruption.cs => LoreCorruption.cs} (53%) rename Items/LoreItems/{KnowledgeCorruption.png => LoreCorruption.png} (100%) rename Items/LoreItems/{KnowledgeCrabulon.cs => LoreCrabulon.cs} (56%) rename Items/LoreItems/{KnowledgeCrabulon.png => LoreCrabulon.png} (100%) rename Items/LoreItems/{KnowledgeCrimson.cs => LoreCrimson.cs} (54%) rename Items/LoreItems/{KnowledgeCrimson.png => LoreCrimson.png} (100%) create mode 100644 Items/LoreItems/LoreDesertScourge.cs rename Items/LoreItems/{KnowledgeDesertScourge.png => LoreDesertScourge.png} (100%) create mode 100644 Items/LoreItems/LoreDestroyer.cs rename Items/LoreItems/{KnowledgeDestroyer.png => LoreDestroyer.png} (100%) rename Items/LoreItems/{KnowledgeDevourerofGods.cs => LoreDevourerofGods.cs} (52%) rename Items/LoreItems/{KnowledgeDevourerofGods.png => LoreDevourerofGods.png} (100%) create mode 100644 Items/LoreItems/LoreDragonfolly.cs rename Items/LoreItems/{KnowledgeDragonfolly.png => LoreDragonfolly.png} (100%) rename Items/LoreItems/{KnowledgeDukeFishron.cs => LoreDukeFishron.cs} (50%) rename Items/LoreItems/{KnowledgeDukeFishron.png => LoreDukeFishron.png} (100%) rename Items/LoreItems/{KnowledgeEaterofWorlds.cs => LoreEaterofWorlds.cs} (55%) rename Items/LoreItems/{KnowledgeEaterofWorlds.png => LoreEaterofWorlds.png} (100%) rename Items/LoreItems/{KnowledgeExoMechs.cs => LoreExoMechs.cs} (67%) rename Items/LoreItems/{KnowledgeExoMechs.png => LoreExoMechs.png} (100%) rename Items/LoreItems/{KnowledgeEyeofCthulhu.cs => LoreEyeofCthulhu.cs} (57%) rename Items/LoreItems/{KnowledgeEyeofCthulhu.png => LoreEyeofCthulhu.png} (100%) create mode 100644 Items/LoreItems/LoreGolem.cs rename Items/LoreItems/{KnowledgeGolem.png => LoreGolem.png} (100%) rename Items/LoreItems/{KnowledgeHiveMind.cs => LoreHiveMind.cs} (50%) rename Items/LoreItems/{KnowledgeHiveMind.png => LoreHiveMind.png} (100%) rename Items/LoreItems/{KnowledgeKingSlime.cs => LoreKingSlime.cs} (57%) rename Items/LoreItems/{KnowledgeKingSlime.png => LoreKingSlime.png} (100%) rename Items/LoreItems/{KnowledgeLeviathanAnahita.cs => LoreLeviathanAnahita.cs} (51%) rename Items/LoreItems/{KnowledgeLeviathanAnahita.png => LoreLeviathanAnahita.png} (100%) rename Items/LoreItems/{KnowledgeMechs.cs => LoreMechs.cs} (59%) rename Items/LoreItems/{KnowledgeMechs.png => LoreMechs.png} (100%) rename Items/LoreItems/{KnowledgeOldDuke.cs => LoreOldDuke.cs} (51%) rename Items/LoreItems/{KnowledgeOldDuke.png => LoreOldDuke.png} (100%) create mode 100644 Items/LoreItems/LorePerforators.cs rename Items/LoreItems/{KnowledgePerforators.png => LorePerforators.png} (100%) create mode 100644 Items/LoreItems/LorePlaguebringerGoliath.cs rename Items/LoreItems/{KnowledgePlaguebringerGoliath.png => LorePlaguebringerGoliath.png} (100%) create mode 100644 Items/LoreItems/LorePlantera.cs rename Items/LoreItems/{KnowledgePlantera.png => LorePlantera.png} (100%) create mode 100644 Items/LoreItems/LorePolterghast.cs rename Items/LoreItems/{KnowledgePolterghast.png => LorePolterghast.png} (100%) create mode 100644 Items/LoreItems/LorePrelude.cs rename Items/LoreItems/{KnowledgeLunaticCultist.png => LorePrelude.png} (100%) create mode 100644 Items/LoreItems/LoreProfanedGuardians.cs rename Items/LoreItems/{KnowledgeProfanedGuardians.png => LoreProfanedGuardians.png} (100%) create mode 100644 Items/LoreItems/LoreProvidence.cs rename Items/LoreItems/{KnowledgeProvidence.png => LoreProvidence.png} (100%) rename Items/LoreItems/{KnowledgeQueenBee.cs => LoreQueenBee.cs} (51%) rename Items/LoreItems/{KnowledgeQueenBee.png => LoreQueenBee.png} (100%) create mode 100644 Items/LoreItems/LoreRavager.cs rename Items/LoreItems/{KnowledgeRavager.png => LoreRavager.png} (100%) create mode 100644 Items/LoreItems/LoreRequiem.cs rename Items/LoreItems/{KnowledgeMoonLord.png => LoreRequiem.png} (100%) rename Items/LoreItems/{KnowledgeSkeletron.cs => LoreSkeletron.cs} (52%) rename Items/LoreItems/{KnowledgeSkeletron.png => LoreSkeletron.png} (100%) create mode 100644 Items/LoreItems/LoreSkeletronPrime.cs rename Items/LoreItems/{KnowledgeSkeletronPrime.png => LoreSkeletronPrime.png} (100%) rename Items/LoreItems/{KnowledgeSlimeGod.cs => LoreSlimeGod.cs} (50%) rename Items/LoreItems/{KnowledgeSlimeGod.png => LoreSlimeGod.png} (100%) create mode 100644 Items/LoreItems/LoreSulphurSea.cs rename Items/LoreItems/{KnowledgeSulphurSea.png => LoreSulphurSea.png} (100%) rename Items/LoreItems/{KnowledgeTwins.cs => LoreTwins.cs} (55%) rename Items/LoreItems/{KnowledgeTwins.png => LoreTwins.png} (100%) rename Items/LoreItems/{KnowledgeUnderworld.cs => LoreUnderworld.cs} (51%) rename Items/LoreItems/{KnowledgeUnderworld.png => LoreUnderworld.png} (100%) create mode 100644 Items/LoreItems/LoreWallofFlesh.cs rename Items/LoreItems/{KnowledgeWallofFlesh.png => LoreWallofFlesh.png} (100%) rename Items/LoreItems/{KnowledgeYharon.cs => LoreYharon.cs} (50%) rename Items/LoreItems/{KnowledgeYharon.png => LoreYharon.png} (100%) diff --git a/CalamityLists.cs b/CalamityLists.cs index b7e18da23a..0c1581bc14 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -1363,11 +1363,11 @@ namespace CalamityMod ItemType(), ItemType(), ItemType(), - ItemType(), - ItemType(), - ItemType(), + ItemType(), + ItemType(), + ItemType(), ItemType(), - ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), diff --git a/Items/LoreItems/KnowledgeAquaticScourge.cs b/Items/LoreItems/KnowledgeAquaticScourge.cs deleted file mode 100644 index 8a1bfa0b5e..0000000000 --- a/Items/LoreItems/KnowledgeAquaticScourge.cs +++ /dev/null @@ -1,80 +0,0 @@ -using System.Collections.Generic; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -// Make sure to have these 2 directives for all Lore Items. -using Microsoft.Xna.Framework; -using static Microsoft.Xna.Framework.Input.Keys; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeAquaticScourge : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Aquatic Scourge"); - Tooltip.SetDefault("[c/7FFFD4:Whispers echo in your ears...]\n" + "[c/BEBEBE:Press \"Left Shift\" to listen closer...]"); - // The color of the text that will be shown when Left Shift is pressed and then BEBEBE is a gray color. - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 38; - Item.height = 26; - Item.rare = ItemRarityID.Pink; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - - public override void ModifyTooltips(List tooltips) - // For Lore Items, you copy whatever this line is and you input the text and color below. - { - if (Main.keyState.IsKeyDown(LeftShift)) - { - int tooltipIndex = -1; - int tooltipCount = 0; - - for (int i = 0; i < tooltips.Count; i++) - { - if (tooltips[i].Name.StartsWith("Tooltip")) - { - if (tooltipIndex == -1) - tooltipIndex = i; - - tooltipCount++; - } - } - - if (tooltipIndex != -1) - { - tooltips.RemoveRange(tooltipIndex, tooltipCount); - - TooltipLine extendedLore = new TooltipLine(Mod, "CalamityMod:HiddenTooltip", - "Another once grand sea serpent, well-adapted to its harsh environs.\n" + - "Unlike the other Scourge, which was half starved and chasing scraps for its next meal, it lived comfortably.\n" + - "Microorganisms evolve rapidly, so it was able to maintain its filter feeding habits as the sea putrefied.\n" + - "What a stark contrast to the rest of the ecosystem. Nearly every other creature in the Sulphur Sea is hostile.\n" + - "A shame that its last bastion of tranquility has fallen."); - extendedLore.OverrideColor = new Color(127, 255, 212); // The color of the text shown when Left Shift is pressed. - tooltips.Insert(tooltipIndex, extendedLore); - } - } - } - } -} diff --git a/Items/LoreItems/KnowledgeAstrumAureus.cs b/Items/LoreItems/KnowledgeAstrumAureus.cs deleted file mode 100644 index 1543ce0f25..0000000000 --- a/Items/LoreItems/KnowledgeAstrumAureus.cs +++ /dev/null @@ -1,41 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeAstrumAureus : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Astrum Aureus"); - Tooltip.SetDefault("A titanic cyborg infected by a star-borne disease expelled from the belly of an ancient god.\n" + - "The destruction of this creature will not prevent the spread of the disease."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Lime; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeAstrumDeus.cs b/Items/LoreItems/KnowledgeAstrumDeus.cs deleted file mode 100644 index 1627e5d83d..0000000000 --- a/Items/LoreItems/KnowledgeAstrumDeus.cs +++ /dev/null @@ -1,41 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeAstrumDeus : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Astrum Deus"); - Tooltip.SetDefault("God of the stars and largest vessel for the Astral Infection.\n" + - "Though struck down from its place among the stars its remnants have gathered strength, aiming to take its rightful place in the cosmos once more."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Cyan; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeBrimstoneCrag.cs b/Items/LoreItems/KnowledgeBrimstoneCrag.cs deleted file mode 100644 index 8781a4986b..0000000000 --- a/Items/LoreItems/KnowledgeBrimstoneCrag.cs +++ /dev/null @@ -1,41 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeBrimstoneCrag : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Brimstone Crag"); - Tooltip.SetDefault("Ah... this place.\n" + - "The scent of broken promises, pain, and eventual death is heavy in the air..."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Pink; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeBrimstoneElemental.cs b/Items/LoreItems/KnowledgeBrimstoneElemental.cs deleted file mode 100644 index bb515d64aa..0000000000 --- a/Items/LoreItems/KnowledgeBrimstoneElemental.cs +++ /dev/null @@ -1,41 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeBrimstoneElemental : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Brimstone Elemental"); - Tooltip.SetDefault("The most powerful of the elementals, bent on exacting revenge upon the bloody inferno that demolished her home.\n" + - "Finally put to rest, she will suffer no longer from the grief caused by the deaths of her people."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Pink; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeCryogen.cs b/Items/LoreItems/KnowledgeCryogen.cs deleted file mode 100644 index c327ca9cd4..0000000000 --- a/Items/LoreItems/KnowledgeCryogen.cs +++ /dev/null @@ -1,41 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeCryogen : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Cryogen"); - Tooltip.SetDefault("The archmage's prison.\n" + - "I am unsure if it has grown weaker over the decades of imprisonment."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Pink; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeDesertScourge.cs b/Items/LoreItems/KnowledgeDesertScourge.cs deleted file mode 100644 index c8bca04551..0000000000 --- a/Items/LoreItems/KnowledgeDesertScourge.cs +++ /dev/null @@ -1,42 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeDesertScourge : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("The Desert Scourge"); - Tooltip.SetDefault("The great sea worm appears to have survived the extreme heat and has even adapted to it.\n" + - "What used to be a majestic beast swimming through the water has now become a dried-up and\n" + - "gluttonous husk, constantly on a voracious search for its next meal."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Blue; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeDestroyer.cs b/Items/LoreItems/KnowledgeDestroyer.cs deleted file mode 100644 index cee3d50e06..0000000000 --- a/Items/LoreItems/KnowledgeDestroyer.cs +++ /dev/null @@ -1,40 +0,0 @@ -using CalamityMod.Items.Materials; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeDestroyer : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("The Destroyer"); - Tooltip.SetDefault("A machine brought to life by the mighty souls of warriors, and built to excavate massive tunnels in planets to gather resources.\n" + - "Could have proven useful if Draedon didn't have an obsession with turning everything into a tool of destruction."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Pink; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(ItemID.DestroyerTrophy). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeDragonfolly.cs b/Items/LoreItems/KnowledgeDragonfolly.cs deleted file mode 100644 index b63f71b722..0000000000 --- a/Items/LoreItems/KnowledgeDragonfolly.cs +++ /dev/null @@ -1,42 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - [LegacyName("KnowledgeBumblebirb")] - public class KnowledgeDragonfolly : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("The Dragonfolly"); - Tooltip.SetDefault("A failure of twisted scientific ambition; it appears our faulted arrogance over life has shown once more in the results.\n" + - "Originally intended to be a clone of the Jungle Dragon, these were left to roam about the jungle, attacking anything in their path."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Purple; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeGolem.cs b/Items/LoreItems/KnowledgeGolem.cs deleted file mode 100644 index fe6d0e5536..0000000000 --- a/Items/LoreItems/KnowledgeGolem.cs +++ /dev/null @@ -1,40 +0,0 @@ -using CalamityMod.Items.Materials; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeGolem : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Golem"); - Tooltip.SetDefault("A primitive construct.\n" + - "I admire the lihzahrd race for their ingenuity, though finding faith in such a flawed idol would invariably lead to their downfall."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Yellow; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(ItemID.GolemTrophy). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeLunaticCultist.cs b/Items/LoreItems/KnowledgeLunaticCultist.cs deleted file mode 100644 index 84ff931255..0000000000 --- a/Items/LoreItems/KnowledgeLunaticCultist.cs +++ /dev/null @@ -1,41 +0,0 @@ -using CalamityMod.Items.Materials; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeLunaticCultist : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Lunatic Cultist"); - Tooltip.SetDefault("The gifted one that terminated my grand summoning so long ago with his uncanny powers over the arcane.\n" + - "Someone I once held in such contempt for his actions is now... deceased, his sealing ritual undone... prepare for the end.\n" + - "Your impending doom approaches..."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Cyan; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(ItemID.AncientCultistTrophy). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeMoonLord.cs b/Items/LoreItems/KnowledgeMoonLord.cs deleted file mode 100644 index dcfcaf72f4..0000000000 --- a/Items/LoreItems/KnowledgeMoonLord.cs +++ /dev/null @@ -1,41 +0,0 @@ -using CalamityMod.Items.Materials; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeMoonLord : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Moon Lord"); - Tooltip.SetDefault("What a waste.\n" + - "Had it been fully restored it would have been a force to behold, but what you fought was an empty shell.\n" + - "However, that doesn't diminish the immense potential locked within it, released upon its death."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Red; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(ItemID.MoonLordTrophy). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgePerforators.cs b/Items/LoreItems/KnowledgePerforators.cs deleted file mode 100644 index 77acc8b85f..0000000000 --- a/Items/LoreItems/KnowledgePerforators.cs +++ /dev/null @@ -1,40 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgePerforators : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("The Perforators and their Hive"); - Tooltip.SetDefault("An abomination of comingled flesh, bone, and organ, infested primarily by blood-slurping worms."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Orange; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgePlaguebringerGoliath.cs b/Items/LoreItems/KnowledgePlaguebringerGoliath.cs deleted file mode 100644 index 89946cac53..0000000000 --- a/Items/LoreItems/KnowledgePlaguebringerGoliath.cs +++ /dev/null @@ -1,41 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgePlaguebringerGoliath : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("The Plaguebringer Goliath"); - Tooltip.SetDefault("A horrific amalgam of steel, flesh, and infection, capable of destroying an entire civilization in just one onslaught.\n" + - "Its plague nuke barrage can leave an entire area uninhabitable for months. A shame that it came to this but the plague must be contained."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Yellow; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgePlantera.cs b/Items/LoreItems/KnowledgePlantera.cs deleted file mode 100644 index 7a30ce5d89..0000000000 --- a/Items/LoreItems/KnowledgePlantera.cs +++ /dev/null @@ -1,41 +0,0 @@ -using CalamityMod.Items.Materials; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgePlantera : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Plantera"); - Tooltip.SetDefault("Well done, you killed a plant.\n" + - "It was used as a vessel to house the spirits of those unfortunate enough to find their way down here.\n" + - "I wish you luck in dealing with the fallout."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.LightPurple; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(ItemID.PlanteraTrophy). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgePolterghast.cs b/Items/LoreItems/KnowledgePolterghast.cs deleted file mode 100644 index 1caaab74ea..0000000000 --- a/Items/LoreItems/KnowledgePolterghast.cs +++ /dev/null @@ -1,42 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using CalamityMod.Rarities; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgePolterghast : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Polterghast"); - Tooltip.SetDefault("A creature born of hatred and anger, formed by countless human souls with all of their energy entirely devoted to consuming others.\n" + - "It seems a waste to have had such a potent source of power ravage mindlessly through these empty halls."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.consumable = false; - Item.rare = ModContent.RarityType(); - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeProfanedGuardians.cs b/Items/LoreItems/KnowledgeProfanedGuardians.cs deleted file mode 100644 index 7725d58884..0000000000 --- a/Items/LoreItems/KnowledgeProfanedGuardians.cs +++ /dev/null @@ -1,42 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeProfanedGuardians : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("The Profaned Guardians"); - Tooltip.SetDefault("The ever-rejuvenating guardians of the profaned flame.\n" + - "Much like a phoenix from the ashes their deaths are simply a part of their life cycle.\n" + - "Many times my forces have had to destroy these beings in search of the Profaned Goddess."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Purple; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeProvidence.cs b/Items/LoreItems/KnowledgeProvidence.cs deleted file mode 100644 index 3ce1947a62..0000000000 --- a/Items/LoreItems/KnowledgeProvidence.cs +++ /dev/null @@ -1,42 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using CalamityMod.Rarities; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeProvidence : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Providence, the Profaned Goddess"); - Tooltip.SetDefault("A core surrounded by stone and flame, a simple origin and a simple goal.\n" + - "What would have become of us had she not been defeated is a frightening concept to consider."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.consumable = false; - Item.rare = ModContent.RarityType(); - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeRavager.cs b/Items/LoreItems/KnowledgeRavager.cs deleted file mode 100644 index 6fb4ae5c31..0000000000 --- a/Items/LoreItems/KnowledgeRavager.cs +++ /dev/null @@ -1,41 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeRavager : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Ravager"); - Tooltip.SetDefault("The flesh golem constructed using twisted necromancy during the time of my conquest to counter my unstoppable forces.\n" + - "Its creators were slaughtered by it moments after its conception. It is for the best that it has been destroyed."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Yellow; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeSkeletronPrime.cs b/Items/LoreItems/KnowledgeSkeletronPrime.cs deleted file mode 100644 index ad8d291160..0000000000 --- a/Items/LoreItems/KnowledgeSkeletronPrime.cs +++ /dev/null @@ -1,40 +0,0 @@ -using CalamityMod.Items.Materials; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeSkeletronPrime : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Skeletron Prime"); - Tooltip.SetDefault("What a silly and pointless contraption for something created with the essence of pure terror.\n" + - "Draedon obviously took several liberties with its design... I am not impressed."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Pink; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(ItemID.SkeletronPrimeTrophy). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeSulphurSea.cs b/Items/LoreItems/KnowledgeSulphurSea.cs deleted file mode 100644 index f1f1e6e66b..0000000000 --- a/Items/LoreItems/KnowledgeSulphurSea.cs +++ /dev/null @@ -1,38 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeSulphurSea : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Sulphur Sea"); - Tooltip.SetDefault("I remember the serene waves and the clear breeze.\n" + - "The bitterness of my youth has long since subsided, but it is far too late. I must never repeat a mistake like this again."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.Pink; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) => false; - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/KnowledgeWallofFlesh.cs b/Items/LoreItems/KnowledgeWallofFlesh.cs deleted file mode 100644 index 1ae18830af..0000000000 --- a/Items/LoreItems/KnowledgeWallofFlesh.cs +++ /dev/null @@ -1,41 +0,0 @@ -using CalamityMod.Items.Materials; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeWallofFlesh : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Wall of Flesh"); - Tooltip.SetDefault("I see the deed is done.\n" + - "The unholy amalgamation of flesh and hatred has been defeated.\n" + - "Prepare to face the terrors that lurk in the light and dark parts of this world."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.rare = ItemRarityID.LightRed; - Item.consumable = false; - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(ItemID.WallofFleshTrophy). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/LoreAquaticScourge.cs b/Items/LoreItems/LoreAquaticScourge.cs new file mode 100644 index 0000000000..06086f8d70 --- /dev/null +++ b/Items/LoreItems/LoreAquaticScourge.cs @@ -0,0 +1,40 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeAquaticScourge")] + public class LoreAquaticScourge : LoreItem + { + public override string Lore => +@"Another once grand sea serpent, well-adapted to its harsh environs. +Unlike the other Scourge, which was half starved and chasing scraps for its next meal, it lived comfortably. +Microorganisms evolve rapidly, so it was able to maintain its filter feeding habits as the sea putrefied. +What a stark contrast to the rest of the ecosystem. Nearly every other creature in the Sulphur Sea is hostile. +A shame that its last bastion of tranquility has fallen."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Aquatic Scourge"); + } + + public override void SetDefaults() + { + Item.width = 38; + Item.height = 26; + Item.rare = ItemRarityID.Pink; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeAquaticScourge.png b/Items/LoreItems/LoreAquaticScourge.png similarity index 100% rename from Items/LoreItems/KnowledgeAquaticScourge.png rename to Items/LoreItems/LoreAquaticScourge.png diff --git a/Items/LoreItems/LoreArchmage.cs b/Items/LoreItems/LoreArchmage.cs new file mode 100644 index 0000000000..e8c9727d78 --- /dev/null +++ b/Items/LoreItems/LoreArchmage.cs @@ -0,0 +1,41 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeCryogen")] + public class LoreArchmage : LoreItem + { + public override string Lore => +@"He yet lives…?! I thought him slain by Calamitas. It appears she imprisoned the Archmage to spare his life. +I assumed that frigid mass was an old construct of his, running amok without its master to shepherd it. +Permafrost was an old ally of mine, wielding the prestigious title of Archmage and great renown. +His wisdom guided my original conquests, or rather, made much of them possible at all. +As my crusade evolved and my ambitions grew, he expressed vehement disapproval. +Where once he saw justice, there was now tyranny. He departed, and the Witch not long after."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("The Archmage"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Pink; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeCryogen.png b/Items/LoreItems/LoreArchmage.png similarity index 100% rename from Items/LoreItems/KnowledgeCryogen.png rename to Items/LoreItems/LoreArchmage.png diff --git a/Items/LoreItems/LoreAstrumAureus.cs b/Items/LoreItems/LoreAstrumAureus.cs new file mode 100644 index 0000000000..b066ec88bd --- /dev/null +++ b/Items/LoreItems/LoreAstrumAureus.cs @@ -0,0 +1,41 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeAstrumAureus")] + public class LoreAstrumAureus : LoreItem + { + public override string Lore => +@"Ever pragmatic, Draedon dispatched this machine to locate and analyze the source of the Astral Infection. +While nominally for reconnaissance, the Aureus model is heavily armed and can scale any terrain. +It performed admirably, at least until it was assimilated into the Infection. +Sapient minds have enough willpower to resist the Infection's call indefinitely. +However, even the finest silicon is not beyond its reach. Draedon prefers his creations to serve, after all. +With this experiment concluded, he will certainly be examining you next. Watch yourself."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Astrum Aureus"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Lime; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeAstrumAureus.png b/Items/LoreItems/LoreAstrumAureus.png similarity index 100% rename from Items/LoreItems/KnowledgeAstrumAureus.png rename to Items/LoreItems/LoreAstrumAureus.png diff --git a/Items/LoreItems/LoreAstrumDeus.cs b/Items/LoreItems/LoreAstrumDeus.cs new file mode 100644 index 0000000000..54d1e7052d --- /dev/null +++ b/Items/LoreItems/LoreAstrumDeus.cs @@ -0,0 +1,41 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeAstrumDeus")] + public class LoreAstrumDeus : LoreItem + { + public override string Lore => +@"On our world, this being is revered as the God of the night sky. It is said to devour dying stars and birth new ones in turn. +Unlike the many Gods you or I know, it is guiltless. An important distinction, for it was equally as diseased as they. +The infection that tainted its body is from beyond Terraria. Neither I nor Draedon recognize it fully. +With its will subsumed, it hurled a chunk of infested astral matter at our world, then came to guard it. +Thankfully, such a grandiose being that walks amongst the stars is likely not truly dead. +While the land has paid a terrible price, the price of a wrongful conviction is higher still."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Astrum Deus"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Cyan; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeAstrumDeus.png b/Items/LoreItems/LoreAstrumDeus.png similarity index 100% rename from Items/LoreItems/KnowledgeAstrumDeus.png rename to Items/LoreItems/LoreAstrumDeus.png diff --git a/Items/LoreItems/LoreAzafure.cs b/Items/LoreItems/LoreAzafure.cs new file mode 100644 index 0000000000..4324d0f2ef --- /dev/null +++ b/Items/LoreItems/LoreAzafure.cs @@ -0,0 +1,40 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeBrimstoneCrag")] + public class LoreAzafure : LoreItem + { + public override string Lore => +@"Oft called the First City, its tumultuous history stretches back to the Draconic Era. +An odd jewel of civilization, the immense heat of the underworld provided it unlimited potential in defense and industry. +Such was the renown of the forgemasters that when I swayed them to my cause, I was never lacking for arms. +It pains me to say even in hindsight, but their artisanry paved the downfall of the entire city. +For the Witch and I, the air here will forever be laden with regret. There is nothing to be done."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Azafure"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Pink; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeBrimstoneCrag.png b/Items/LoreItems/LoreAzafure.png similarity index 100% rename from Items/LoreItems/KnowledgeBrimstoneCrag.png rename to Items/LoreItems/LoreAzafure.png diff --git a/Items/LoreItems/KnowledgeBrainofCthulhu.cs b/Items/LoreItems/LoreBrainofCthulhu.cs similarity index 50% rename from Items/LoreItems/KnowledgeBrainofCthulhu.cs rename to Items/LoreItems/LoreBrainofCthulhu.cs index 13de250a29..7c1d39a915 100644 --- a/Items/LoreItems/KnowledgeBrainofCthulhu.cs +++ b/Items/LoreItems/LoreBrainofCthulhu.cs @@ -1,19 +1,22 @@ -using CalamityMod.Items.Materials; -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeBrainofCthulhu : LoreItem + [LegacyName("KnowledgeBrainofCthulhu")] + public class LoreBrainofCthulhu : LoreItem { + public override string Lore => +@"It is true that unspeakable abominations may now be commonplace, largely by my hand. +Though they have always been a product of the folly of the Gods, the same Gods would cull them in equal measure. +My decimation of the falsely divine left many old horrors unconstrained, with new ones birthed every year. +Now, they are your stepping stones."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("The Brain of Cthulhu"); - Tooltip.SetDefault("An eye and now a brain.\n" + - "Most likely another abomination spawned from this inchoate mass of flesh."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -21,19 +24,9 @@ namespace CalamityMod.Items.LoreItems Item.width = 20; Item.height = 20; Item.rare = ItemRarityID.Green; - Item.autoReuse = false; - Item.useStyle = ItemUseStyleID.Swing; - Item.useAnimation = 20; - Item.useTime = 20; - Item.UseSound = SoundID.Item8; Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeBrainofCthulhu.png b/Items/LoreItems/LoreBrainofCthulhu.png similarity index 100% rename from Items/LoreItems/KnowledgeBrainofCthulhu.png rename to Items/LoreItems/LoreBrainofCthulhu.png diff --git a/Items/LoreItems/LoreBrimstoneElemental.cs b/Items/LoreItems/LoreBrimstoneElemental.cs new file mode 100644 index 0000000000..62c6be2075 --- /dev/null +++ b/Items/LoreItems/LoreBrimstoneElemental.cs @@ -0,0 +1,42 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeBrimstoneElemental")] + public class LoreBrimstoneElemental : LoreItem + { + public override string Lore => +@"A peculiar being. Until recently, she had laid dormant for ages, posing as the city’s silent matron. +As its economy boomed, traces of brimstone found their way all across the known world. +It was never clear why her slumber ended. At first she stirred. The people were cautiously optimistic. +When she woke, it was horrific. Her inferno billowed through the streets. None were safe. +Fate had a sick sense of humor that day, for Calamitas was there to match her. +Perhaps the two were attuned somehow. They fought to a standstill, fire against fire. +Neither were victorious, and despite her intentions, the city was razed by her flames."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Brimstone Elemental"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Pink; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeBrimstoneElemental.png b/Items/LoreItems/LoreBrimstoneElemental.png similarity index 100% rename from Items/LoreItems/KnowledgeBrimstoneElemental.png rename to Items/LoreItems/LoreBrimstoneElemental.png diff --git a/Items/LoreItems/KnowledgeCalamitas.cs b/Items/LoreItems/LoreCalamitas.cs similarity index 54% rename from Items/LoreItems/KnowledgeCalamitas.cs rename to Items/LoreItems/LoreCalamitas.cs index 5669b1a8a3..f406b4fec0 100644 --- a/Items/LoreItems/KnowledgeCalamitas.cs +++ b/Items/LoreItems/LoreCalamitas.cs @@ -1,5 +1,4 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Rarities; using Terraria; using Terraria.ID; @@ -7,16 +6,15 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeCalamitas : LoreItem + [LegacyName("KnowledgeCalamitas")] + public class LoreCalamitas : LoreItem { + public override string Lore => "This lore item isn't finished yet."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("Calamitas"); - Tooltip.SetDefault("The witch unrivaled. Perhaps the only one amongst my cohorts to have ever given me cause for doubt.\n" + - "Now that you have defeated her your destiny is clear.\n" + - "Come now, face me."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -27,11 +25,6 @@ namespace CalamityMod.Items.LoreItems Item.rare = ModContent.RarityType(); } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeCalamitas.png b/Items/LoreItems/LoreCalamitas.png similarity index 100% rename from Items/LoreItems/KnowledgeCalamitas.png rename to Items/LoreItems/LoreCalamitas.png diff --git a/Items/LoreItems/KnowledgeCalamitasClone.cs b/Items/LoreItems/LoreCalamitasClone.cs similarity index 52% rename from Items/LoreItems/KnowledgeCalamitasClone.cs rename to Items/LoreItems/LoreCalamitasClone.cs index e2f384ba54..91e7edfa5e 100644 --- a/Items/LoreItems/KnowledgeCalamitasClone.cs +++ b/Items/LoreItems/LoreCalamitasClone.cs @@ -1,20 +1,24 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeCalamitasClone : LoreItem + [LegacyName("KnowledgeCalamitasClone")] + public class LoreCalamitasClone : LoreItem { + public override string Lore => +@"I had seen this monster roaming the night in the past, and thought nothing of it. +With its technology, it was certainly one of Draedon’s creations. +But, to think it was housing a clone of the Witch… Irremissible. +Surely Calamitas would want nothing to do with such a project. +I know not how it wields her brimstone magic. Perhaps some day one of us may find answers."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("Calamitas Clone"); - Tooltip.SetDefault("You are indeed stronger than I thought.\n" + - "Though the bloody inferno still lingers, observing your progress."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -25,11 +29,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeCalamitasClone.png b/Items/LoreItems/LoreCalamitasClone.png similarity index 100% rename from Items/LoreItems/KnowledgeCalamitasClone.png rename to Items/LoreItems/LoreCalamitasClone.png diff --git a/Items/LoreItems/KnowledgeCorruption.cs b/Items/LoreItems/LoreCorruption.cs similarity index 53% rename from Items/LoreItems/KnowledgeCorruption.cs rename to Items/LoreItems/LoreCorruption.cs index ea8df387ef..0421e22fce 100644 --- a/Items/LoreItems/KnowledgeCorruption.cs +++ b/Items/LoreItems/LoreCorruption.cs @@ -1,19 +1,21 @@ -using CalamityMod.Items.Materials; -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeCorruption : LoreItem + [LegacyName("KnowledgeCorruption")] + public class LoreCorruption : LoreItem { + public override string Lore => +@"To not properly dispose of the essence of a slain God is a fatal mistake. This wasteland stands as proof of such. +Having slain my first Gods, I turned a blind eye as corrupt essence gushed from their rent forms and burrowed into the bowels of Terraria. +The mere existence of this putrid place proves that the Gods of old were beyond redemption."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("The Corruption"); - Tooltip.SetDefault("The rotten and forever-deteriorating landscape of infected life, brought upon by a deadly microbe long ago.\n" + - "It is rumored that the microbe was created through experimentation by a long-dead race, predating the Terrarians."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -24,11 +26,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeCorruption.png b/Items/LoreItems/LoreCorruption.png similarity index 100% rename from Items/LoreItems/KnowledgeCorruption.png rename to Items/LoreItems/LoreCorruption.png diff --git a/Items/LoreItems/KnowledgeCrabulon.cs b/Items/LoreItems/LoreCrabulon.cs similarity index 56% rename from Items/LoreItems/KnowledgeCrabulon.cs rename to Items/LoreItems/LoreCrabulon.cs index 11941096fa..d2db79a46f 100644 --- a/Items/LoreItems/KnowledgeCrabulon.cs +++ b/Items/LoreItems/LoreCrabulon.cs @@ -1,19 +1,22 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; using Terraria.ID; using Terraria.ModLoader; + namespace CalamityMod.Items.LoreItems { - public class KnowledgeCrabulon : LoreItem + [LegacyName("KnowledgeCrabulon")] + public class LoreCrabulon : LoreItem { + public override string Lore => +@"Fungus and a sea crab. One sought a host; the other, a new home. +These mushrooms possess a disturbing amount of tenacity. Nothing that lays down to die in their domain is left to rest. +It is this sort of ghastly, forceful exertion of control over the unwilling that led me down my path."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("Crabulon"); - Tooltip.SetDefault("A crab and its mushrooms, a love story.\n" + - "It's interesting how creatures can adapt given certain circumstances."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -24,11 +27,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeCrabulon.png b/Items/LoreItems/LoreCrabulon.png similarity index 100% rename from Items/LoreItems/KnowledgeCrabulon.png rename to Items/LoreItems/LoreCrabulon.png diff --git a/Items/LoreItems/KnowledgeCrimson.cs b/Items/LoreItems/LoreCrimson.cs similarity index 54% rename from Items/LoreItems/KnowledgeCrimson.cs rename to Items/LoreItems/LoreCrimson.cs index 06802bebf6..e1a4eea9a8 100644 --- a/Items/LoreItems/KnowledgeCrimson.cs +++ b/Items/LoreItems/LoreCrimson.cs @@ -1,19 +1,21 @@ -using CalamityMod.Items.Materials; -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeCrimson : LoreItem + [LegacyName("KnowledgeCrimson")] + public class LoreCrimson : LoreItem { + public override string Lore => +@"The foul air, the morbid fauna, the disgusting terrain… Here lies my first mistake of my crusade. +The essence of a God does not simply vanish when the body dies. It must be properly disposed of or destroyed entirely. +Essence of a pious God could never fester into a mire as dreadful as this."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("The Crimson"); - Tooltip.SetDefault("This bloody hell, spawned from a formless mass of flesh that fell from the stars eons ago.\n" + - "It is now home to many hideous creatures, spawned from the pumping blood and lurching organs deep within."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -24,11 +26,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeCrimson.png b/Items/LoreItems/LoreCrimson.png similarity index 100% rename from Items/LoreItems/KnowledgeCrimson.png rename to Items/LoreItems/LoreCrimson.png diff --git a/Items/LoreItems/LoreDesertScourge.cs b/Items/LoreItems/LoreDesertScourge.cs new file mode 100644 index 0000000000..a19cb756b4 --- /dev/null +++ b/Items/LoreItems/LoreDesertScourge.cs @@ -0,0 +1,38 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeDesertScourge")] + public class LoreDesertScourge : LoreItem + { + public override string Lore => +@"Once, it was a majestic sea serpent that threatened none but the microscopic creatures it consumed. +After its home was incinerated, it became familiar with the hunt. To survive, it quickly learned to seek greater prey. +Unfortunately for the scourge, it seems that it too was prey in the end. After all, there is always a bigger fish in the sea."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Desert Scourge"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Blue; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeDesertScourge.png b/Items/LoreItems/LoreDesertScourge.png similarity index 100% rename from Items/LoreItems/KnowledgeDesertScourge.png rename to Items/LoreItems/LoreDesertScourge.png diff --git a/Items/LoreItems/LoreDestroyer.cs b/Items/LoreItems/LoreDestroyer.cs new file mode 100644 index 0000000000..d87ea3a2e5 --- /dev/null +++ b/Items/LoreItems/LoreDestroyer.cs @@ -0,0 +1,40 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeDestroyer")] + public class LoreDestroyer : LoreItem + { + public override string Lore => +@"The Godseeker Knights of my company were far and away my finest soldiers. +They championed my cause, and I championed them in return. +I bestowed upon them hulking armor and colossal weaponry, so their Might would never falter. +Some days, I would take time to train by their side, inspiring them to new heights of righteous fury. +Draedon understood well, and granted them these massive forms, bristling with weaponry and interlocked armor forged of blessed metal. +While in truth it was repurposed mining equipment, their sheer presence on the battlefield was immense."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("The Destroyer"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Pink; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(ItemID.DestroyerTrophy). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeDestroyer.png b/Items/LoreItems/LoreDestroyer.png similarity index 100% rename from Items/LoreItems/KnowledgeDestroyer.png rename to Items/LoreItems/LoreDestroyer.png diff --git a/Items/LoreItems/KnowledgeDevourerofGods.cs b/Items/LoreItems/LoreDevourerofGods.cs similarity index 52% rename from Items/LoreItems/KnowledgeDevourerofGods.cs rename to Items/LoreItems/LoreDevourerofGods.cs index 1bc1a86ad3..51db2453fd 100644 --- a/Items/LoreItems/KnowledgeDevourerofGods.cs +++ b/Items/LoreItems/LoreDevourerofGods.cs @@ -1,5 +1,4 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Rarities; using Terraria; using Terraria.ID; @@ -7,15 +6,15 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeDevourerofGods : LoreItem + [LegacyName("KnowledgeDevourerofGods")] + public class LoreDevourerofGods : LoreItem { + public override string Lore => "This lore item isn't finished yet."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("The Devourer of Gods"); - Tooltip.SetDefault("This serpent’s power to assimilate the abilities and energy of those it consumed is unique in almost all the known cosmos, save for its lesser brethren.\n" + - "I would have soon had to eliminate it as a threat had it been given more time and creatures to feast upon."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -26,11 +25,6 @@ namespace CalamityMod.Items.LoreItems Item.rare = ModContent.RarityType(); } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeDevourerofGods.png b/Items/LoreItems/LoreDevourerofGods.png similarity index 100% rename from Items/LoreItems/KnowledgeDevourerofGods.png rename to Items/LoreItems/LoreDevourerofGods.png diff --git a/Items/LoreItems/LoreDragonfolly.cs b/Items/LoreItems/LoreDragonfolly.cs new file mode 100644 index 0000000000..b4e589a8af --- /dev/null +++ b/Items/LoreItems/LoreDragonfolly.cs @@ -0,0 +1,42 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeBumblebirb", "KnowledgeDragonfolly")] + public class LoreDragonfolly : LoreItem + { + public override string Lore => +@"Near the close of the Draconic Era, there are records of the “impure” Dragon species. +Wyverns, basilisks, Pigrons and the like are documented, though none are sure how exactly they came to be. +To this day, scholars argue over the true names and lineages of these creatures. +Names aside, it is clear the first offshoots are pure enough to retain the great strength of their forebears. +Naturally, this led them to be targeted by cruel divine mandates, and most were hunted to extinction. +It is known that Fishrons, Follies, and the Abyssal Wyrms survived the purging hunts of the Deific Era. +Notably, they now are all reclusive or exceedingly violent. It is tragic how they evolved to be that way."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Dragonfolly"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Purple; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeDragonfolly.png b/Items/LoreItems/LoreDragonfolly.png similarity index 100% rename from Items/LoreItems/KnowledgeDragonfolly.png rename to Items/LoreItems/LoreDragonfolly.png diff --git a/Items/LoreItems/KnowledgeDukeFishron.cs b/Items/LoreItems/LoreDukeFishron.cs similarity index 50% rename from Items/LoreItems/KnowledgeDukeFishron.cs rename to Items/LoreItems/LoreDukeFishron.cs index 21878c9398..553f4dca7d 100644 --- a/Items/LoreItems/KnowledgeDukeFishron.cs +++ b/Items/LoreItems/LoreDukeFishron.cs @@ -1,19 +1,23 @@ -using CalamityMod.Items.Materials; -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeDukeFishron : LoreItem + [LegacyName("KnowledgeDukeFishron")] + public class LoreDukeFishron : LoreItem { + public override string Lore => +@"Outlandish as they may seem, this species is the single mightiest of the seas. +They are relentless hunters and can easily spend significant time out of the water. +Folklore holds that the Fishrons claim heritage from the true Dragons, countless years back. +While there are many such tales of creatures of draconic descent, this case is factual. +Genetic heritage or not, though, the Fishrons lack Dragonblood, or Auric souls. I would well know."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("Duke Fishron"); - Tooltip.SetDefault("The mutant terror of the sea was once the trusted companion of an old king; he tamed it using its favorite treat.\n" + - "Long ago, the creature flew in desperation from the raging bloody inferno consuming its home, ultimately finding its way to the ocean."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -24,11 +28,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeDukeFishron.png b/Items/LoreItems/LoreDukeFishron.png similarity index 100% rename from Items/LoreItems/KnowledgeDukeFishron.png rename to Items/LoreItems/LoreDukeFishron.png diff --git a/Items/LoreItems/KnowledgeEaterofWorlds.cs b/Items/LoreItems/LoreEaterofWorlds.cs similarity index 55% rename from Items/LoreItems/KnowledgeEaterofWorlds.cs rename to Items/LoreItems/LoreEaterofWorlds.cs index 3a5d77c161..37d0bafb87 100644 --- a/Items/LoreItems/KnowledgeEaterofWorlds.cs +++ b/Items/LoreItems/LoreEaterofWorlds.cs @@ -1,19 +1,22 @@ -using CalamityMod.Items.Materials; -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeEaterofWorlds : LoreItem + [LegacyName("KnowledgeEaterofWorlds")] + public class LoreEaterofWorlds : LoreItem { + public override string Lore => +@"Any powerful being will call forth fable and legend, of both its grandeur and terror. That monstrous worm was no exception. +That measly thing, devouring a planet? Ridiculous. However, ridicule spreads quickly with even an ounce of truth behind it. +One will not need to search long for examples. We are all surrounded by rampant superstition and assumption. +I myself have been subjected to a litany of baseless boasts and accusations in my time."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("The Eater of Worlds"); - Tooltip.SetDefault("Perhaps it was just a giant worm infected by the microbe, given centuries to feed and grow its festering body.\n" + - "Seems likely, given the origins of this place."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -24,11 +27,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeEaterofWorlds.png b/Items/LoreItems/LoreEaterofWorlds.png similarity index 100% rename from Items/LoreItems/KnowledgeEaterofWorlds.png rename to Items/LoreItems/LoreEaterofWorlds.png diff --git a/Items/LoreItems/KnowledgeExoMechs.cs b/Items/LoreItems/LoreExoMechs.cs similarity index 67% rename from Items/LoreItems/KnowledgeExoMechs.cs rename to Items/LoreItems/LoreExoMechs.cs index 96ebb4196e..42f4f48a02 100644 --- a/Items/LoreItems/KnowledgeExoMechs.cs +++ b/Items/LoreItems/LoreExoMechs.cs @@ -1,5 +1,4 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Rarities; using Terraria; using Terraria.ID; @@ -7,15 +6,15 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeExoMechs : LoreItem + [LegacyName("KnowledgeExoMechs")] + public class LoreExoMechs : LoreItem { + public override string Lore => "This lore item isn't finished yet."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("The Exo Mechanical Trio"); - Tooltip.SetDefault("The fruits of masterful craftsmanship and optimization, created only with the objective to destroy.\n" + - "Yet in the end, they achieved little more than the original designs they were derived from."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -26,8 +25,6 @@ namespace CalamityMod.Items.LoreItems Item.rare = ModContent.RarityType(); } - public override bool CanUseItem(Player player) => false; - public override void AddRecipes() { diff --git a/Items/LoreItems/KnowledgeExoMechs.png b/Items/LoreItems/LoreExoMechs.png similarity index 100% rename from Items/LoreItems/KnowledgeExoMechs.png rename to Items/LoreItems/LoreExoMechs.png diff --git a/Items/LoreItems/KnowledgeEyeofCthulhu.cs b/Items/LoreItems/LoreEyeofCthulhu.cs similarity index 57% rename from Items/LoreItems/KnowledgeEyeofCthulhu.cs rename to Items/LoreItems/LoreEyeofCthulhu.cs index f3b66dd8f4..c66c02c8ea 100644 --- a/Items/LoreItems/KnowledgeEyeofCthulhu.cs +++ b/Items/LoreItems/LoreEyeofCthulhu.cs @@ -1,19 +1,21 @@ -using CalamityMod.Items.Materials; -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeEyeofCthulhu : LoreItem + [LegacyName("KnowledgeEyeofCthulhu")] + public class LoreEyeofCthulhu : LoreItem { + public override string Lore => +@"In ages past, heroes made names for themselves facing such monsters. +Now they run rampant, spawning from vile influences left unchecked. They blend well with the horrific injustice of their forebears. +Slaying one merely paves the way for a dozen more. Surely this does not concern you, either."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("The Eye of Cthulhu"); - Tooltip.SetDefault("That eye... how peculiar.\n" + - "I sensed it watching you more intensely as you grew stronger."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -24,11 +26,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeEyeofCthulhu.png b/Items/LoreItems/LoreEyeofCthulhu.png similarity index 100% rename from Items/LoreItems/KnowledgeEyeofCthulhu.png rename to Items/LoreItems/LoreEyeofCthulhu.png diff --git a/Items/LoreItems/LoreGolem.cs b/Items/LoreItems/LoreGolem.cs new file mode 100644 index 0000000000..29f9b46cc9 --- /dev/null +++ b/Items/LoreItems/LoreGolem.cs @@ -0,0 +1,40 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeGolem")] + public class LoreGolem : LoreItem + { + public override string Lore => +@"What a sad, piteous thing. Truly, a mockery in every sense of the word. +The Lihzahrds were abandoned by their deity long ago. They set upon creating the idol as a replacement. +The result is an amalgamation of the concepts and themes of many Gods, most prominently the heat of the sun. +It is a far cry from a mechanical god… for the better. The alternative is too chilling to consider. +While I believe it barely deserves mention, the Lihzahrds revere it unflinchingly. +I see no need to intervene in affairs beneath me and my people."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Golem"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Yellow; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(ItemID.GolemTrophy). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeGolem.png b/Items/LoreItems/LoreGolem.png similarity index 100% rename from Items/LoreItems/KnowledgeGolem.png rename to Items/LoreItems/LoreGolem.png diff --git a/Items/LoreItems/KnowledgeHiveMind.cs b/Items/LoreItems/LoreHiveMind.cs similarity index 50% rename from Items/LoreItems/KnowledgeHiveMind.cs rename to Items/LoreItems/LoreHiveMind.cs index 5368df5b26..1030c36d08 100644 --- a/Items/LoreItems/KnowledgeHiveMind.cs +++ b/Items/LoreItems/LoreHiveMind.cs @@ -1,20 +1,23 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeHiveMind : LoreItem + [LegacyName("KnowledgeHiveMind")] + public class LoreHiveMind : LoreItem { + public override string Lore => +@"Some semblance of a God’s mind may survive death, like the twitches of a crushed insect. +What little remains attempts to convene, to coalesce in worship, so that its power may yet be restored. How pitiful. +Fortunately for us, the futility of this effort is unmatched. The biomass obeys, but nothing is accomplished. +Far from all divine power flows from faith. A God is forged of its own strength; followers may choose to worship."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("The Hive Mind"); - Tooltip.SetDefault("A hive of clustered microbial-infected flesh.\n" + - "I do not believe killing it will lessen the corruption here."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -25,11 +28,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeHiveMind.png b/Items/LoreItems/LoreHiveMind.png similarity index 100% rename from Items/LoreItems/KnowledgeHiveMind.png rename to Items/LoreItems/LoreHiveMind.png diff --git a/Items/LoreItems/LoreItem.cs b/Items/LoreItems/LoreItem.cs index e22f352921..5307e9f34a 100644 --- a/Items/LoreItems/LoreItem.cs +++ b/Items/LoreItems/LoreItem.cs @@ -1,4 +1,7 @@ +using System.Collections.Generic; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Input; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -6,11 +9,72 @@ namespace CalamityMod.Items.LoreItems { public abstract class LoreItem : ModItem { + // This line is the short, generic lore tooltip which indicates there is more to be read. + // It can be overridden as desired for flavor. + public virtual string ShortTooltip => "Whispers from on high dance in your ears..."; + public virtual Color ShortTooltipColor => new(227, 175, 64); // #E3AF40 + + // This line is what tells the player to hold Shift. There is essentially no reason to change it + public virtual string LeftShiftExpandTooltip => "Press \"Left Shift\" to listen closer"; + public virtual Color LeftShiftExpandColor => new(190, 190, 190); // #BEBEBE + + // This string contains the actual lore of the lore item + public virtual string Lore => ""; + // By default, lore text appears in white, but this can be changed. + public virtual Color LoreColor => Color.White; + + public override void SetStaticDefaults() + { + string basicLine = ShortTooltipColor.ColorMessage(ShortTooltip, true); + string leftShift = LeftShiftExpandColor.ColorMessage(LeftShiftExpandTooltip, false); + Tooltip.SetDefault(basicLine + leftShift); + SacrificeTotal = 1; + ItemID.Sets.ItemNoGravity[Item.type] = true; + } + + public override bool CanUseItem(Player player) => false; + public override Color? GetAlpha(Color lightColor) => Color.White; - public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup) - { - itemGroup = (ContentSamples.CreativeHelper.ItemGroup)CalamityResearchSorting.LoreItems; - } + public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup) + { + itemGroup = (ContentSamples.CreativeHelper.ItemGroup)CalamityResearchSorting.LoreItems; + } + + // All lore items use the same code for holding SHIFT to extend tooltips. + // Original code lifted from Iban's extended armor tooltips. + public override void ModifyTooltips(List tooltips) + { + // Only perform any changes while holding SHIFT. + if (Main.keyState.IsKeyDown(Keys.LeftShift)) + { + // Count up all standard vanilla tooltip lines while holding SHIFT, so they may be removed. + int tooltipIndex = -1; + int tooltipCount = 0; + for (int i = 0; i < tooltips.Count; i++) + { + if (tooltips[i].Name.StartsWith("Tooltip")) + { + if (tooltipIndex == -1) + tooltipIndex = i; + + tooltipCount++; + } + } + + if (tooltipIndex != -1) + { + // Remove all standard tooltips. + tooltips.RemoveRange(tooltipIndex, tooltipCount); + + // Replace them with the full lore. + TooltipLine fullLore = new(Mod, "CalamityMod:Lore", Lore) + { + OverrideColor = LoreColor + }; + tooltips.Insert(tooltipIndex, fullLore); + } + } + } } } diff --git a/Items/LoreItems/KnowledgeKingSlime.cs b/Items/LoreItems/LoreKingSlime.cs similarity index 57% rename from Items/LoreItems/KnowledgeKingSlime.cs rename to Items/LoreItems/LoreKingSlime.cs index 58845d0859..d1522fb504 100644 --- a/Items/LoreItems/KnowledgeKingSlime.cs +++ b/Items/LoreItems/LoreKingSlime.cs @@ -1,19 +1,21 @@ -using CalamityMod.Items.Materials; -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeKingSlime : LoreItem + [LegacyName("KnowledgeKingSlime")] + public class LoreKingSlime : LoreItem { + public override string Lore => +@"Given time, these gelatinous creatures absorb each other and slowly grow in both size and strength. +There is little need to worry about this. Naturally, slimes are nearly mindless and amass only by chance. +Though it appears they are capable of absorbing knowledge, if only in rudimentary form."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("King Slime"); - Tooltip.SetDefault("Only a fool could be caught by this pitiful excuse for a hunter.\n" + - "Unfortunately, our world has no shortage of those."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -24,11 +26,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeKingSlime.png b/Items/LoreItems/LoreKingSlime.png similarity index 100% rename from Items/LoreItems/KnowledgeKingSlime.png rename to Items/LoreItems/LoreKingSlime.png diff --git a/Items/LoreItems/KnowledgeLeviathanAnahita.cs b/Items/LoreItems/LoreLeviathanAnahita.cs similarity index 51% rename from Items/LoreItems/KnowledgeLeviathanAnahita.cs rename to Items/LoreItems/LoreLeviathanAnahita.cs index a22abf8f43..9107244799 100644 --- a/Items/LoreItems/KnowledgeLeviathanAnahita.cs +++ b/Items/LoreItems/LoreLeviathanAnahita.cs @@ -1,21 +1,25 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - [LegacyName("KnowledgeLeviathanandSiren")] - public class KnowledgeLeviathanAnahita : LoreItem + [LegacyName("KnowledgeLeviathanandSiren", "KnowledgeLeviathanAnahita")] + public class LoreLeviathanAnahita : LoreItem { + public override string Lore => +@"Although she claims dominion over all the world's oceans, in truth she is a recluse of the deep. +Elementals pose a grave threat to all those around them. Other Elementals are no exception. +Anahita was driven from her home in the Abyss by Silva's encroaching greenery. +Accounts vary as to the majestic beast at her side. Some claim Anahita summoned the Leviathan herself. +Regardless of what you believe, they are inseparable even in death. +Such stalwart loyalty! It reminds me of Yharon."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("Leviathan and Anahita"); - Tooltip.SetDefault("An odd pair of creatures; one seeking companionship and the other seeking sustenance.\n" + - "Perhaps two genetic misfits outcast from their homes that found comfort in assisting one another."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -26,11 +30,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeLeviathanAnahita.png b/Items/LoreItems/LoreLeviathanAnahita.png similarity index 100% rename from Items/LoreItems/KnowledgeLeviathanAnahita.png rename to Items/LoreItems/LoreLeviathanAnahita.png diff --git a/Items/LoreItems/KnowledgeMechs.cs b/Items/LoreItems/LoreMechs.cs similarity index 59% rename from Items/LoreItems/KnowledgeMechs.cs rename to Items/LoreItems/LoreMechs.cs index 7f549ba3fa..f60319d07a 100644 --- a/Items/LoreItems/KnowledgeMechs.cs +++ b/Items/LoreItems/LoreMechs.cs @@ -1,19 +1,24 @@ -using CalamityMod.Items.Materials; -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeMechs : LoreItem + [LegacyName("KnowledgeMechs")] + public class LoreMechs : LoreItem { + public override string Lore => +@"These unwieldy beasts of steel were the experiments of Draedon, my former colleague and prodigious engineer. +His intent was to fuel a war machine with soul energy, allowing it to fight with purpose and zeal. +The creations were a success; so much so, that the souls continued to express their own free will. +Draedon was displeased. But these were my soldiers, and their loyalty was forged anew in iron. +I dismissed them from duty, and yet here they are, scouring the land for evidence of the divine. +Unfortunately for you, that puts you in their crosshairs. Give them a battle worth dying in."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("The Mechanical Trio"); - Tooltip.SetDefault("I see you have awakened Draedon's old toys.\n" + - "Once useful tools turned into savage beasts when their AIs went rogue, a mistake that Draedon failed to rectify in time."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -24,11 +29,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeMechs.png b/Items/LoreItems/LoreMechs.png similarity index 100% rename from Items/LoreItems/KnowledgeMechs.png rename to Items/LoreItems/LoreMechs.png diff --git a/Items/LoreItems/KnowledgeOldDuke.cs b/Items/LoreItems/LoreOldDuke.cs similarity index 51% rename from Items/LoreItems/KnowledgeOldDuke.cs rename to Items/LoreItems/LoreOldDuke.cs index aca5ddac39..b358b20c35 100644 --- a/Items/LoreItems/KnowledgeOldDuke.cs +++ b/Items/LoreItems/LoreOldDuke.cs @@ -1,5 +1,4 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Rarities; using Terraria; using Terraria.ID; @@ -7,15 +6,15 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeOldDuke : LoreItem + [LegacyName("KnowledgeOldDuke")] + public class LoreOldDuke : LoreItem { + public override string Lore => "This lore item isn't finished yet."; + public override void SetStaticDefaults() { - DisplayName.SetDefault("Old Duke"); - Tooltip.SetDefault("Strange, to find out that the mutant terror of the seas was not alone in its unique biology.\n" + - "Perhaps I was mistaken to classify the creature from its relation to pigrons alone."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; + base.SetStaticDefaults(); + DisplayName.SetDefault("The Old Duke"); } public override void SetDefaults() @@ -26,11 +25,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeOldDuke.png b/Items/LoreItems/LoreOldDuke.png similarity index 100% rename from Items/LoreItems/KnowledgeOldDuke.png rename to Items/LoreItems/LoreOldDuke.png diff --git a/Items/LoreItems/LorePerforators.cs b/Items/LoreItems/LorePerforators.cs new file mode 100644 index 0000000000..6e018b2988 --- /dev/null +++ b/Items/LoreItems/LorePerforators.cs @@ -0,0 +1,39 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgePerforators")] + public class LorePerforators : LoreItem + { + public override string Lore => +@"These creatures were unique, for they wielded the slain Gods’ power as purely as possible, veins flowing with spilt ichor. +All that exists in the Crimson is truly the divine turned inside out; their gore now glistens with its perverse treachery, for all to bear witness. +The mire reeks of centuries of vile manipulation and callous domination of the hapless. +Judgment is long passed, and extinction is left waiting."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("The Perforators and Their Hive"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Orange; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgePerforators.png b/Items/LoreItems/LorePerforators.png similarity index 100% rename from Items/LoreItems/KnowledgePerforators.png rename to Items/LoreItems/LorePerforators.png diff --git a/Items/LoreItems/LorePlaguebringerGoliath.cs b/Items/LoreItems/LorePlaguebringerGoliath.cs new file mode 100644 index 0000000000..8a2a67f2c1 --- /dev/null +++ b/Items/LoreItems/LorePlaguebringerGoliath.cs @@ -0,0 +1,42 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgePlaguebringerGoliath")] + public class LorePlaguebringerGoliath : LoreItem + { + public override string Lore => +@"An innocent queen, forced to bear an agonizing existence. This is nothing short of a crime against nature. +Without consulting me, Draedon sought to weaponize the already well-organized Jungle bees. +When he revealed his finished project, I was enraged. Enslaving the bees was despicable. +Draedon cared little for my outrage and returned to his other work without further incident. +From that point on, I stopped making requests of Draedon. He had shown me his true colors. +In my later days I was far from virtuous. But I would not shackle a creature to fight in my name. +That would make me no better than the divine scoundrels I pursued."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Plaguebringer Goliath"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Yellow; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgePlaguebringerGoliath.png b/Items/LoreItems/LorePlaguebringerGoliath.png similarity index 100% rename from Items/LoreItems/KnowledgePlaguebringerGoliath.png rename to Items/LoreItems/LorePlaguebringerGoliath.png diff --git a/Items/LoreItems/LorePlantera.cs b/Items/LoreItems/LorePlantera.cs new file mode 100644 index 0000000000..fe2ef9841e --- /dev/null +++ b/Items/LoreItems/LorePlantera.cs @@ -0,0 +1,42 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgePlantera")] + public class LorePlantera : LoreItem + { + // Well done, you killed a plant. + public override string Lore => +@"This floral aberration is another example of the volatile power of harnessed souls. +Taking their mastery of agriculture to new heights, the Jungle settlers bred a special sprout. +Through ritual blessing of the soil, it was fed legions of souls. +Elders of the village wished to bring forth a new age of botanical prosperity. +Indeed, the plant was awe inspiring. But it was wild and untamed, with a will of its own. +Now that you have slain it, still more disorderly spiritual energies are flooding the lands. +The village’s ignorance was shameful in its own right, but this is worse still."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Plantera"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.LightPurple; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(ItemID.PlanteraTrophy). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgePlantera.png b/Items/LoreItems/LorePlantera.png similarity index 100% rename from Items/LoreItems/KnowledgePlantera.png rename to Items/LoreItems/LorePlantera.png diff --git a/Items/LoreItems/LorePolterghast.cs b/Items/LoreItems/LorePolterghast.cs new file mode 100644 index 0000000000..d554604aa1 --- /dev/null +++ b/Items/LoreItems/LorePolterghast.cs @@ -0,0 +1,44 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Rarities; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgePolterghast")] + public class LorePolterghast : LoreItem + { + public override string Lore => +@"The further my war dragged on, the further I sank into negligence. This specter is the crux of my failure. +I hid behind my excuses, calling them duties. Fighting the gods. Training. Ruling. +I had the time and resources to devote. I was simply paralyzed by apathy. +The scores of prisoners I kept in the dungeon I claimed perished alongside their jailors. +Within those hexed walls, none may know rest, and their souls coalesced into a formless monster. +Boiling with rage, wallowing in sorrow, screaming in madness. The amalgamation was uncontrollable. +The dragon cult was furious, their leader demanding I put the haunt down myself. +I did not answer. I had long since become deaf to the world outside my crusade. Do not fall as I have."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Polterghast"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.consumable = false; + Item.rare = ModContent.RarityType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgePolterghast.png b/Items/LoreItems/LorePolterghast.png similarity index 100% rename from Items/LoreItems/KnowledgePolterghast.png rename to Items/LoreItems/LorePolterghast.png diff --git a/Items/LoreItems/LorePrelude.cs b/Items/LoreItems/LorePrelude.cs new file mode 100644 index 0000000000..39052d851a --- /dev/null +++ b/Items/LoreItems/LorePrelude.cs @@ -0,0 +1,42 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeLunaticCultist")] + public class LorePrelude : LoreItem + { + public override string Lore => +@"In ages past, now named the Draconic Era, the majestic Dragons protected Terraria from all threats. +Their famed might was put to the ultimate test by an aberrant behemoth from beyond the stars. +Fighting with all their strength, the Dragons could wound and weaken it, but not destroy it. +Lacking options, they tore the monster down to a shadow of its former self, and sealed it away. +What is left of it now lies imprisoned in the Moon, as far away as the Dragons could banish it. +Much of dragonkind was lost as casualties in that struggle, and they never recovered. +Zeratros himself was gravely injured. It seemed his power, along with his life, would be lost forever. +One mortal, sworn to the service of the Dragons, rose in determination to save their virtuous King."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Prelude"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Cyan; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(ItemID.AncientCultistTrophy). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeLunaticCultist.png b/Items/LoreItems/LorePrelude.png similarity index 100% rename from Items/LoreItems/KnowledgeLunaticCultist.png rename to Items/LoreItems/LorePrelude.png diff --git a/Items/LoreItems/LoreProfanedGuardians.cs b/Items/LoreItems/LoreProfanedGuardians.cs new file mode 100644 index 0000000000..ee6f1ba66c --- /dev/null +++ b/Items/LoreItems/LoreProfanedGuardians.cs @@ -0,0 +1,40 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeProfanedGuardians")] + public class LoreProfanedGuardians : LoreItem + { + public override string Lore => +@"The Guardians are rather simple constructs, extensions of the Profaned Goddess’ power. +They are given partial autonomy to hunt down threats and are rarely seen outside of temples sanctified in her name. +She has been attempting to expand her domain, and it is no surprise she sees you as her largest threat. +After all, it was you that finished off the star-spawned horror that catalyzed the downfall of the Dragons. +Draw her out from hiding. Have no mercy, for the Profaned Goddess shows none herself."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("The Profaned Guardians"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Purple; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeProfanedGuardians.png b/Items/LoreItems/LoreProfanedGuardians.png similarity index 100% rename from Items/LoreItems/KnowledgeProfanedGuardians.png rename to Items/LoreItems/LoreProfanedGuardians.png diff --git a/Items/LoreItems/LoreProvidence.cs b/Items/LoreItems/LoreProvidence.cs new file mode 100644 index 0000000000..07ceffd11d --- /dev/null +++ b/Items/LoreItems/LoreProvidence.cs @@ -0,0 +1,43 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Rarities; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeProvidence")] + public class LoreProvidence : LoreItem + { + public override string Lore => +@"A glorious day. +Deeds of valor of this caliber are enshrined in legend. Of this age, only the Witch, Braelor and myself can compare. +Providence was perhaps one of the wickedest Gods, hellbent on purification through erasure. +Her worshippers saw little value in life. Pain was not a price they felt justified to pay. +The Profaned Goddess promised her followers she would end inequality by reducing all to featureless ash. +Those devoted to her were weak-willed, and yet she reigned as one of the mightiest Gods. +Perhaps it was their easily-swayed nature, that let her draw so much power from them…"; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Providence, the Profaned Goddess"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.consumable = false; + Item.rare = ModContent.RarityType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeProvidence.png b/Items/LoreItems/LoreProvidence.png similarity index 100% rename from Items/LoreItems/KnowledgeProvidence.png rename to Items/LoreItems/LoreProvidence.png diff --git a/Items/LoreItems/KnowledgeQueenBee.cs b/Items/LoreItems/LoreQueenBee.cs similarity index 51% rename from Items/LoreItems/KnowledgeQueenBee.cs rename to Items/LoreItems/LoreQueenBee.cs index 18394cc073..85f8b7497e 100644 --- a/Items/LoreItems/KnowledgeQueenBee.cs +++ b/Items/LoreItems/LoreQueenBee.cs @@ -1,18 +1,22 @@ -using CalamityMod.Items.Materials; -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeQueenBee : LoreItem + [LegacyName("KnowledgeQueenBee")] + public class LoreQueenBee : LoreItem { + public override string Lore => +@"While of tremendous size, these creatures are docile until aggravated. Their idyll is a rarity nowadays, a thing of beauty. +In the past, entire villages would spring up around these grand hives, peacefully harvesting their share of the honey and protecting them from danger. +Though its death is understandable given the circumstances, I do feel pity for these majestic beings. +Fate was cruel to many of their kind."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("Queen Bee"); - Tooltip.SetDefault("As crude as the giant insects are they can prove useful in certain situations... given the ability to control them."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -23,11 +27,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeQueenBee.png b/Items/LoreItems/LoreQueenBee.png similarity index 100% rename from Items/LoreItems/KnowledgeQueenBee.png rename to Items/LoreItems/LoreQueenBee.png diff --git a/Items/LoreItems/LoreRavager.cs b/Items/LoreItems/LoreRavager.cs new file mode 100644 index 0000000000..f11010ebae --- /dev/null +++ b/Items/LoreItems/LoreRavager.cs @@ -0,0 +1,42 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeRavager")] + public class LoreRavager : LoreItem + { + public override string Lore => +@"A sickening flesh golem built for the sole purpose of savage, relentless destruction. +The monstrosity was a desperate bid to turn the tides against my God-seeking armies. +I could scarcely believe it myself, but it was born of a ritual of great sacrifice, performed in ardent faith. +The ritual condemned and fused the bodies and souls of their fallen allies into this hideous thing. +When the warlocks pledged their very lives to it as an offering, it awoke and swiftly slew them. +Now caked in fresh blood, it hungered for more, and set off on an aimless rampage. +I suppose its brutality serves as a reminder to be careful what you believe."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("The Ravager"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Yellow; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeRavager.png b/Items/LoreItems/LoreRavager.png similarity index 100% rename from Items/LoreItems/KnowledgeRavager.png rename to Items/LoreItems/LoreRavager.png diff --git a/Items/LoreItems/LoreRequiem.cs b/Items/LoreItems/LoreRequiem.cs new file mode 100644 index 0000000000..ed04f88136 --- /dev/null +++ b/Items/LoreItems/LoreRequiem.cs @@ -0,0 +1,43 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeMoonLord")] + public class LoreRequiem : LoreItem + { + public override string Lore => +@"As the Light Dragon was fading, the monk visited him. Nearly none understand what transpired that day. +Most say his passing was eased. The truth? Zeratros’ Auric soul was consumed, utterly. +The monk stood, wreathed in Primordial Light, and declared themselves Xeroc, the First God. +When a Dragon is laid to rest on the Aerie, its powers are relinquished so they may one day return. +Xeroc renounced their sworn oath and broke the cycle, becoming a traitor without equal. +Word of the ascension spread quickly. Many attempted to follow suit and claim an Auric soul for themselves. +Now you know… Good intentions or no, all Gods are sinners. Each and every one complicit in genocide. +Wherever your journey may lead, whether you are with me or against, may fortune favor you. +For nothing else will."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Requiem"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Red; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(ItemID.MoonLordTrophy). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeMoonLord.png b/Items/LoreItems/LoreRequiem.png similarity index 100% rename from Items/LoreItems/KnowledgeMoonLord.png rename to Items/LoreItems/LoreRequiem.png diff --git a/Items/LoreItems/KnowledgeSkeletron.cs b/Items/LoreItems/LoreSkeletron.cs similarity index 52% rename from Items/LoreItems/KnowledgeSkeletron.cs rename to Items/LoreItems/LoreSkeletron.cs index 7f9d61a7e3..ae6ee9407d 100644 --- a/Items/LoreItems/KnowledgeSkeletron.cs +++ b/Items/LoreItems/LoreSkeletron.cs @@ -1,19 +1,22 @@ -using CalamityMod.Items.Materials; -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeSkeletron : LoreItem + [LegacyName("KnowledgeSkeletron")] + public class LoreSkeletron : LoreItem { + public override string Lore => +@"A sorry old man, cursed by an even older cult, caught trespassing on their ancient library. +They were once my friends. Their leader is infatuated with Dragons, and dreams of resurrecting one. +The very walls of that place are cursed further still. The magic has long since faded, and the soldiers rotted. +Do not expect to learn much from those tattered tomes. They were penned with misguided zeal."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("Skeletron"); - Tooltip.SetDefault("The curse is said to only affect the elderly.\n" + - "After they are afflicted they become an immortal vessel for an ancient demon of the underworld."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -24,11 +27,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeSkeletron.png b/Items/LoreItems/LoreSkeletron.png similarity index 100% rename from Items/LoreItems/KnowledgeSkeletron.png rename to Items/LoreItems/LoreSkeletron.png diff --git a/Items/LoreItems/LoreSkeletronPrime.cs b/Items/LoreItems/LoreSkeletronPrime.cs new file mode 100644 index 0000000000..714ee037f2 --- /dev/null +++ b/Items/LoreItems/LoreSkeletronPrime.cs @@ -0,0 +1,39 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeSkeletronPrime")] + public class LoreSkeletronPrime : LoreItem + { + public override string Lore => +@"So consumed by hatred were some souls, that they pledged they would do anything in my name. +Their devotion was unerring. Absolute. No atrocity was beyond them; their vengeance knew no bounds. +I organized them into shock troops, dreaded for their flamethrowers and incendiaries. +Leveling places of worship and torching those falsely devout, their expertise lay in unmaking faith with flame. +Draedon understood well. For them he crafted a visage so grim, it evoked oblivion itself."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Skeletron Prime"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Pink; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(ItemID.SkeletronPrimeTrophy). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeSkeletronPrime.png b/Items/LoreItems/LoreSkeletronPrime.png similarity index 100% rename from Items/LoreItems/KnowledgeSkeletronPrime.png rename to Items/LoreItems/LoreSkeletronPrime.png diff --git a/Items/LoreItems/KnowledgeSlimeGod.cs b/Items/LoreItems/LoreSlimeGod.cs similarity index 50% rename from Items/LoreItems/KnowledgeSlimeGod.cs rename to Items/LoreItems/LoreSlimeGod.cs index 4d2748c71e..4aa65a7c00 100644 --- a/Items/LoreItems/KnowledgeSlimeGod.cs +++ b/Items/LoreItems/LoreSlimeGod.cs @@ -1,20 +1,24 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeSlimeGod : LoreItem + [LegacyName("KnowledgeSlimeGod")] + public class LoreSlimeGod : LoreItem { + public override string Lore => +@"An old clan once revered this thing as a paragon of the balance of nature. Now its purity is sullied by freshly absorbed muck and grime. +The gelatinous being neither knows nor cares for the last surviving clansman. +Such tragedy is all too common in worship. +Alas, the Slime God is wise enough to be cowardly, fleeing battles it cannot win when its servants are destroyed. +Perhaps fortune will favor you if you catch it unaware."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("The Slime God"); - Tooltip.SetDefault("It is a travesty, one of the most threatening biological terrors ever created.\n" + - "If this creature were allowed to combine every slime on the planet it would become nearly unstoppable."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -25,11 +29,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeSlimeGod.png b/Items/LoreItems/LoreSlimeGod.png similarity index 100% rename from Items/LoreItems/KnowledgeSlimeGod.png rename to Items/LoreItems/LoreSlimeGod.png diff --git a/Items/LoreItems/LoreSulphurSea.cs b/Items/LoreItems/LoreSulphurSea.cs new file mode 100644 index 0000000000..ef110191e9 --- /dev/null +++ b/Items/LoreItems/LoreSulphurSea.cs @@ -0,0 +1,40 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeSulphurSea")] + public class LoreSulphurSea : LoreItem + { + public override string Lore => +@"This seaside has never been pleasant, though it has seen far better days. +Incessant fumes rising from the industry of Azafure inundate the water with caustic ions. +Yet still, the hardy life adapted. No doubt aided by Silva as she burrowed through to the underworld. +Long considered uninhabitable, its further deterioration led Draedon to designate it as a dumping ground. +Years of careless mass waste disposal has now left the coast’s transformation irreversible."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Sulphur Sea"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Pink; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeSulphurSea.png b/Items/LoreItems/LoreSulphurSea.png similarity index 100% rename from Items/LoreItems/KnowledgeSulphurSea.png rename to Items/LoreItems/LoreSulphurSea.png diff --git a/Items/LoreItems/KnowledgeTwins.cs b/Items/LoreItems/LoreTwins.cs similarity index 55% rename from Items/LoreItems/KnowledgeTwins.cs rename to Items/LoreItems/LoreTwins.cs index 75425d64a6..c57048625d 100644 --- a/Items/LoreItems/KnowledgeTwins.cs +++ b/Items/LoreItems/LoreTwins.cs @@ -1,19 +1,24 @@ -using CalamityMod.Items.Materials; -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeTwins : LoreItem + [LegacyName("KnowledgeTwins")] + public class LoreTwins : LoreItem { + public override string Lore => +@"Not all of warfare is open combat. Logistics and intelligence are paramount to decisive victory. +These machines are my finest scouts and agents, reborn in a form that gives them Sight unrivaled. +Archers or snipers, spies or assassins. An enemy is only as safe as you allow him to be. +Draedon understood well that the only fair fight is the one you win. +His assistance was infallible, and his calculus cold and cruel. +Not even the most evasive target stood a chance."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("The Twins"); - Tooltip.SetDefault("The bio-mechanical watchers of the night, originally created as security using the souls extracted from human eyes.\n" + - "These creatures did not belong in this world, it's best to be rid of them."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -24,11 +29,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeTwins.png b/Items/LoreItems/LoreTwins.png similarity index 100% rename from Items/LoreItems/KnowledgeTwins.png rename to Items/LoreItems/LoreTwins.png diff --git a/Items/LoreItems/KnowledgeUnderworld.cs b/Items/LoreItems/LoreUnderworld.cs similarity index 51% rename from Items/LoreItems/KnowledgeUnderworld.cs rename to Items/LoreItems/LoreUnderworld.cs index 6883883e79..4e0e3587be 100644 --- a/Items/LoreItems/KnowledgeUnderworld.cs +++ b/Items/LoreItems/LoreUnderworld.cs @@ -1,19 +1,23 @@ -using CalamityMod.Items.Materials; -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeUnderworld : LoreItem + [LegacyName("KnowledgeUnderworld")] + public class LoreUnderworld : LoreItem { + public override string Lore => +@"The hellish reputation the underworld gets is rather a modern thing. +The layers of ash choking the previously great cities are still warm. +The more domineering of Gods wished for me to champion their cause, and rule their society from here. +Yet, surrounded by magma as it were, Azafure simply burned when their wishes were not met. +Such is the unfortunate price of war, though I have no regrets fighting for my people."; + public override void SetStaticDefaults() { + base.SetStaticDefaults(); DisplayName.SetDefault("The Underworld"); - Tooltip.SetDefault("These obsidian and hellstone towers were once home to thousands of... 'people'.\n" + - "Unfortunately for them, they were twisted by their inner demons until they were beyond saving."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; } public override void SetDefaults() @@ -24,11 +28,6 @@ namespace CalamityMod.Items.LoreItems Item.consumable = false; } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeUnderworld.png b/Items/LoreItems/LoreUnderworld.png similarity index 100% rename from Items/LoreItems/KnowledgeUnderworld.png rename to Items/LoreItems/LoreUnderworld.png diff --git a/Items/LoreItems/LoreWallofFlesh.cs b/Items/LoreItems/LoreWallofFlesh.cs new file mode 100644 index 0000000000..e95e8e821b --- /dev/null +++ b/Items/LoreItems/LoreWallofFlesh.cs @@ -0,0 +1,40 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeWallofFlesh")] + public class LoreWallofFlesh : LoreItem + { + public override string Lore => +@"To contain the essence of a slain God is no small thing. It is rather a towering, ghastly construct. +The Wall was lashed together with foul sinew and fouler magics, forming a rudimentary prison of flesh. +It served its purpose: halting the diffusion of undue divine influence. +Were it not for this alchemical breakthrough, the very world I fought for may have been lost in the carnage I wrought. +My methods have since evolved. I need not contain such essences, when they can be devoured. +May you channel my valor in combating the resulting outpour of energies."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("The Wall of Flesh"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.LightRed; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(ItemID.WallofFleshTrophy). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeWallofFlesh.png b/Items/LoreItems/LoreWallofFlesh.png similarity index 100% rename from Items/LoreItems/KnowledgeWallofFlesh.png rename to Items/LoreItems/LoreWallofFlesh.png diff --git a/Items/LoreItems/KnowledgeYharon.cs b/Items/LoreItems/LoreYharon.cs similarity index 50% rename from Items/LoreItems/KnowledgeYharon.cs rename to Items/LoreItems/LoreYharon.cs index c74d454e32..a8181ee88b 100644 --- a/Items/LoreItems/KnowledgeYharon.cs +++ b/Items/LoreItems/LoreYharon.cs @@ -1,5 +1,4 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Rarities; using Terraria; using Terraria.ID; @@ -7,15 +6,15 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeYharon : LoreItem + [LegacyName("KnowledgeYharon")] + public class LoreYharon : LoreItem { + public override string Lore => "This lore item isn't finished yet."; + public override void SetStaticDefaults() { - DisplayName.SetDefault("Jungle Dragon, Yharon"); - Tooltip.SetDefault("I would not be able to bear a world without my faithful companion by my side.\n" + - "Fortunately, fate will have it so that it is a world I shall never have to see, for better or for worse."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; + base.SetStaticDefaults(); + DisplayName.SetDefault("Yharon, Resplendent Phoenix"); } public override void SetDefaults() @@ -26,11 +25,6 @@ namespace CalamityMod.Items.LoreItems Item.rare = ModContent.RarityType(); } - public override bool CanUseItem(Player player) - { - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/LoreItems/KnowledgeYharon.png b/Items/LoreItems/LoreYharon.png similarity index 100% rename from Items/LoreItems/KnowledgeYharon.png rename to Items/LoreItems/LoreYharon.png diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 9d5a7711db..1b636ed1d3 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -222,54 +222,54 @@ namespace CalamityMod ItemRedirect(ModContent.ItemType(), "Sandstorm (weapon)"); ItemRedirect(ModContent.ItemType(), "Thunderstorm (weapon)"); // Lore items - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); // Enemies EnemyRedirect(ModContent.NPCType(), "Catfish (enemy)"); @@ -390,7 +390,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("DesertScourge", out float order); List segments = new List() { NPCType(), NPCType(), NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Desert Biome"; string despawn = CalamityUtils.ColorMessage("The scourge of the desert delved back into the sand.", new Color(0xEE, 0xE8, 0xAA)); Action portrait = (SpriteBatch sb, Rectangle rect, Color color) => { @@ -416,7 +416,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Crabulon", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Mushroom Biome"; string despawn = CalamityUtils.ColorMessage("The mycleium crab has lost interest.", new Color(0x64, 0x95, 0xED)); AddBoss(bossChecklist, calamity, "Crabulon", order, type, DownedCrabulon, summon, collection, instructions, despawn, () => true); @@ -427,7 +427,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("HiveMind", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Kill a Cyst in the Corruption or use a [i:{summon}] in the Corruption"; string despawn = CalamityUtils.ColorMessage("The corrupted colony began searching for a new breeding ground.", new Color(0x94, 0x00, 0xD3)); string bossHeadTex = "CalamityMod/NPCs/HiveMind/HiveMindP2_Head_Boss"; @@ -439,7 +439,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Perforators", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Kill a Cyst in the Crimson or use a [i:{summon}] in the Crimson"; string despawn = CalamityUtils.ColorMessage("The parasitic hive began searching for a new host.", new Color(0xDC, 0x14, 0x3C)); AddBoss(bossChecklist, calamity, "The Perforators", order, type, DownedPerfs, summon, collection, instructions, despawn, () => true); @@ -450,7 +450,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("SlimeGod", out float order); List bosses = new List() { NPCType(), NPCType(), NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use an [i:{summon}]"; string despawn = CalamityUtils.ColorMessage("The gelatinous monstrosity achieved vengeance for its brethren.", new Color(0xBA, 0x55, 0x33)); AddBoss(bossChecklist, calamity, "Slime God", order, bosses, DownedSlimeGod, summon, collection, instructions, despawn, () => true); @@ -461,7 +461,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Cryogen", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Snow Biome"; string despawn = CalamityUtils.ColorMessage("Cryogen drifts away, carried on a freezing wind.", new Color(0x00, 0xFF, 0xFF)); string bossLogTex = "CalamityMod/NPCs/Cryogen/Cryogen_Phase1_Head_Boss"; @@ -473,7 +473,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("AquaticScourge", out float order); List segments = new List() { NPCType(), NPCType(), NPCType(), NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Sulphuric Sea or wait for it to spawn in the Sulphuric Sea"; string despawn = CalamityUtils.ColorMessage("The Aquatic Scourge swam back into the open ocean.", new Color(0xF0, 0xE6, 0x8C)); string bossLogTex = "CalamityMod/NPCs/AquaticScourge/AquaticScourgeHead_Head_Boss"; @@ -500,7 +500,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("BrimstoneElemental", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Brimstone Crag"; string despawn = CalamityUtils.ColorMessage("Brimstone Elemental withdraws to the ruins of her shrine.", new Color(0xDC, 0x14, 0x3C)); AddBoss(bossChecklist, calamity, "Brimstone Elemental", order, type, DownedBrimstoneElemental, summon, collection, instructions, despawn, () => true); @@ -511,7 +511,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Calamitas", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use an [i:{summon}] at Night"; string despawn = CalamityUtils.ColorMessage("If you wanted a fight, you should've came more prepared.", new Color(0xFF, 0xA5, 0x00)); //Func available = () => !DownedBossSystem.downedCalamitas; @@ -534,7 +534,7 @@ namespace CalamityMod { BossDifficulty.TryGetValue("Leviathan", out float order); List bosses = new List() { NPCType(), NPCType() }; - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = "By killing an unknown entity in the Ocean Biome"; string despawn = CalamityUtils.ColorMessage("The aquatic entities sink back beneath the ocean depths.", new Color(0x7F, 0xFF, 0xD4)); @@ -551,7 +551,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("AstrumAureus", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use an [i:{summon}] at Night in the Astral Biome"; string despawn = CalamityUtils.ColorMessage("Astrum Aureus’ program has been executed. Initiate recall.", new Color(0xFF, 0xD7, 0x00)); string bossLogTex = "CalamityMod/NPCs/AstrumAureus/AstrumAureus_Head_Boss"; @@ -563,7 +563,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("PlaguebringerGoliath", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use an [i:{summon}] in the Jungle Biome"; string despawn = CalamityUtils.ColorMessage("HOSTILE SPECIMENS TERMINATED. INITIATE RECALL TO HOME BASE.", new Color(0x00, 0xFF, 0x00)); string bossLogTex = "CalamityMod/NPCs/PlaguebringerGoliath/PlaguebringerGoliath_Head_Boss"; @@ -581,7 +581,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Ravager", out float order); List segments = new List() { NPCType(), NPCType(), NPCType(), NPCType(), NPCType(), NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}]"; string despawn = CalamityUtils.ColorMessage("The automaton of misshapen victims went looking for the true perpetrator.", new Color(0xB2, 0x22, 0x22)); string bossLogTex = "CalamityMod/NPCs/Ravager/RavagerBody_Head_Boss"; @@ -602,7 +602,7 @@ namespace CalamityMod int summon2 = ItemType(); int altar = ItemType(); List summons = new List() { summon1, summon2 }; - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon1}] or [i:{summon2}] as offering at an [i:{altar}]"; string despawn = CalamityUtils.ColorMessage("The infected deity retreats to the heavens.", new Color(0xFF, 0xD7, 0x00)); string bossLogTex = "CalamityMod/NPCs/AstrumDeus/AstrumDeusHead_Head_Boss"; @@ -621,7 +621,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("ProfanedGuardians", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Hallow or Underworld Biomes"; string despawn = CalamityUtils.ColorMessage("The guardians must protect their goddess at all costs.", new Color(0xFF, 0xA5, 0x00)); string bossLogTex = "CalamityMod/NPCs/ProfanedGuardians/ProfanedGuardianCommander_Head_Boss"; @@ -640,7 +640,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Dragonfolly", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use [i:{summon}] in the Jungle Biome"; string despawn = CalamityUtils.ColorMessage("The failed experiment returns to its reproductive routine.", new Color(0xFF, 0xD7, 0x00)); AddBoss(bossChecklist, calamity, "Dragonfolly", order, type, DownedBirb, summon, collection, instructions, despawn, () => true); @@ -651,7 +651,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Providence", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use [i:{summon}] in the Hallow or Underworld Biomes"; string despawn = CalamityUtils.ColorMessage("The Profaned Goddess vanishes in a burning blaze.", new Color(0xFF, 0xA5, 0x00)); string bossLogTex = "CalamityMod/NPCs/Providence/Providence_Head_Boss"; @@ -708,7 +708,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Polterghast", out float order); List bosses = new List() { NPCType(), NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Kill 30 phantom spirits or use a [i:{summon}] in the Dungeon"; string despawn = CalamityUtils.ColorMessage("The volatile spirits disperse throughout the depths of the dungeon.", new Color(0xB0, 0xE0, 0xE6)); AddBoss(bossChecklist, calamity, "Polterghast", order, bosses, DownedPolterghast, summon, collection, instructions, despawn, () => true); @@ -739,7 +739,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("OldDuke", out float order); List bosses = new List() { NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Defeat the Acid Rain event post-Polterghast or fish using a [i:{summon}] in the Sulphurous Sea"; string despawn = CalamityUtils.ColorMessage("The old duke disappears amidst the acidic downpour.", new Color(0xF0, 0xE6, 0x8C)); AddBoss(bossChecklist, calamity, "Old Duke", order, bosses, DownedBoomerDuke, summon, collection, instructions, despawn, () => true); @@ -750,7 +750,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("DevourerOfGods", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}]"; string despawn = CalamityUtils.ColorMessage("The Devourer of Gods has slain everyone and feasted on their essence.", new Color(0x00, 0xFF, 0xFF)); string bossHeadTex = "CalamityMod/NPCs/DevourerofGods/DevourerofGodsHead_Head_Boss"; @@ -767,7 +767,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Yharon", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Jungle Biome"; string despawn = CalamityUtils.ColorMessage("Yharon found you too weak to stay near your gravestone.", new Color(0xFF, 0xA5, 0x00)); string bossLogTex = "CalamityMod/NPCs/Yharon/Yharon_Head_Boss"; @@ -781,7 +781,7 @@ namespace CalamityMod { BossDifficulty.TryGetValue("ExoMechs", out float order); List bosses = new List() { NPCType(), NPCType(), NPCType(), NPCType() }; - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = "By using a high-tech computer"; string despawn = CalamityUtils.ColorMessage("An imperfection after all... what a shame.", new Color(0x7F, 0xFF, 0xD4)); @@ -803,7 +803,7 @@ namespace CalamityMod int summon2 = ItemType(); int altar = ItemType(); List summons = new List() { summon1, summon2 }; - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use [i:{summon1}] or a [i:{summon2}] as offering at an [i:{altar}]"; string despawn = CalamityUtils.ColorMessage("Please don't waste my time.", new Color(0xFF, 0xA5, 0x00)); string bossHeadTex = "CalamityMod/NPCs/SupremeCalamitas/HoodedHeadIcon"; @@ -887,43 +887,43 @@ namespace CalamityMod // King Slime AddLoot(bossChecklist, "KingSlime", new List() { ItemType() }, - new List() { ItemType(), ItemType() } + new List() { ItemType(), ItemType() } ); // Eye of Cthulhu AddLoot(bossChecklist, "EyeofCthulhu", new List() { ItemType(), ItemType() }, - new List() { ItemType(), ItemType() } + new List() { ItemType(), ItemType() } ); // Eater of Worlds AddLoot(bossChecklist, "EaterofWorldsHead", null, - new List() { ItemType(), ItemType(), ItemType() } + new List() { ItemType(), ItemType(), ItemType() } ); // Brain of Cthulhu AddLoot(bossChecklist, "BrainofCthulhu", null, - new List() { ItemType(), ItemType(), ItemType() } + new List() { ItemType(), ItemType(), ItemType() } ); // Queen Bee AddLoot(bossChecklist, "QueenBee", new List() { ItemType(), ItemID.Stinger, ItemType() }, - new List() { ItemType(), ItemType() } + new List() { ItemType(), ItemType() } ); // Skeletron AddLoot(bossChecklist, "SkeletronHead", null, - new List() { ItemType(), ItemType() } + new List() { ItemType(), ItemType() } ); // Wall of Flesh AddLoot(bossChecklist, "WallofFlesh", new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemID.CorruptionKey, ItemID.CrimsonKey }, - new List() { ItemType(), ItemType(), ItemType(), ItemType() } + new List() { ItemType(), ItemType(), ItemType(), ItemType() } ); // Queen Slime @@ -935,31 +935,31 @@ namespace CalamityMod // The Twins AddLoot(bossChecklist, "TheTwins", new List() { ItemType() }, - new List() { ItemType(), ItemType(), ItemType() } + new List() { ItemType(), ItemType(), ItemType() } ); // The Destroyer AddLoot(bossChecklist, "TheDestroyer", - new List() { ItemType(), ItemType(), ItemType() } + new List() { ItemType(), ItemType(), ItemType() } ); // Skeletron Prime AddLoot(bossChecklist, "SkeletronPrime", null, - new List() { ItemType(), ItemType(), ItemType() } + new List() { ItemType(), ItemType(), ItemType() } ); // Plantera AddLoot(bossChecklist, "Plantera", new List() { ItemType(), ItemType(), ItemType(), ItemID.JungleKey }, - new List() { ItemType(), ItemType() } + new List() { ItemType(), ItemType() } ); AddSummons(bossChecklist, "Plantera", new List() { ItemType() }); // Golem AddLoot(bossChecklist, "Golem", new List() { ItemType(), ItemType() }, - new List() { ItemType(), ItemType() } + new List() { ItemType(), ItemType() } ); AddSummons(bossChecklist, "Golem", new List() { ItemType() }); @@ -972,7 +972,7 @@ namespace CalamityMod // Duke Fishron AddLoot(bossChecklist, "DukeFishron", new List() { ItemType(), ItemType() }, - new List() { ItemType(), ItemType() } + new List() { ItemType(), ItemType() } ); // Betsy @@ -984,14 +984,14 @@ namespace CalamityMod // Lunatic Cultist AddLoot(bossChecklist, "CultistBoss", null, - new List() { ItemType(), ItemType(), ItemType() } + new List() { ItemType(), ItemType(), ItemType() } ); AddSummons(bossChecklist, "CultistBoss", new List() { ItemType() }); // Moon Lord AddLoot(bossChecklist, "MoonLord", new List() { ItemType(), ItemType() }, - new List() { ItemType(), ItemType() } + new List() { ItemType(), ItemType() } ); } diff --git a/NPCs/AquaticScourge/AquaticScourgeHead.cs b/NPCs/AquaticScourge/AquaticScourgeHead.cs index 3d0e2833c5..a37bc30618 100644 --- a/NPCs/AquaticScourge/AquaticScourgeHead.cs +++ b/NPCs/AquaticScourge/AquaticScourgeHead.cs @@ -256,8 +256,8 @@ namespace CalamityMod.NPCs.AquaticScourge // Lore bool firstASKill() => !DownedBossSystem.downedAquaticScourge; - npcLoot.AddConditionalPerPlayer(firstASKill, ModContent.ItemType(), desc: DropHelper.FirstKillText); - npcLoot.AddConditionalPerPlayer(firstASKill, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(firstASKill, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(firstASKill, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void OnKill() diff --git a/NPCs/AstrumAureus/AstrumAureus.cs b/NPCs/AstrumAureus/AstrumAureus.cs index 5196bc3034..eaf1f8a35a 100644 --- a/NPCs/AstrumAureus/AstrumAureus.cs +++ b/NPCs/AstrumAureus/AstrumAureus.cs @@ -387,7 +387,7 @@ namespace CalamityMod.NPCs.AstrumAureus npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedAstrumAureus, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedAstrumAureus, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void OnKill() diff --git a/NPCs/AstrumDeus/AstrumDeusHead.cs b/NPCs/AstrumDeus/AstrumDeusHead.cs index 053a765d94..c917abc456 100644 --- a/NPCs/AstrumDeus/AstrumDeusHead.cs +++ b/NPCs/AstrumDeus/AstrumDeusHead.cs @@ -346,7 +346,7 @@ namespace CalamityMod.NPCs.AstrumDeus // Lore bool firstDeusKill(DropAttemptInfo info) => !DownedBossSystem.downedAstrumDeus && !ShouldNotDropThings(info.npc); - npcLoot.AddConditionalPerPlayer(firstDeusKill, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(firstDeusKill, ModContent.ItemType(), desc: DropHelper.FirstKillText); npcLoot.AddConditionalPerPlayer(firstDeusKill, ModContent.ItemType(), desc: DropHelper.FirstKillText); } diff --git a/NPCs/BrimstoneElemental/BrimstoneElemental.cs b/NPCs/BrimstoneElemental/BrimstoneElemental.cs index 27f4e0c54b..5538468409 100644 --- a/NPCs/BrimstoneElemental/BrimstoneElemental.cs +++ b/NPCs/BrimstoneElemental/BrimstoneElemental.cs @@ -216,7 +216,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedBrimstoneElemental, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedBrimstoneElemental, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void OnKill() diff --git a/NPCs/Bumblebirb/Bumblefuck.cs b/NPCs/Bumblebirb/Bumblefuck.cs index 569ee2eb5b..177ba27640 100644 --- a/NPCs/Bumblebirb/Bumblefuck.cs +++ b/NPCs/Bumblebirb/Bumblefuck.cs @@ -451,7 +451,7 @@ namespace CalamityMod.NPCs.Bumblebirb npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedDragonfolly, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedDragonfolly, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void OnKill() diff --git a/NPCs/Calamitas/CalamitasClone.cs b/NPCs/Calamitas/CalamitasClone.cs index 491431f078..4d38d67533 100644 --- a/NPCs/Calamitas/CalamitasClone.cs +++ b/NPCs/Calamitas/CalamitasClone.cs @@ -223,7 +223,7 @@ namespace CalamityMod.NPCs.Calamitas npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedCalamitas, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedCalamitas, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void OnKill() diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 7e45654fc9..c1c7904e2e 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -863,7 +863,7 @@ namespace CalamityMod.NPCs rev.Add(ItemID.KingSlimePetItem, 4); // Lore - npcLoot.AddConditionalPerPlayer(() => !NPC.downedSlimeKing, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !NPC.downedSlimeKing, ModContent.ItemType(), desc: DropHelper.FirstKillText); break; case NPCID.EyeofCthulhu: @@ -880,7 +880,7 @@ namespace CalamityMod.NPCs rev.Add(ItemID.EyeOfCthulhuPetItem, 4); // Lore - npcLoot.AddConditionalPerPlayer(() => !NPC.downedBoss1, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !NPC.downedBoss1, ModContent.ItemType(), desc: DropHelper.FirstKillText); break; case NPCID.EaterofWorldsHead: @@ -901,14 +901,14 @@ namespace CalamityMod.NPCs // Corruption World OR Drunk World: Corruption Lore LeadingConditionRule eowCorruptionLore = new(DropHelper.If((info) => info.npc.boss && (!WorldGen.crimson || WorldGen.drunkWorldGen) && !NPC.downedBoss2, desc: DropHelper.FirstKillText)); - eowCorruptionLore.Add(ModContent.ItemType(), hideLootReport: WorldGen.crimson && !WorldGen.drunkWorldGen); - eowCorruptionLore.Add(ModContent.ItemType(), hideLootReport: WorldGen.crimson && !WorldGen.drunkWorldGen); + eowCorruptionLore.Add(ModContent.ItemType(), hideLootReport: WorldGen.crimson && !WorldGen.drunkWorldGen); + eowCorruptionLore.Add(ModContent.ItemType(), hideLootReport: WorldGen.crimson && !WorldGen.drunkWorldGen); npcLoot.Add(eowCorruptionLore); // Crimson World OR Drunk World: Crimson Lore LeadingConditionRule eowCrimsonLore = new(DropHelper.If((info) => info.npc.boss && (WorldGen.crimson || WorldGen.drunkWorldGen) && !NPC.downedBoss2, desc: DropHelper.FirstKillText)); - eowCrimsonLore.Add(ModContent.ItemType(), hideLootReport: !WorldGen.crimson && !WorldGen.drunkWorldGen); - eowCrimsonLore.Add(ModContent.ItemType(), hideLootReport: !WorldGen.crimson && !WorldGen.drunkWorldGen); + eowCrimsonLore.Add(ModContent.ItemType(), hideLootReport: !WorldGen.crimson && !WorldGen.drunkWorldGen); + eowCrimsonLore.Add(ModContent.ItemType(), hideLootReport: !WorldGen.crimson && !WorldGen.drunkWorldGen); npcLoot.Add(eowCrimsonLore); break; @@ -925,14 +925,14 @@ namespace CalamityMod.NPCs // Corruption World OR Drunk World: Corruption Lore LeadingConditionRule bocCorruptionLore = new(DropHelper.If(() => (!WorldGen.crimson || WorldGen.drunkWorldGen) && !NPC.downedBoss2, desc: DropHelper.FirstKillText)); - bocCorruptionLore.Add(ModContent.ItemType(), hideLootReport: WorldGen.crimson && !WorldGen.drunkWorldGen); - bocCorruptionLore.Add(ModContent.ItemType(), hideLootReport: WorldGen.crimson && !WorldGen.drunkWorldGen); + bocCorruptionLore.Add(ModContent.ItemType(), hideLootReport: WorldGen.crimson && !WorldGen.drunkWorldGen); + bocCorruptionLore.Add(ModContent.ItemType(), hideLootReport: WorldGen.crimson && !WorldGen.drunkWorldGen); npcLoot.Add(bocCorruptionLore); // Crimson World OR Drunk World: Crimson Lore LeadingConditionRule bocCrimsonLore = new(DropHelper.If(() => (WorldGen.crimson || WorldGen.drunkWorldGen) && !NPC.downedBoss2, desc: DropHelper.FirstKillText)); - bocCrimsonLore.Add(ModContent.ItemType(), hideLootReport: !WorldGen.crimson && !WorldGen.drunkWorldGen); - bocCrimsonLore.Add(ModContent.ItemType(), hideLootReport: !WorldGen.crimson && !WorldGen.drunkWorldGen); + bocCrimsonLore.Add(ModContent.ItemType(), hideLootReport: !WorldGen.crimson && !WorldGen.drunkWorldGen); + bocCrimsonLore.Add(ModContent.ItemType(), hideLootReport: !WorldGen.crimson && !WorldGen.drunkWorldGen); npcLoot.Add(bocCrimsonLore); break; @@ -999,7 +999,7 @@ namespace CalamityMod.NPCs rev.Add(ItemID.QueenBeePetItem, 4); // Lore - npcLoot.AddConditionalPerPlayer(() => !NPC.downedQueenBee, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !NPC.downedQueenBee, ModContent.ItemType(), desc: DropHelper.FirstKillText); break; case NPCID.SkeletronHead: @@ -1026,7 +1026,7 @@ namespace CalamityMod.NPCs rev.Add(ItemID.SkeletronPetItem, 4); // Lore - npcLoot.AddConditionalPerPlayer(() => !NPC.downedBoss3, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !NPC.downedBoss3, ModContent.ItemType(), desc: DropHelper.FirstKillText); break; case NPCID.WallofFlesh: @@ -1109,8 +1109,8 @@ namespace CalamityMod.NPCs rev.Add(ItemID.WallOfFleshGoatMountItem, 4); // Lore - npcLoot.AddConditionalPerPlayer(() => !Main.hardMode, ModContent.ItemType(), desc: DropHelper.FirstKillText); - npcLoot.AddConditionalPerPlayer(() => !Main.hardMode, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !Main.hardMode, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !Main.hardMode, ModContent.ItemType(), desc: DropHelper.FirstKillText); break; case NPCID.QueenSlimeBoss: @@ -1148,8 +1148,8 @@ namespace CalamityMod.NPCs rev.Add(ItemID.DestroyerPetItem, 4); // Lore - npcLoot.AddConditionalPerPlayer(() => !NPC.downedMechBoss1, ModContent.ItemType(), desc: DropHelper.FirstKillText); - npcLoot.AddConditionalPerPlayer(ShouldDropMechLore, ModContent.ItemType(), desc: DropHelper.MechBossText); + npcLoot.AddConditionalPerPlayer(() => !NPC.downedMechBoss1, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(ShouldDropMechLore, ModContent.ItemType(), desc: DropHelper.MechBossText); break; case NPCID.Retinazer: @@ -1187,8 +1187,8 @@ namespace CalamityMod.NPCs rev.AddIf((info) => IsLastTwinStanding(info), ItemID.TwinsPetItem, 4); // Lore - npcLoot.AddConditionalPerPlayer((info) => !NPC.downedMechBoss2 && IsLastTwinStanding(info), ModContent.ItemType(), desc: DropHelper.FirstKillText); - npcLoot.AddConditionalPerPlayer(ShouldDropMechLore, ModContent.ItemType(), desc: DropHelper.MechBossText); + npcLoot.AddConditionalPerPlayer((info) => !NPC.downedMechBoss2 && IsLastTwinStanding(info), ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(ShouldDropMechLore, ModContent.ItemType(), desc: DropHelper.MechBossText); break; case NPCID.SkeletronPrime: @@ -1209,8 +1209,8 @@ namespace CalamityMod.NPCs rev.Add(ItemID.SkeletronPrimePetItem, 4); // Lore - npcLoot.AddConditionalPerPlayer(() => !NPC.downedMechBoss3, ModContent.ItemType(), desc: DropHelper.FirstKillText); - npcLoot.AddConditionalPerPlayer(ShouldDropMechLore, ModContent.ItemType(), desc: DropHelper.MechBossText); + npcLoot.AddConditionalPerPlayer(() => !NPC.downedMechBoss3, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(ShouldDropMechLore, ModContent.ItemType(), desc: DropHelper.MechBossText); break; case NPCID.Plantera: @@ -1270,7 +1270,7 @@ namespace CalamityMod.NPCs rev.Add(ItemID.PlanteraPetItem, 4); // Lore - npcLoot.AddConditionalPerPlayer(() => !NPC.downedPlantBoss, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !NPC.downedPlantBoss, ModContent.ItemType(), desc: DropHelper.FirstKillText); break; case NPCID.Golem: @@ -1325,7 +1325,7 @@ namespace CalamityMod.NPCs rev.Add(ItemID.GolemPetItem, 4); // Lore - npcLoot.AddConditionalPerPlayer(() => !NPC.downedGolemBoss, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !NPC.downedGolemBoss, ModContent.ItemType(), desc: DropHelper.FirstKillText); break; case NPCID.DD2Betsy: @@ -1401,7 +1401,7 @@ namespace CalamityMod.NPCs rev.Add(ItemID.DukeFishronPetItem, 4); // Lore - npcLoot.AddConditionalPerPlayer(() => !NPC.downedFishron, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !NPC.downedFishron, ModContent.ItemType(), desc: DropHelper.FirstKillText); break; case NPCID.HallowBoss: @@ -1459,7 +1459,7 @@ namespace CalamityMod.NPCs npcLoot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // Lore - npcLoot.AddConditionalPerPlayer(() => !NPC.downedAncientCultist, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !NPC.downedAncientCultist, ModContent.ItemType(), desc: DropHelper.FirstKillText); // Special Blood Moon Lore npcLoot.AddConditionalPerPlayer(() => Main.bloodMoon, ModContent.ItemType(), desc: DropHelper.BloodMoonText); @@ -1509,7 +1509,7 @@ namespace CalamityMod.NPCs rev.Add(ItemID.MoonLordPetItem, 4); // Lore - npcLoot.AddConditionalPerPlayer(() => !NPC.downedMoonlord, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !NPC.downedMoonlord, ModContent.ItemType(), desc: DropHelper.FirstKillText); break; default: diff --git a/NPCs/Crabulon/Crabulon.cs b/NPCs/Crabulon/Crabulon.cs index faddc91679..349fe2d1a0 100644 --- a/NPCs/Crabulon/Crabulon.cs +++ b/NPCs/Crabulon/Crabulon.cs @@ -882,7 +882,7 @@ namespace CalamityMod.NPCs.Crabulon npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedCrabulon, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedCrabulon, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void OnKill() diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index 31beaeaa4a..7d6e70a194 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -1283,7 +1283,7 @@ namespace CalamityMod.NPCs.Cryogen npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedCryogen, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedCryogen, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void OnKill() diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index 7eb53028cf..bb527a03e5 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -752,7 +752,7 @@ namespace CalamityMod.NPCs.DesertScourge npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedDesertScourge, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedDesertScourge, ModContent.ItemType(), desc: DropHelper.FirstKillText); } #endregion diff --git a/NPCs/DevourerofGods/DevourerofGodsHead.cs b/NPCs/DevourerofGods/DevourerofGodsHead.cs index d7229183ae..68e33261ce 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead.cs @@ -2425,7 +2425,7 @@ namespace CalamityMod.NPCs.DevourerofGods npcLoot.Add(ModContent.ItemType(), 10); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedDoG, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedDoG, ModContent.ItemType(), desc: DropHelper.FirstKillText); } // Can only hit the target if within certain distance diff --git a/NPCs/ExoMechs/Ares/AresBody.cs b/NPCs/ExoMechs/Ares/AresBody.cs index 99c738df2a..89f3fff0ec 100644 --- a/NPCs/ExoMechs/Ares/AresBody.cs +++ b/NPCs/ExoMechs/Ares/AresBody.cs @@ -1531,7 +1531,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).AddIf(CanDropLoot, ModContent.ItemType()); // Lore item - mainDrops.Add(ItemDropRule.ByCondition(DropHelper.If(() => !DownedBossSystem.downedExoMechs, desc: DropHelper.FirstKillText), ModContent.ItemType())); + mainDrops.Add(ItemDropRule.ByCondition(DropHelper.If(() => !DownedBossSystem.downedExoMechs, desc: DropHelper.FirstKillText), ModContent.ItemType())); // Treasure bag npcLoot.Add(ItemDropRule.BossBagByCondition(DropHelper.If(CanDropLoot), ModContent.ItemType())); diff --git a/NPCs/HiveMind/HiveMind.cs b/NPCs/HiveMind/HiveMind.cs index d0788d953c..d0ffd64cc9 100644 --- a/NPCs/HiveMind/HiveMind.cs +++ b/NPCs/HiveMind/HiveMind.cs @@ -1186,7 +1186,7 @@ namespace CalamityMod.NPCs.HiveMind npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedHiveMind, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedHiveMind, ModContent.ItemType(), desc: DropHelper.FirstKillText); } } } diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index baa74405d7..914c4d7573 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -824,7 +824,7 @@ namespace CalamityMod.NPCs.Leviathan // Lore bool shouldDropLore(DropAttemptInfo info) => !DownedBossSystem.downedLeviathan && LastAnLStanding(); npcLoot.AddConditionalPerPlayer(shouldDropLore, ModContent.ItemType(), desc: DropHelper.FirstKillText); - npcLoot.AddConditionalPerPlayer(shouldDropLore, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(shouldDropLore, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void ModifyNPCLoot(NPCLoot npcLoot) diff --git a/NPCs/OldDuke/OldDuke.cs b/NPCs/OldDuke/OldDuke.cs index 34c40cf204..f60c5a2525 100644 --- a/NPCs/OldDuke/OldDuke.cs +++ b/NPCs/OldDuke/OldDuke.cs @@ -461,7 +461,7 @@ namespace CalamityMod.NPCs.OldDuke npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedBoomerDuke, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedBoomerDuke, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override bool CanHitPlayer(Player target, ref int cooldownSlot) diff --git a/NPCs/Perforator/PerforatorHive.cs b/NPCs/Perforator/PerforatorHive.cs index 7797c8a362..f4059ba116 100644 --- a/NPCs/Perforator/PerforatorHive.cs +++ b/NPCs/Perforator/PerforatorHive.cs @@ -573,7 +573,7 @@ namespace CalamityMod.NPCs.Perforator npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedPerforator, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedPerforator, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void OnHitPlayer(Player player, int damage, bool crit) diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs index f5d8d30f5f..ca110c4b6f 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs @@ -1310,7 +1310,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedPlaguebringer, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedPlaguebringer, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void ScaleExpertStats(int numPlayers, float bossLifeScale) diff --git a/NPCs/Polterghast/Polterghast.cs b/NPCs/Polterghast/Polterghast.cs index ec02431a67..70ab324621 100644 --- a/NPCs/Polterghast/Polterghast.cs +++ b/NPCs/Polterghast/Polterghast.cs @@ -1134,7 +1134,7 @@ namespace CalamityMod.NPCs.Polterghast npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedPolterghast, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedPolterghast, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs b/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs index 38f36da040..43c8e50db7 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs @@ -564,7 +564,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedGuardians, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedGuardians, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void OnKill() diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index 9cabb2e905..2c565cff36 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -1882,7 +1882,7 @@ namespace CalamityMod.NPCs.Providence npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedProvidence, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedProvidence, ModContent.ItemType(), desc: DropHelper.FirstKillText); } private void SpawnLootBox() diff --git a/NPCs/Ravager/RavagerBody.cs b/NPCs/Ravager/RavagerBody.cs index 1b858f5ce0..9a7d9d68e8 100644 --- a/NPCs/Ravager/RavagerBody.cs +++ b/NPCs/Ravager/RavagerBody.cs @@ -1019,7 +1019,7 @@ namespace CalamityMod.NPCs.Ravager npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedRavager, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedRavager, ModContent.ItemType(), desc: DropHelper.FirstKillText); } } } diff --git a/NPCs/SlimeGod/SlimeGodCore.cs b/NPCs/SlimeGod/SlimeGodCore.cs index d408db83bd..c7d33b9e54 100644 --- a/NPCs/SlimeGod/SlimeGodCore.cs +++ b/NPCs/SlimeGod/SlimeGodCore.cs @@ -624,7 +624,7 @@ namespace CalamityMod.NPCs.SlimeGod npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedSlimeGod, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedSlimeGod, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index a0448fa75b..06039c2ca1 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -2641,7 +2641,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedSCal, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedSCal, ModContent.ItemType(), desc: DropHelper.FirstKillText); } #endregion diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index 34309b4275..8c3f927086 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -2869,7 +2869,7 @@ namespace CalamityMod.NPCs.Yharon npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedYharon, ModContent.ItemType(), desc: DropHelper.FirstKillText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedYharon, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void BossLoot(ref string name, ref int potionType) diff --git a/Utilities/StringUtils.cs b/Utilities/StringUtils.cs index 5bb96f2528..503a80cc3d 100644 --- a/Utilities/StringUtils.cs +++ b/Utilities/StringUtils.cs @@ -1,4 +1,6 @@ -using System.Linq; +using System.Linq; +using System.Text; +using Microsoft.Xna.Framework; using Terraria; namespace CalamityMod @@ -7,5 +9,19 @@ namespace CalamityMod { internal static readonly string AlphanumericCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; public static string GenerateRandomAlphanumericString(int length) => new string(Enumerable.Repeat(AlphanumericCharacters, length).Select(s => s[Main.rand.Next(s.Length)]).ToArray()); + + public static string ColorMessage(this Color color, string text, bool newline = false) + { + int bufferSize = text.Length < 200 ? 256 : text.Length + 32; + StringBuilder sb = new(bufferSize); + sb.Append("[c/"); + sb.Append(color.Hex3()); + sb.Append(':'); + sb.Append(text); + sb.Append(']'); + if (newline) + sb.Append('\n'); + return sb.ToString(); + } } } From 9ac6a60c67e8bcd17975a7c0a6c0bb2fbac35cd5 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 22 Jan 2023 16:18:40 -0500 Subject: [PATCH 02/12] 1 - Implemented new lore items: Awakening, Ceaseless Void, Cynosure, Empress of Light, Queen Slime, Signus and Storm Weaver. 2 - Ceaseless Void's lore item replaces the previous Sentinels lore item. None of these lore items except Ceaseless Void's have sprites yet. They are using copied sprites from other lore items temporarily. --- Items/LoreItems/KnowledgeSentinels.cs | 51 ------------------ Items/LoreItems/LoreAwakening.cs | 37 +++++++++++++ Items/LoreItems/LoreAwakening.png | Bin 0 -> 415 bytes Items/LoreItems/LoreCeaselessVoid.cs | 44 +++++++++++++++ ...dgeSentinels.png => LoreCeaselessVoid.png} | Bin Items/LoreItems/LoreCynosure.cs | 35 ++++++++++++ Items/LoreItems/LoreCynosure.png | Bin 0 -> 443 bytes Items/LoreItems/LoreEmpressofLight.cs | 38 +++++++++++++ Items/LoreItems/LoreEmpressofLight.png | Bin 0 -> 454 bytes Items/LoreItems/LoreQueenSlime.cs | 36 +++++++++++++ Items/LoreItems/LoreQueenSlime.png | Bin 0 -> 410 bytes Items/LoreItems/LoreSignus.cs | 42 +++++++++++++++ Items/LoreItems/LoreSignus.png | Bin 0 -> 572 bytes Items/LoreItems/LoreStormWeaver.cs | 42 +++++++++++++++ Items/LoreItems/LoreStormWeaver.png | Bin 0 -> 572 bytes 15 files changed, 274 insertions(+), 51 deletions(-) delete mode 100644 Items/LoreItems/KnowledgeSentinels.cs create mode 100644 Items/LoreItems/LoreAwakening.cs create mode 100644 Items/LoreItems/LoreAwakening.png create mode 100644 Items/LoreItems/LoreCeaselessVoid.cs rename Items/LoreItems/{KnowledgeSentinels.png => LoreCeaselessVoid.png} (100%) create mode 100644 Items/LoreItems/LoreCynosure.cs create mode 100644 Items/LoreItems/LoreCynosure.png create mode 100644 Items/LoreItems/LoreEmpressofLight.cs create mode 100644 Items/LoreItems/LoreEmpressofLight.png create mode 100644 Items/LoreItems/LoreQueenSlime.cs create mode 100644 Items/LoreItems/LoreQueenSlime.png create mode 100644 Items/LoreItems/LoreSignus.cs create mode 100644 Items/LoreItems/LoreSignus.png create mode 100644 Items/LoreItems/LoreStormWeaver.cs create mode 100644 Items/LoreItems/LoreStormWeaver.png diff --git a/Items/LoreItems/KnowledgeSentinels.cs b/Items/LoreItems/KnowledgeSentinels.cs deleted file mode 100644 index ec33ecae5f..0000000000 --- a/Items/LoreItems/KnowledgeSentinels.cs +++ /dev/null @@ -1,51 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables.Furniture.Trophies; -using CalamityMod.Rarities; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.LoreItems -{ - public class KnowledgeSentinels : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("The Sentinels of the Devourer"); - Tooltip.SetDefault("Signus. The Void. The Weaver.\n" + - "Each represent one of the Devourer’s largest spheres of influence.\n" + - "Dispatching them has most likely invoked its anger and marked you as a target for destruction."); - SacrificeTotal = 1; - ItemID.Sets.ItemNoGravity[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 20; - Item.height = 20; - Item.consumable = false; - Item.rare = ModContent.RarityType(); - } - - public override bool CanUseItem(Player player) - { - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - CreateRecipe(). - AddIngredient(). - AddTile(TileID.Bookcases). - Register(); - } - } -} diff --git a/Items/LoreItems/LoreAwakening.cs b/Items/LoreItems/LoreAwakening.cs new file mode 100644 index 0000000000..b544788aea --- /dev/null +++ b/Items/LoreItems/LoreAwakening.cs @@ -0,0 +1,37 @@ +using Terraria; +using Terraria.ID; + +namespace CalamityMod.Items.LoreItems +{ + public class LoreAwakening : LoreItem + { + public override string Lore => +@"The tombs of the Dragons stir. My eyes lift to see ancient dust dancing from high ledges. +These grand wings… how long has it been since I was a hero worthy of their name? +It feels like centuries have passed, and all I've done is blink. +Look upon my works, as they are. Ruined. None would dare seek me out, tread my path. +Naught awaits them in this cruel world."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Awakening"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Blue; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(ItemID.ArmorStatue). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/LoreAwakening.png b/Items/LoreItems/LoreAwakening.png new file mode 100644 index 0000000000000000000000000000000000000000..db8279fa7f8e9bbbfafeb5048a20f92b3ce1da09 GIT binary patch literal 415 zcmV;Q0bu@#P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGf6951U69E94oEQKA0W?WOK~zXfV;~i* zHF5h7!cZ>JfC);E0+InEl!k*^Jw2@9-+bv3SnXqff3Upl#*G+y@d3KU5!_WUpQvcF zfcf#u&tY{jx{rJ!!+?0TErij23qnHy%x7z-=YsV;c?Kc}B90C`lmgQ*AE4)hm#v4vG|VSC zP@kZy!v*MHGN7jxba49IZ7{tlLKjRk=J(?D2`r9w?)nMl)89uh0Q1@N7Z1RE7}$J# z7g#N!(z_`;8!SIyB?I1Y#s<)R1PcLlfSwxZ=A%(C*xPjs3;>kacg^rU`SSn(002ov JPDHLkV1myQsht1- literal 0 HcmV?d00001 diff --git a/Items/LoreItems/LoreCeaselessVoid.cs b/Items/LoreItems/LoreCeaselessVoid.cs new file mode 100644 index 0000000000..59f7ecde89 --- /dev/null +++ b/Items/LoreItems/LoreCeaselessVoid.cs @@ -0,0 +1,44 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Rarities; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeSentinels")] + public class LoreCeaselessVoid : LoreItem + { + public override string Lore => +@"A contained, previously inert portal sealed in the Dungeon. The presiding cult kept it a closely guarded secret. +Upon sighting the Devourer of Gods, their leader hurriedly led me to its chamber to reveal its existence to me. +The portal led to the Devourer’s home. It was identical to his, only ancient and perfectly stable. +The serpent claimed it, too, was his creation. Its permanence was a mistake he later rectified. +But this rift was unquestionably far older than he. It dated back to the Golden Age of Dragons. +His lie was thin and forced. Something far more powerful than the Devourer was at hand. +Its eerie persistence gnawed at my mind. It did not just threaten me. It threatened everyone. Everything. +Even faced with such lies and eminent danger, I simply walked away, and did not return."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Ceaseless Void"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.consumable = false; + Item.rare = ModContent.RarityType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/KnowledgeSentinels.png b/Items/LoreItems/LoreCeaselessVoid.png similarity index 100% rename from Items/LoreItems/KnowledgeSentinels.png rename to Items/LoreItems/LoreCeaselessVoid.png diff --git a/Items/LoreItems/LoreCynosure.cs b/Items/LoreItems/LoreCynosure.cs new file mode 100644 index 0000000000..cc50300a01 --- /dev/null +++ b/Items/LoreItems/LoreCynosure.cs @@ -0,0 +1,35 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Rarities; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + public class LoreCynosure : LoreItem + { + public override string Lore => "This lore item isn't finished yet."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Cynosure"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.consumable = false; + Item.rare = ModContent.RarityType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/LoreCynosure.png b/Items/LoreItems/LoreCynosure.png new file mode 100644 index 0000000000000000000000000000000000000000..a1e3043817ec34657c4854deb620f72a309b6ad8 GIT binary patch literal 443 zcmV;s0Yv_ZP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGf6951U69E94oEQKA0Z>UqK~zXfV;~jW zaC7?)!cZ>JfC);E0+InEl!k+Hb#JWU-+6N@SndCMb+9~R<4p{`_yFDF2<|GFPfR%= zLLnEoV0AINkI+K^mwx*B2Ell!+7|5l z3Z}2TWCPPMpV7}pwjAwX7lvDTfCX~)8DjO3TA~J6-Nkv;U_M7f3z)X#)B@8dD%OMb zt5Z-*rf=YUL +@"Though her title is lofty, she is more an emissary for the powers beyond and forces of nature. +In broad daylight, she can channel the Primordial Light itself, making her nigh untouchable. +Thankfully, left with only starlight to wield, she falls like any other graceless despot. +Her penchant for leeching the strength of other great beings is uniquely deplorable. +It made her obsequious. Dependent, but willingly so, as they enabled her to slake her base thirst. +I had deigned to slay her myself for her treachery, but she was a notoriously evasive mark."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Empress of Light"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Pink; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(ItemID.FairyQueenTrophy). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/LoreEmpressofLight.png b/Items/LoreItems/LoreEmpressofLight.png new file mode 100644 index 0000000000000000000000000000000000000000..b94752107002b39e4577ba7818c731819926137a GIT binary patch literal 454 zcmV;%0XhDOP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGf6951U69E94oEQKA0b5B#K~zXfV;~ir zE3y6$!cZ>JfC);E0+InEl!gOb;cwJ)6s-3DeowGGqvLiAz4!p#;t1|4m`@D7`M`W! zE=KoJh?*iw2sqj+gX!$qdrDgP?g6U}OYOu>;acG(53!)hQ zt3mkm^ARkS;Q}z9OiED%^Pe%qfN3wQC185TH6<|3a2P_tQse*szK{@rf`N-8^nCL8 z{yh-Iuh&eFOtjQ(eF=*?;gZm=6PMZrul~B~*IDnj|kOYFhDmSje^16u47;T06-Uj3z9k%Qvd(}07*qoM6N<$f+v2x-~a#s literal 0 HcmV?d00001 diff --git a/Items/LoreItems/LoreQueenSlime.cs b/Items/LoreItems/LoreQueenSlime.cs new file mode 100644 index 0000000000..80770d2f4e --- /dev/null +++ b/Items/LoreItems/LoreQueenSlime.cs @@ -0,0 +1,36 @@ +using Terraria; +using Terraria.ID; + +namespace CalamityMod.Items.LoreItems +{ + public class LoreQueenSlime : LoreItem + { + public override string Lore => +@"Having fled after your battle, it seems the Slime God fashioned a new guardian from the unleashed essences. +Ensnared in the absorption process of its newfound power, it could not flee again. +Or, perhaps, it was overcome by arrogance or desperation. +A glorious hunt, a fine foe. Now you know you must chase them to the ends of Terraria."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Queen Slime"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.rare = ItemRarityID.Pink; + Item.consumable = false; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(ItemID.QueenSlimeTrophy). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/LoreQueenSlime.png b/Items/LoreItems/LoreQueenSlime.png new file mode 100644 index 0000000000000000000000000000000000000000..a8536f1d61e6811d978bed4c044d1b79628251f3 GIT binary patch literal 410 zcmV;L0cHM)P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0WV2JK~zXfV{}ei z@t*+*_Rfl61kr>*D1$0kJq(0Oih${`=f_d>GeK#p1EO3B0x*}ZX1I-_=f9&jMEu4( zFdyb}`nfo5_J6PoW~DL`?Hdqy)zk&ncVPN@FrQ{F#xNM0Os +@"An aberration that defies all explanation, borne of the Distortion and revered by the Onyx Kinsmen. +Almost all information about this entity is sourced from that enigmatic clan. All else is hearsay. +It has been reported to manifest in multiple places at once. Its capacity for deceit and ruthless cunning is peerless. +Statis’ compatriot Braelor dueled me to a standstill. With our blades locked, the ronin lunged for the lethal blow. +The Devourer is not one for honor or loyalty. But he sensed weakness. Hesitation. An easy prey. +The serpent ensnared both my assailants in a dimensional vortex. He assured me they were as good as dead. +Yet, Statis must have struck a bargain with Signus, as he escaped his banishment unscathed."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Signus"); // Signus, the Blade Between? + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.consumable = false; + Item.rare = ModContent.RarityType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/LoreSignus.png b/Items/LoreItems/LoreSignus.png new file mode 100644 index 0000000000000000000000000000000000000000..503d18f9a0ebcdcc9bbf0947a90afe49bb42f737 GIT binary patch literal 572 zcmV-C0>k}@P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGf6951U69E94oEQKA0ntfBK~z{rV;~n; zsd)bfVJMd&By!?^5QcIo224-aP`-$L?$;%Z}k2VlV(p zUu%}e^fR{5bDVw+!H z2m8!dTobGo#)pL%EF>c}UBPshQ4E;I6=JZEl9E;e^PfGv2d2?OZt#X!Wan|P575E# za!ZsDf`u4*np^2m0H&8*-wCFHxf4ux2S$MDJ+~f%>8?qcVEwzMYys!nD4754(rYjc3qcsL(Xs`rQS zPax%x!hbF>4a}V=X2L=a1_*@|3=H28TfA!_*o&5Q70&$O#BQ z+Fc($K +@"This beast, while of lesser stature than the Devourer, is a great danger in its own right. +They are clearly of the same species. Even this serpent was known to devour Wyverns whole. +Very little is known about the realm or space that the Great Devourer hails from. +Even Draedon and his obsessive research has been unable to discern its true nature. +The Weaver slipped through a rift from this place opened by the Devourer, and he has monitored it since. +In his mind, the lesser serpent’s similar powers could lead it to be too threatening for him to let live. +He thinks himself invincible. Little does he know, he has ever stood in a similar position."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Storm Weaver"); + } + + public override void SetDefaults() + { + Item.width = 20; + Item.height = 20; + Item.consumable = false; + Item.rare = ModContent.RarityType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddTile(TileID.Bookcases). + Register(); + } + } +} diff --git a/Items/LoreItems/LoreStormWeaver.png b/Items/LoreItems/LoreStormWeaver.png new file mode 100644 index 0000000000000000000000000000000000000000..503d18f9a0ebcdcc9bbf0947a90afe49bb42f737 GIT binary patch literal 572 zcmV-C0>k}@P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGf6951U69E94oEQKA0ntfBK~z{rV;~n; zsd)bfVJMd&By!?^5QcIo224-aP`-$L?$;%Z}k2VlV(p zUu%}e^fR{5bDVw+!H z2m8!dTobGo#)pL%EF>c}UBPshQ4E;I6=JZEl9E;e^PfGv2d2?OZt#X!Wan|P575E# za!ZsDf`u4*np^2m0H&8*-wCFHxf4ux2S$MDJ+~f%>8?qcVEwzMYys!nD4754(rYjc3qcsL(Xs`rQS zPax%x!hbF>4a}V=X2L=a1_*@|3=H28TfA!_*o&5Q70&$O#BQ z+Fc($K Date: Sun, 22 Jan 2023 16:30:41 -0500 Subject: [PATCH 03/12] 1 - Awakening lore item drops from Starter Bag 2 - Each sentinel now drops their own lore item 3 - Queen Slime now drops her lore item 4 - Empress of Light now drops her lore item 5 - Defeating both Exos and SCal drops the Cynosure lore item --- Items/TreasureBags/MiscGrabBags/StarterBag.cs | 6 +++++- NPCs/CalamityGlobalNPCLoot.cs | 6 ++++++ NPCs/CeaselessVoid/CeaselessVoid.cs | 18 ++++++++---------- NPCs/ExoMechs/Ares/AresBody.cs | 8 ++++++++ NPCs/Signus/Signus.cs | 12 ++++++------ NPCs/StormWeaver/StormWeaverHead.cs | 2 +- NPCs/SupremeCalamitas/SupremeCalamitas.cs | 8 ++++++++ Utilities/DropHelper.cs | 4 +++- 8 files changed, 45 insertions(+), 19 deletions(-) diff --git a/Items/TreasureBags/MiscGrabBags/StarterBag.cs b/Items/TreasureBags/MiscGrabBags/StarterBag.cs index c88cb14537..3515a8b442 100644 --- a/Items/TreasureBags/MiscGrabBags/StarterBag.cs +++ b/Items/TreasureBags/MiscGrabBags/StarterBag.cs @@ -1,4 +1,5 @@ -using CalamityMod.Items.Pets; +using CalamityMod.Items.LoreItems; +using CalamityMod.Items.Pets; using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Items.Weapons.Summon; using Terraria; @@ -67,6 +68,9 @@ namespace CalamityMod.Items.TreasureBags.MiscGrabBags if (musicMod is not null) itemLoot.Add(musicMod.Find("CalamityMusicbox").Type); + // Awakening lore item + itemLoot.Add(ModContent.ItemType()); + // Aleksh donator item // Name specific: "Aleksh" or "Shark Lad" static bool getsLadPet(DropAttemptInfo info) diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index c1c7904e2e..fe2ff8fd58 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -1128,6 +1128,9 @@ namespace CalamityMod.NPCs rev.Add(ItemID.QueenSlimeMasterTrophy); rev.Add(ItemID.QueenSlimePetItem, 4); + // Lore + npcLoot.AddConditionalPerPlayer(() => !NPC.downedQueenSlime, ModContent.ItemType(), desc: DropHelper.FirstKillText); + break; case NPCID.TheDestroyer: @@ -1449,6 +1452,9 @@ namespace CalamityMod.NPCs rev.Add(ItemID.FairyQueenMasterTrophy); rev.Add(ItemID.FairyQueenPetItem, 4); + // Lore + npcLoot.AddConditionalPerPlayer(() => !NPC.downedEmpressOfLight, ModContent.ItemType(), desc: DropHelper.FirstKillText); + break; case NPCID.CultistBoss: diff --git a/NPCs/CeaselessVoid/CeaselessVoid.cs b/NPCs/CeaselessVoid/CeaselessVoid.cs index a8c26fe00c..22e2a231f7 100644 --- a/NPCs/CeaselessVoid/CeaselessVoid.cs +++ b/NPCs/CeaselessVoid/CeaselessVoid.cs @@ -44,7 +44,7 @@ namespace CalamityMod.NPCs.CeaselessVoid Scale = 0.55f, }; NPCID.Sets.NPCBestiaryDrawOffset[Type] = value; - NPCID.Sets.MPAllowedEnemies[Type] = true; + NPCID.Sets.MPAllowedEnemies[Type] = true; } public override void SetDefaults() @@ -76,8 +76,8 @@ namespace CalamityMod.NPCs.CeaselessVoid bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.TheDungeon, - // Will move to localization whenever that is cleaned up. - new FlavorTextBestiaryInfoElement("A mysterious entity that acts as a portal to elsewhere. Little is known about its origins, other than that it was sealed away by the cultists.") + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A mysterious entity that acts as a portal to elsewhere. Little is known about its origins, other than that it was sealed away by the cultists.") }); } @@ -192,8 +192,6 @@ namespace CalamityMod.NPCs.CeaselessVoid return false; } - public static bool LastSentinelKilled() => !DownedBossSystem.downedCeaselessVoid && DownedBossSystem.downedStormWeaver && DownedBossSystem.downedSignus; - public override void OnKill() { CalamityGlobalNPC.SetNewBossJustDowned(NPC); @@ -225,10 +223,10 @@ namespace CalamityMod.NPCs.CeaselessVoid // Vanity normalOnly.Add(ModContent.ItemType(), 7); - var godSlayerVanity = ItemDropRule.Common(ModContent.ItemType(), 20); - godSlayerVanity.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); - godSlayerVanity.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); - normalOnly.Add(godSlayerVanity); + var godSlayerVanity = ItemDropRule.Common(ModContent.ItemType(), 20); + godSlayerVanity.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); + godSlayerVanity.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); + normalOnly.Add(godSlayerVanity); normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } @@ -238,7 +236,7 @@ namespace CalamityMod.NPCs.CeaselessVoid npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(LastSentinelKilled, ModContent.ItemType(), desc: DropHelper.SentinelText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedCeaselessVoid, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void ScaleExpertStats(int numPlayers, float bossLifeScale) diff --git a/NPCs/ExoMechs/Ares/AresBody.cs b/NPCs/ExoMechs/Ares/AresBody.cs index 89f3fff0ec..9d3c6d40c4 100644 --- a/NPCs/ExoMechs/Ares/AresBody.cs +++ b/NPCs/ExoMechs/Ares/AresBody.cs @@ -1533,6 +1533,14 @@ namespace CalamityMod.NPCs.ExoMechs.Ares // Lore item mainDrops.Add(ItemDropRule.ByCondition(DropHelper.If(() => !DownedBossSystem.downedExoMechs, desc: DropHelper.FirstKillText), ModContent.ItemType())); + // Cynosure: If SCal has been defeated and this is the first kill of the Exo Mechs, drop the special lore item + mainDrops.Add(ItemDropRule.ByCondition( + DropHelper.If( + () => !DownedBossSystem.downedExoMechs && DownedBossSystem.downedSCal, + desc: DropHelper.CynosureText), + ModContent.ItemType() + )); + // Treasure bag npcLoot.Add(ItemDropRule.BossBagByCondition(DropHelper.If(CanDropLoot), ModContent.ItemType())); diff --git a/NPCs/Signus/Signus.cs b/NPCs/Signus/Signus.cs index 79d8b0d59d..adbffacbab 100644 --- a/NPCs/Signus/Signus.cs +++ b/NPCs/Signus/Signus.cs @@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.Signus value.Position.X += 6f; value.Position.Y += 10f; NPCID.Sets.NPCBestiaryDrawOffset[Type] = value; - NPCID.Sets.MPAllowedEnemies[Type] = true; + NPCID.Sets.MPAllowedEnemies[Type] = true; } public override void SetDefaults() @@ -911,10 +911,10 @@ namespace CalamityMod.NPCs.Signus // Vanity normalOnly.Add(ModContent.ItemType(), 7); - var godSlayerVanity = ItemDropRule.Common(ModContent.ItemType(), 20); - godSlayerVanity.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); - godSlayerVanity.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); - normalOnly.Add(godSlayerVanity); + var godSlayerVanity = ItemDropRule.Common(ModContent.ItemType(), 20); + godSlayerVanity.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); + godSlayerVanity.OnSuccess(ItemDropRule.Common(ModContent.ItemType())); + normalOnly.Add(godSlayerVanity); normalOnly.Add(ModContent.ItemType(), ThankYouPainting.DropInt); } @@ -924,7 +924,7 @@ namespace CalamityMod.NPCs.Signus npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(LastSentinelKilled, ModContent.ItemType(), desc: DropHelper.SentinelText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedSignus, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void ScaleExpertStats(int numPlayers, float bossLifeScale) diff --git a/NPCs/StormWeaver/StormWeaverHead.cs b/NPCs/StormWeaver/StormWeaverHead.cs index bcb676fbee..319e17083f 100644 --- a/NPCs/StormWeaver/StormWeaverHead.cs +++ b/NPCs/StormWeaver/StormWeaverHead.cs @@ -991,7 +991,7 @@ namespace CalamityMod.NPCs.StormWeaver npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); // Lore - npcLoot.AddConditionalPerPlayer(LastSentinelKilled, ModContent.ItemType(), desc: DropHelper.SentinelText); + npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedStormWeaver, ModContent.ItemType(), desc: DropHelper.FirstKillText); } public override void ScaleExpertStats(int numPlayers, float bossLifeScale) diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 06039c2ca1..5235e22b2b 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -2642,6 +2642,14 @@ namespace CalamityMod.NPCs.SupremeCalamitas // Lore npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedSCal, ModContent.ItemType(), desc: DropHelper.FirstKillText); + + // Cynosure: If the Exo Mechs have been defeated and this is the first kill of SCal, drop the special lore item + npcLoot.Add(ItemDropRule.ByCondition( + DropHelper.If( + () => DownedBossSystem.downedExoMechs && !DownedBossSystem.downedSCal, + desc: DropHelper.CynosureText), + ModContent.ItemType() + )); } #endregion diff --git a/Utilities/DropHelper.cs b/Utilities/DropHelper.cs index 7dc03fdc21..ba85f6e8b3 100644 --- a/Utilities/DropHelper.cs +++ b/Utilities/DropHelper.cs @@ -115,11 +115,13 @@ namespace CalamityMod public static string FirstKillText = "Drops only on the first kill"; public static string BloodMoonText = "Drops during the Blood Moon"; public static string MechBossText = "Drops on the first kill of the final Mechanical Boss"; - public static string SentinelText = "Drops on the first kill of the final Sentinel of the Devourer"; + public static string CynosureText = "Drops once you have defeated both Draedon and Calamitas"; + public static string ProvidenceHallowText = "Drops if Providence was summoned in the Hallow\nor if Providence is only attacked during nighttime"; public static string ProvidenceUnderworldText = "Drops if Providence was summoned in the Underworld\nor if Providence is only attacked during nighttime"; public static string ProvidenceNightText = "Drops if Providence is only attacked during nighttime"; public static string ProvidenceChallengeText = $"Drops if Providence was defeated only with the [i:{ModContent.ItemType()}] Profaned Soul Artifact\nThis is an Expert Mode drop rate"; + #endregion #region Block Drops From 1e111ec60f03e0dcad91e9a265b55756f71b83c3 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 22 Jan 2023 16:40:03 -0500 Subject: [PATCH 04/12] Fixed cross-mod features for new lore items e.g. Boss Checklist --- ModSupport/WeakReferenceSupport.cs | 167 +++++++++++++++-------------- 1 file changed, 87 insertions(+), 80 deletions(-) diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 1b636ed1d3..0788a83376 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -187,7 +187,7 @@ namespace CalamityMod public static void WikiThisSupport() { - // Wikithis is a clientside mod + // Wikithis is a clientside mod if (Main.netMode == NetmodeID.Server) return; @@ -196,88 +196,95 @@ namespace CalamityMod if (wiki is null) return; - bool oldVersion = wiki.Version < new Version(2, 4, 7, 5); + bool oldVersion = wiki.Version < new Version(2, 4, 7, 5); - wiki.Call("AddModURL", calamity, oldVersion ? CalamityWikiURLOld : CalamityWikiURL); - wiki.Call(0, calamity, oldVersion ? CalamityWikiURLOld : CalamityWikiURL); - wiki.Call("AddWikiTexture", calamity, ModContent.Request("CalamityMod/ModSupport/WikiThisIcon")); - wiki.Call(3, calamity, ModContent.Request("CalamityMod/ModSupport/WikiThisIcon")); + wiki.Call("AddModURL", calamity, oldVersion ? CalamityWikiURLOld : CalamityWikiURL); + wiki.Call(0, calamity, oldVersion ? CalamityWikiURLOld : CalamityWikiURL); + wiki.Call("AddWikiTexture", calamity, ModContent.Request("CalamityMod/ModSupport/WikiThisIcon")); + wiki.Call(3, calamity, ModContent.Request("CalamityMod/ModSupport/WikiThisIcon")); - // Clear up name conflicts + // Clear up name conflicts void ItemRedirect(int item, string pageName) { - wiki.Call(1, item, pageName); + wiki.Call(1, item, pageName); } void EnemyRedirect(int item, string pageName) { - wiki.Call(2, item, pageName); + wiki.Call(2, item, pageName); } - // Items - ItemRedirect(ModContent.ItemType(), "Blood Orange (calamity)"); - ItemRedirect(ModContent.ItemType(), "Elderberry (calamity)"); - ItemRedirect(ModContent.ItemType(), "Pineapple (calamity)"); - ItemRedirect(ModContent.ItemType(), "Trash Can (pet)"); - ItemRedirect(ModContent.ItemType(), "Butcher (weapon)"); - ItemRedirect(ModContent.ItemType(), "Sandstorm (weapon)"); - ItemRedirect(ModContent.ItemType(), "Thunderstorm (weapon)"); - // Lore items - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + // Items + ItemRedirect(ModContent.ItemType(), "Blood Orange (calamity)"); + ItemRedirect(ModContent.ItemType(), "Elderberry (calamity)"); + ItemRedirect(ModContent.ItemType(), "Pineapple (calamity)"); + ItemRedirect(ModContent.ItemType(), "Trash Can (pet)"); + ItemRedirect(ModContent.ItemType(), "Butcher (weapon)"); + ItemRedirect(ModContent.ItemType(), "Sandstorm (weapon)"); + ItemRedirect(ModContent.ItemType(), "Thunderstorm (weapon)"); + // Lore items + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); - // Enemies - EnemyRedirect(ModContent.NPCType(), "Catfish (enemy)"); - EnemyRedirect(ModContent.NPCType(), "Hive (enemy)"); - EnemyRedirect(ModContent.NPCType(), "Crown Jewel (enemy)"); - EnemyRedirect(ModContent.NPCType(), "Tooth Ball (Old Duke)"); - EnemyRedirect(ModContent.NPCType(), "Enchantment"); - EnemyRedirect(ModContent.NPCType(), "%3F%3F%3F"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); + + // Enemies + EnemyRedirect(ModContent.NPCType(), "Catfish (enemy)"); + EnemyRedirect(ModContent.NPCType(), "Hive (enemy)"); + EnemyRedirect(ModContent.NPCType(), "Crown Jewel (enemy)"); + EnemyRedirect(ModContent.NPCType(), "Tooth Ball (Old Duke)"); + EnemyRedirect(ModContent.NPCType(), "Enchantment"); + EnemyRedirect(ModContent.NPCType(), "%3F%3F%3F"); } // Wrapper function to add bosses to Boss Checklist. @@ -669,7 +676,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("CeaselessVoid", out float order); List bosses = new List() { NPCType(), NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Dungeon"; string despawn = CalamityUtils.ColorMessage("The rift in time and space has moved away from your reach.", new Color(0x4B, 0x00, 0x82)); AddBoss(bossChecklist, calamity, "Ceaseless Void", order, bosses, DownedCeaselessVoid, summon, collection, instructions, despawn, () => true); @@ -680,7 +687,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("StormWeaver", out float order); List segments = new List() { NPCType(), NPCType(), NPCType() }; int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in Space"; string despawn = CalamityUtils.ColorMessage("Storm Weaver hid itself once again within the stormfront.", new Color(0xEE, 0x82, 0xEE)); string bossLogTex = "CalamityMod/NPCs/StormWeaver/StormWeaverHead_Head_Boss"; @@ -697,7 +704,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Signus", out float order); int type = NPCType(); int summon = ItemType(); - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Underworld"; string despawn = CalamityUtils.ColorMessage("The Devourer's assassin has finished its easy task.", new Color(0xBA, 0x55, 0xD3)); AddBoss(bossChecklist, calamity, "Signus", order, type, DownedSignus, summon, collection, instructions, despawn, () => true); @@ -781,7 +788,7 @@ namespace CalamityMod { BossDifficulty.TryGetValue("ExoMechs", out float order); List bosses = new List() { NPCType(), NPCType(), NPCType(), NPCType() }; - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = "By using a high-tech computer"; string despawn = CalamityUtils.ColorMessage("An imperfection after all... what a shame.", new Color(0x7F, 0xFF, 0xD4)); @@ -803,7 +810,7 @@ namespace CalamityMod int summon2 = ItemType(); int altar = ItemType(); List summons = new List() { summon1, summon2 }; - List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use [i:{summon1}] or a [i:{summon2}] as offering at an [i:{altar}]"; string despawn = CalamityUtils.ColorMessage("Please don't waste my time.", new Color(0xFF, 0xA5, 0x00)); string bossHeadTex = "CalamityMod/NPCs/SupremeCalamitas/HoodedHeadIcon"; @@ -929,7 +936,7 @@ namespace CalamityMod // Queen Slime AddLoot(bossChecklist, "QueenSlime", new List() { ItemID.HallowedKey }, - new List() { ItemType() } + new List() { ItemType(), ItemType() } ); // The Twins @@ -966,7 +973,7 @@ namespace CalamityMod // Empress of Light AddLoot(bossChecklist, "HallowBoss", null, - new List() { ItemType() } + new List() { ItemType(), ItemType() } ); // Duke Fishron From 4c3fb91b0e55f85878491a3d7b3dc4cec275ab8e Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 22 Jan 2023 17:05:10 -0500 Subject: [PATCH 05/12] Implemented Old Duke's lore --- Items/LoreItems/LoreOldDuke.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Items/LoreItems/LoreOldDuke.cs b/Items/LoreItems/LoreOldDuke.cs index b358b20c35..adadfe493d 100644 --- a/Items/LoreItems/LoreOldDuke.cs +++ b/Items/LoreItems/LoreOldDuke.cs @@ -9,7 +9,13 @@ namespace CalamityMod.Items.LoreItems [LegacyName("KnowledgeOldDuke")] public class LoreOldDuke : LoreItem { - public override string Lore => "This lore item isn't finished yet."; + public override string Lore => +@"That was possibly one of the oldest mundane living beings on the face of the planet. +The first Fishrons were spotted in the middle of the Draconic Era. What exotic prestige…! +Fishrons were one of the original offshoots of pure-blooded Auric Dragons. +They are so old and venerated that many historians are convinced they are the original sea monsters of folklore. +This particular Duke’s guile is self-evident; it evaded centuries of hunting, and until now had survived a most thorough poisoning. +Above almost all others, this creature was a living fable. One most wonder what goes through the mind of a fading legend."; public override void SetStaticDefaults() { From 80229045395f7c5bab5bde6a9359711b43d35a5a Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 22 Jan 2023 17:25:24 -0500 Subject: [PATCH 06/12] Implemented DoG's lore item --- Items/LoreItems/LoreDevourerofGods.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Items/LoreItems/LoreDevourerofGods.cs b/Items/LoreItems/LoreDevourerofGods.cs index 51db2453fd..8145770d83 100644 --- a/Items/LoreItems/LoreDevourerofGods.cs +++ b/Items/LoreItems/LoreDevourerofGods.cs @@ -9,7 +9,16 @@ namespace CalamityMod.Items.LoreItems [LegacyName("KnowledgeDevourerofGods")] public class LoreDevourerofGods : LoreItem { - public override string Lore => "This lore item isn't finished yet."; + public override string Lore => +@"The infamous, otherworldly glutton, in the flesh. His imposing title was self-granted, but truth made it stick. +He is a formidable foe, capable of swallowing Gods whole, absorbing their essence in its entirety. +I ordered Draedon to armor his gargantuan form, so he could safely best even great Gods in single combat. +Fittingly, he had a serpent’s tongue. He manipulated me incessantly, driving me to awful acts. +I recruited him out of desperation. My war had dragged on for decades, and I would do anything to have it end. +It was then my negligence was born. My descent began the moment recruiting this scoundrel crossed my mind. +His dearth of loyalty was clear as day, even at the time. However, I suspect it goes beyond that. +The Devourer’s alien capabilities and domineering tactics hint that his allegiance lay elsewhere. +Is he but one soldier, of a malevolence far beyond…?"; public override void SetStaticDefaults() { From fe0066f1899d179df3f8f4e9283ad542425ce419 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 22 Jan 2023 17:58:32 -0500 Subject: [PATCH 07/12] Implemented Yharon's lore --- Items/LoreItems/LoreItem.cs | 9 ++++----- Items/LoreItems/LoreYharon.cs | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Items/LoreItems/LoreItem.cs b/Items/LoreItems/LoreItem.cs index 5307e9f34a..aa9aed1d53 100644 --- a/Items/LoreItems/LoreItem.cs +++ b/Items/LoreItems/LoreItem.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.LoreItems // This string contains the actual lore of the lore item public virtual string Lore => ""; // By default, lore text appears in white, but this can be changed. - public virtual Color LoreColor => Color.White; + public virtual Color? LoreColor => null; public override void SetStaticDefaults() { @@ -68,10 +68,9 @@ namespace CalamityMod.Items.LoreItems tooltips.RemoveRange(tooltipIndex, tooltipCount); // Replace them with the full lore. - TooltipLine fullLore = new(Mod, "CalamityMod:Lore", Lore) - { - OverrideColor = LoreColor - }; + TooltipLine fullLore = new(Mod, "CalamityMod:Lore", Lore); + if (LoreColor.HasValue) + fullLore.OverrideColor = LoreColor.Value; tooltips.Insert(tooltipIndex, fullLore); } } diff --git a/Items/LoreItems/LoreYharon.cs b/Items/LoreItems/LoreYharon.cs index a8181ee88b..a6e6a89b8a 100644 --- a/Items/LoreItems/LoreYharon.cs +++ b/Items/LoreItems/LoreYharon.cs @@ -9,7 +9,21 @@ namespace CalamityMod.Items.LoreItems [LegacyName("KnowledgeYharon")] public class LoreYharon : LoreItem { - public override string Lore => "This lore item isn't finished yet."; + public override string Lore => +@"The return of the Age of Dragons, dashed. Just like that, it is but ashes in the wind… +Yharon was the last of the Auric Dragons. As a phoenix, his domain of power includes rebirth. +The Gods thought him culled with the rest of his kind, but he returned as an egg, hidden on the Aerie. +I was destined to consume his Auric soul when he hatched, and rule forever as God-King. + +[c/FCA92B:Destiny is for the weak.] + +I rejected their whims, and upended their scheme. I was sentenced to execution for treason. +Their meek, ingratiated swine cast both Yharon’s egg and I into the magma of Hell. +The intense heat hideously scarred me, but birthed Yharon anew. He rose, wreathed in fire, and saved my life. +From that day, our souls were one. He shared with me the tale of Zeratros, and the genocide of his kind. +I promised him I would have justice. So the war began, Yharon rallying all as a beacon of hope. +Now, that hope is long withered. I am but a husk of the hero I once was, and this is the ultimate proof. +Yharon may yet return, as he does, but he… he has bade me farewell."; public override void SetStaticDefaults() { From 873f7ced72c8bd099df2b95ddb69e1b13650641c Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 22 Jan 2023 18:38:10 -0500 Subject: [PATCH 08/12] Implemented the Exo Mechs lore --- Items/LoreItems/LoreExoMechs.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Items/LoreItems/LoreExoMechs.cs b/Items/LoreItems/LoreExoMechs.cs index 42f4f48a02..6e736b3154 100644 --- a/Items/LoreItems/LoreExoMechs.cs +++ b/Items/LoreItems/LoreExoMechs.cs @@ -9,7 +9,16 @@ namespace CalamityMod.Items.LoreItems [LegacyName("KnowledgeExoMechs")] public class LoreExoMechs : LoreItem { - public override string Lore => "This lore item isn't finished yet."; + public override string Lore => +@"What a terrifying marvel of engineering. Draedon’s specialty always lay in the machines of war, but these are immaculate. +His bold claim that no God can match his work is, however, incorrect. He is not privy to the Traitor almighty. +Regardless, from steel and wit alone, he has forged engines of destruction that rival Calamitas. +It brings me little comfort to remark that even she, at least, has a heart to speak of. +Draedon is an amoral monster beyond compare. He is entirely devoid of humanity and compassion. +With technology this incomprehensibly advanced, he stands at the precipice of apotheosis. +He can fabricate such dreadful, synthetic nightmares at will. His resources must be nigh unlimited. +Were he to lose his temper, if he even has one, all of life’s hopes would be smothered in an instant, silenced by a torrent of silicon. +Though, perhaps you may leverage his unimaginable craft to your advantage, and seek insight from him."; public override void SetStaticDefaults() { From af6eed61967c53e7467d9eab7df02dc968f2f944 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 22 Jan 2023 19:53:15 -0500 Subject: [PATCH 09/12] Implemented Calamitas' lore --- Items/LoreItems/LoreCalamitas.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Items/LoreItems/LoreCalamitas.cs b/Items/LoreItems/LoreCalamitas.cs index f406b4fec0..81c88d6b3d 100644 --- a/Items/LoreItems/LoreCalamitas.cs +++ b/Items/LoreItems/LoreCalamitas.cs @@ -9,8 +9,20 @@ namespace CalamityMod.Items.LoreItems [LegacyName("KnowledgeCalamitas")] public class LoreCalamitas : LoreItem { - public override string Lore => "This lore item isn't finished yet."; - + public override string Lore => +@"None have borne the brunt of misfortune quite like the Brimstone Witch, Calamitas. +When first I saw her, she was still a girl. Prostrated in my court, garbed in charred rags, trembling. +I could not grasp the unfathomable, raw power of the fell magics that coursed through her. +She could scant control it herself. Permafrost recognized this immediately. With a pained face, he counseled me to look after her. +The Witch entered his tutelage, and soon after, my service. She was ablaze with desire to douse the Gods in her wicked wrath. +Indeed, the faithful already quaked in her presence. Her name was a moniker of theirs, one uttered quietly in fear. +In my campaigns, I counted on her sheer capacity for annihilation as my ace in the hole. +No man, no army, no city, and no God could stand against her unbridled fury. +Eventually, the girl’s horrific sin was too much for her to bear. She left my side along with her mentor. +The weight of her deeds haunts her to this day. She despises me, and I cannot blame her. +Please, if you would, show her respect where I did not."; + + public override void SetStaticDefaults() { base.SetStaticDefaults(); From 2fd44cc9d015b027f38d82694e3bef1c7e6e7008 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 22 Jan 2023 20:33:51 -0500 Subject: [PATCH 10/12] Implemented Cynosure lore item (effectively Yharim's lore item) --- Items/LoreItems/LoreCynosure.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Items/LoreItems/LoreCynosure.cs b/Items/LoreItems/LoreCynosure.cs index cc50300a01..33f37a72e6 100644 --- a/Items/LoreItems/LoreCynosure.cs +++ b/Items/LoreItems/LoreCynosure.cs @@ -8,7 +8,16 @@ namespace CalamityMod.Items.LoreItems { public class LoreCynosure : LoreItem { - public override string Lore => "This lore item isn't finished yet."; + public override string Lore => +@"You now stand at the brink of infinity. The power you have amassed is extraordinary. +Valor and deceit, truth and falsehood, loyalty and betrayal… you are beyond these notions. +All, you have rent asunder as they crossed your path. The very land now bends to your will. +Do you not see how the grass parts where you step, how the stars illuminate where you gaze? +Terraria itself kneels to you, whether it be out of fear or respect. +This is the strength the Dragons held. The primordial power they commanded. +Little stands between us now. If you did not seek battle with me, I doubt you would have come so far. +When you are prepared, seek the grave of the Light, at the summit of the Dragon Aerie. +I await your challenge."; public override void SetStaticDefaults() { From 8c063ca89ebc2c5499db0e86c0ca6baaca8c4b45 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 22 Jan 2023 20:34:07 -0500 Subject: [PATCH 11/12] no items are supposed to use the CalamityRed rarity, not even memes --- Items/Potions/Fabsoup.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Items/Potions/Fabsoup.cs b/Items/Potions/Fabsoup.cs index 3945fc9e27..b8cf6eb86b 100644 --- a/Items/Potions/Fabsoup.cs +++ b/Items/Potions/Fabsoup.cs @@ -4,7 +4,6 @@ using Terraria; using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; -using Microsoft.Xna.Framework; namespace CalamityMod.Items.Potions { @@ -23,7 +22,7 @@ namespace CalamityMod.Items.Potions Item.width = 56; Item.height = 50; Item.value = 0; - Item.rare = ModContent.RarityType(); + Item.rare = ModContent.RarityType(); Item.maxStack = 1; Item.consumable = false; Item.useAnimation = 901; From 9a72e5be0ffd7255450e0187c22d216fc41ca284 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 22 Jan 2023 20:45:48 -0500 Subject: [PATCH 12/12] forgot to give empress lore proper rarity --- Items/LoreItems/LoreEmpressofLight.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/LoreItems/LoreEmpressofLight.cs b/Items/LoreItems/LoreEmpressofLight.cs index c899a5acc5..275ba1999a 100644 --- a/Items/LoreItems/LoreEmpressofLight.cs +++ b/Items/LoreItems/LoreEmpressofLight.cs @@ -23,7 +23,7 @@ I had deigned to slay her myself for her treachery, but she was a notoriously ev { Item.width = 20; Item.height = 20; - Item.rare = ItemRarityID.Pink; + Item.rare = ItemRarityID.Yellow; Item.consumable = false; }