Added Soul of Spite to underworld drops with 20% chance (36% expert) after Plantera

This commit is contained in:
FyloZ 2020-07-20 16:16:28 -04:00
parent 2fb91f2390
commit a2935f61ce

View File

@ -31,7 +31,7 @@ namespace Decimation.Content.Items.Misc.Souls
{ {
public override void NPCLoot(NPC npc) public override void NPCLoot(NPC npc)
{ {
if (Main.LocalPlayer.ZoneUnderworldHeight && if (NPC.downedPlantBoss && Main.LocalPlayer.ZoneUnderworldHeight &&
(!Main.expertMode && Main.rand.NextBool(5) || Main.expertMode && Main.rand.NextBool(9, 26))) (!Main.expertMode && Main.rand.NextBool(5) || Main.expertMode && Main.rand.NextBool(9, 26)))
Item.NewItem((int) npc.position.X, (int) npc.position.Y, npc.width, npc.height, Item.NewItem((int) npc.position.X, (int) npc.position.Y, npc.width, npc.height,
ModContent.ItemType<SoulofSpite>()); ModContent.ItemType<SoulofSpite>());