Omega_Nightfueled

Untitled

Jul 27th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. using System.Collections.Generic;
  4. using Microsoft.Xna.Framework;
  5. using Terraria.ModLoader;
  6. using Terraria;
  7. using Terraria.ID;
  8. using Terraria.DataStructures;
  9. using Terraria.Utilities;
  10. using Microsoft.Xna.Framework.Graphics;
  11.  
  12. namespace OmegasArsenal.NPCs
  13. {
  14. public class PinkJellyfish : GlobalNPC
  15. {
  16. public override bool InstancePerEntity
  17. {
  18. get
  19. {
  20. return true;
  21. }
  22. }
  23.  
  24. public override void NPCLoot(NPC npc)
  25. {
  26. if (npc.type == NPCID.PinkJellyfish)
  27. {
  28. if (Main.rand.Next(1) == 0)
  29. Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GreenMucos"));
  30. Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.PurpleMucos;
  31. }
  32.  
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment