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

How to make enemies drop multiple of the same item

$
0
0
Hey, I've been working on a mod of mine, "Weapuns and Other Shenanigans." I'm trying to make bunnies drop multiple carrots at once. Only, I don't know how to do that. Here's what little code I have.
public override void NPCLoot(NPC npc)
{
if(npc.type == NPCID.Bunny)
{
if (Main.rand.Next(74) == 0) //item rarity
{
Item.NewItem((int)npc.position.X,...

How to make enemies drop multiple of the same item

Viewing all articles
Browse latest Browse all 7890

Latest Images

Trending Articles



Latest Images