From 8ce60b5ccf2f32a5b44e6d470ccac78b69cf77e2 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 5 Dec 2020 14:00:21 -0500 Subject: [PATCH] moved darksun eclipse loot to the EventLoot section --- NPCs/CalamityGlobalNPCLoot.cs | 50 ++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 78ed19ac71..f84969b7fd 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -1428,23 +1428,6 @@ namespace CalamityMod.NPCs case NPCID.Reaper: case NPCID.Psycho: DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedCalamitas || NPC.downedPlantBoss, Main.expertMode ? 0.75f : 0.5f, 1, 4); - DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.buffedEclipse, Main.expertMode ? 0.06f : 0.04f, 1, 1); - break; - - //other solar eclipse creatures - case NPCID.Eyezor: - case NPCID.Frankenstein: - case NPCID.SwampThing: - case NPCID.Vampire: - case NPCID.VampireBat: - case NPCID.CreatureFromTheDeep: - case NPCID.Fritz: - case NPCID.ThePossessed: - case NPCID.Butcher: - case NPCID.DeadlySphere: - case NPCID.DrManFly: - case NPCID.Nailhead: - DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.buffedEclipse, Main.expertMode ? 0.06f : 0.04f, 1, 1); break; case NPCID.MartianOfficer: @@ -1579,13 +1562,36 @@ namespace CalamityMod.NPCs return; } - if (npc.type == NPCID.Mothron) + if (eclipse) { - DropHelper.DropItem(npc, ModContent.ItemType(), 10, 20); + switch (npc.type) + { + case NPCID.Reaper: + case NPCID.Psycho: + case NPCID.Eyezor: + case NPCID.Frankenstein: + case NPCID.SwampThing: + case NPCID.Vampire: + case NPCID.VampireBat: + case NPCID.CreatureFromTheDeep: + case NPCID.Fritz: + case NPCID.ThePossessed: + case NPCID.Butcher: + case NPCID.DeadlySphere: + case NPCID.DrManFly: + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 0.06f : 0.04f); + break; + case NPCID.Nailhead: + DropHelper.DropItem(npc, ModContent.ItemType(), 3, 5); + break; + case NPCID.Mothron: + DropHelper.DropItem(npc, ModContent.ItemType(), 10, 20); - // Mark a buffed Mothron as killed (allowing access to Yharon P2) - CalamityWorld.downedBuffedMothron = true; - CalamityNetcode.SyncWorld(); + // Mark a buffed Mothron as killed + CalamityWorld.downedBuffedMothron = true; + CalamityNetcode.SyncWorld(); + break; + } } } #endregion