moved darksun eclipse loot to the EventLoot section

This commit is contained in:
termigator1359 committed 2020-12-05 14:00:21 -05:00
1 parent 925932ddd4
commit 8ce60b5ccf
1 file changed
+28 -22
+28 -22
View File
@@ -1428,23 +1428,6 @@ namespace CalamityMod.NPCs
case NPCID.Reaper:
case NPCID.Psycho:
DropHelper.DropItemCondition(npc, ModContent.ItemType<SolarVeil>(), CalamityWorld.downedCalamitas || NPC.downedPlantBoss, Main.expertMode ? 0.75f : 0.5f, 1, 4);
DropHelper.DropItemCondition(npc, ModContent.ItemType<DarksunFragment>(), 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<DarksunFragment>(), 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<DarksunFragment>(), 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<DarksunFragment>(), Main.expertMode ? 0.06f : 0.04f);
break;
case NPCID.Nailhead:
DropHelper.DropItem(npc, ModContent.ItemType<DarksunFragment>(), 3, 5);
break;
case NPCID.Mothron:
DropHelper.DropItem(npc, ModContent.ItemType<DarksunFragment>(), 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