Added Soul of Spite to underworld drops with 20% chance (36% expert)
This commit is contained in:
parent
01a4ad3dea
commit
2fb91f2390
@ -3,6 +3,7 @@ using Decimation.Lib.Util;
|
|||||||
using Terraria;
|
using Terraria;
|
||||||
using Terraria.DataStructures;
|
using Terraria.DataStructures;
|
||||||
using Terraria.ID;
|
using Terraria.ID;
|
||||||
|
using Terraria.ModLoader;
|
||||||
|
|
||||||
namespace Decimation.Content.Items.Misc.Souls
|
namespace Decimation.Content.Items.Misc.Souls
|
||||||
{
|
{
|
||||||
@ -24,17 +25,16 @@ namespace Decimation.Content.Items.Misc.Souls
|
|||||||
ItemID.Sets.ItemIconPulse[item.type] = true;
|
ItemID.Sets.ItemIconPulse[item.type] = true;
|
||||||
ItemID.Sets.ItemNoGravity[item.type] = true;
|
ItemID.Sets.ItemNoGravity[item.type] = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Uncomment when Slime Prince will be done
|
internal class SoulofSpiteNpcEffect : GlobalNPC
|
||||||
/**public class SoulGlobalNPC : GlobalNPC
|
{
|
||||||
|
public override void NPCLoot(NPC npc)
|
||||||
{
|
{
|
||||||
public override void NPCLoot(NPC npc)
|
if (Main.LocalPlayer.ZoneUnderworldHeight &&
|
||||||
{
|
(!Main.expertMode && Main.rand.NextBool(5) || Main.expertMode && Main.rand.NextBool(9, 26)))
|
||||||
if (npc.type == mod.NPCType<SlimePrince>())
|
Item.NewItem((int) npc.position.X, (int) npc.position.Y, npc.width, npc.height,
|
||||||
{
|
ModContent.ItemType<SoulofSpite>());
|
||||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<SoulofSpite>(), Main.rand.Next(12, 25));
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}**/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user