From 7e89986ea644f3074921404db3dff8af22aa41a4 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Mon, 30 Nov 2020 12:35:45 -0500 Subject: [PATCH] removed the consumable profaned core --- Items/SummonItems/ProfanedCore.cs | 52 ------------------ Items/SummonItems/ProfanedCore.png | Bin 524 -> 0 bytes Items/SummonItems/ProfanedCoreUnlimited.cs | 11 ---- ModSupport/WeakReferenceSupport.cs | 10 ++-- .../ProfanedGuardians/ProfanedGuardianBoss.cs | 2 +- 5 files changed, 6 insertions(+), 69 deletions(-) delete mode 100644 Items/SummonItems/ProfanedCore.cs delete mode 100644 Items/SummonItems/ProfanedCore.png diff --git a/Items/SummonItems/ProfanedCore.cs b/Items/SummonItems/ProfanedCore.cs deleted file mode 100644 index bafef3f868..0000000000 --- a/Items/SummonItems/ProfanedCore.cs +++ /dev/null @@ -1,52 +0,0 @@ -using CalamityMod.NPCs.Providence; -using CalamityMod.World; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.SummonItems -{ - public class ProfanedCore : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Profaned Core"); - Tooltip.SetDefault("The core of the unholy flame\n" + - "Summons Providence\n" + - "Should be used during daytime"); - } - - public override void SetDefaults() - { - item.width = 20; - item.height = 20; - item.maxStack = 20; - item.useAnimation = 45; - item.useTime = 45; - item.useStyle = ItemUseStyleID.HoldingUp; - item.consumable = true; - item.rare = 10; - item.Calamity().customRarity = CalamityRarity.Turquoise; - } - - public override bool CanUseItem(Player player) - { - return !NPC.AnyNPCs(ModContent.NPCType()) && (player.ZoneHoly || player.ZoneUnderworldHeight) && CalamityWorld.downedBossAny; - } - - public override bool UseItem(Player player) - { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/ProvidenceSpawn"), (int)player.position.X, (int)player.position.Y); - if (Main.netMode != NetmodeID.MultiplayerClient) - { - int npc = NPC.NewNPC((int)(player.position.X + Main.rand.Next(-500, 501)), (int)(player.position.Y - 250f), ModContent.NPCType(), 1); - Main.npc[npc].timeLeft *= 20; - CalamityUtils.BossAwakenMessage(npc); - } - else - NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType()); - - return true; - } - } -} diff --git a/Items/SummonItems/ProfanedCore.png b/Items/SummonItems/ProfanedCore.png deleted file mode 100644 index 1496674bd64d5e9e9b7225f3fe20fa9bef93e880..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 524 zcmV+n0`vWeP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02y>eSaefwW^{L9 za%BK;VQFr3E^cLXAT%y8E-^Tx(Sq^-00DeSL_t(oN8OgON&`U>>u9kFNyx`Y8N;5l8mnJ_W?dgytd!BjN~?3A2f| z+UqW)yVI$F060=ay5EnjM{i6nYAr9hklV9k;qBoJ7Krq_v3N@j*=wx$4 z2&E+m-TSq`8X*HGhX)nt_nHPom;Jq&^j23YAks(5ntl4k?L`z2OixD@w3s78#F{$$ z?L}l!AtEh+=0t=7ji6tE=X~CJUsOP{izw)UtQn+nFGFEgt)wP27a`Ce0gd;=Z2^IE zci$)>FW8)jPyoa<#)NYVNGK`ECgOAD4=j|1un%>|Pdg#2jocK|$Rzi*#E zW}?_NDu!?SeauB%r}XuTy5GKd%tVBN`U>pJ>0&P8=>Cr=n}DPd6~z}pAHI2a)L-`i O0000()); - recipe.AddIngredient(ModContent.ItemType(), 50); - recipe.AddTile(TileID.LunarCraftingStation); - recipe.SetResult(this); - recipe.AddRecipe(); - } } } diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index ff17885d08..1511c8fe34 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -415,7 +415,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("ProfanedGuardians", out float order); int type = NPCType(); int summon = ItemType(); - List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemID.GreaterHealingPotion }; + List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemID.GreaterHealingPotion }; List collection = new List() { 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)); @@ -438,14 +438,14 @@ namespace CalamityMod // Providence { BossDifficulty.TryGetValue("Providence", out float order); - List bosses = new List() { NPCType(), NPCType(), NPCType(), NPCType() }; - List summons = new List() { ItemType(), ItemType() }; + int type = NPCType(); + int summon = ItemType(); List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemID.SuperHealingPotion }; List collection = new List() { ItemType(), ItemType(), ItemType() }; - string instructions = $"Use either [i:{ItemType()}] or [i:{ItemType()}] in the Hallow or Underworld Biomes"; + 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_BossChecklist"; - AddBoss(bossChecklist, calamity, "Providence", order, bosses, DownedProvidence, summons, loot, collection, instructions, despawn, bossLogTex); + AddBoss(bossChecklist, calamity, "Providence", order, type, DownedProvidence, summon, loot, collection, instructions, despawn, bossLogTex); } // Ceaseless Void diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs b/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs index 0fe6677b87..ef43e27238 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs @@ -432,7 +432,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); DropHelper.DropItemChance(npc, ModContent.ItemType(), 4); - DropHelper.DropItem(npc, ModContent.ItemType()); + DropHelper.DropItem(npc, ModContent.ItemType()); DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedGuardians); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedGuardians, 5, 2, 1);