Quantcast
Channel: General Mod Discussion
Viewing all articles
Browse latest Browse all 7890

How do I give an entity multiple drops?

$
0
0
I want to make bunnies drop carrots, but I already have them dropping another item. How would I allow them to drop both?
Here's what I have so far;
public override void NPCLoot(NPC npc)
{
if(npc.type == NPCID.Bunny)
{
if (Main.rand.Next(18) == 0) //item rarity
{
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagicHatchet"));...

How do I give an entity multiple drops?

Viewing all articles
Browse latest Browse all 7890

Trending Articles