From 2b659cc4014e592dbe4448468a9d9a31d660d85b Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Mon, 23 Jan 2023 11:58:02 -0500 Subject: [PATCH] Implemented new Astral Infection lore --- Items/LoreItems/KnowledgeAstralInfection.cs | 41 ----------------- Items/LoreItems/LoreAstralInfection.cs | 42 ++++++++++++++++++ ...lInfection.png => LoreAstralInfection.png} | Bin ModSupport/WeakReferenceSupport.cs | 4 +- NPCs/AstrumDeus/AstrumDeusHead.cs | 2 +- 5 files changed, 45 insertions(+), 44 deletions(-) delete mode 100644 Items/LoreItems/KnowledgeAstralInfection.cs create mode 100644 Items/LoreItems/LoreAstralInfection.cs rename Items/LoreItems/{KnowledgeAstralInfection.png => LoreAstralInfection.png} (100%) diff --git a/Items/LoreItems/KnowledgeAstralInfection.cs b/Items/LoreItems/KnowledgeAstralInfection.cs deleted file mode 100644 index 5114851e88..0000000000 --- a/Items/LoreItems/KnowledgeAstralInfection.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 KnowledgeAstralInfection : LoreItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Astral Infection"); - Tooltip.SetDefault("This twisted dreamscape, surrounded by unnatural pillars under a dark and hazy sky.\n" + - "Natural law has been upturned. What will you make of it?"); - 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/LoreAstralInfection.cs b/Items/LoreItems/LoreAstralInfection.cs new file mode 100644 index 0000000000..2d689ec930 --- /dev/null +++ b/Items/LoreItems/LoreAstralInfection.cs @@ -0,0 +1,42 @@ +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + [LegacyName("KnowledgeAstralInfection")] + public class LoreAstralInfection : LoreItem + { + public override string Lore => +@"This twisted dreamscape is a starborne equivalent of the mundane rot you see in your lands. +I do not claim to understand the process in detail, but even the stars above can die. Left unchecked, their corpses bloat and fester. +Typically, some semblance of order is maintained. It is not unlike the circle of life. +Cosmic beings patrol the fathomless void and pick at the carrion, leaving clean bones. +The infection itself is a disturbance from deep space. It has a mind of its own, and projects its will upon life and land. +Those whose minds can grasp the true form of the universe, are largely immune. +They cannot be starstruck by a supposed higher truth, let alone one preached by a pustule."; + + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + DisplayName.SetDefault("Astral Infection"); + } + + 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/KnowledgeAstralInfection.png b/Items/LoreItems/LoreAstralInfection.png similarity index 100% rename from Items/LoreItems/KnowledgeAstralInfection.png rename to Items/LoreItems/LoreAstralInfection.png diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 850692ec88..59e1960bce 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -222,7 +222,7 @@ 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"); @@ -609,7 +609,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"; diff --git a/NPCs/AstrumDeus/AstrumDeusHead.cs b/NPCs/AstrumDeus/AstrumDeusHead.cs index c917abc456..65dfae5cd5 100644 --- a/NPCs/AstrumDeus/AstrumDeusHead.cs +++ b/NPCs/AstrumDeus/AstrumDeusHead.cs @@ -347,7 +347,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); } public override void OnHitPlayer(Player player, int damage, bool crit)