Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.Xna.Framework;
- using Terraria;
- using Terraria.ModLoader;
- namespace DropCrazy
- {
- public class DropCrazy : Mod
- {
- public DropCrazy()
- {
- Properties = new ModProperties()
- {
- Autoload = true,
- };
- }
- }
- public class DropCrazyGlobalNPC : GlobalNPC
- {
- public override void NPCLoot(NPC npc)
- {
- if(Main.rand.NextFloat() < 1.0f) // 100% chance to drop another item
- {
- Item.NewItem(npc.position, npc.width, npc.height, Main.rand.Next(Terraria.ModLoader.ItemLoader.ItemCount));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement