Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. using Terraria;
  2. using Terraria.ID;
  3. using Terraria.ModLoader;
  4.  
  5.  
  6. namespace InfinityGauntletMod.Items
  7. {
  8. class MyGlobalNPC : GlobalNPC
  9. {
  10. private bool downedboss1;
  11.  
  12. public bool Downedboss1 { get => downedboss1; set => downedboss1 = value; }
  13.  
  14. public override void NPCLoot(NPC npc)
  15. {
  16. if (npc.type == NPCID.DungeonGuardian)
  17.  
  18. {
  19. Item.NewItem(npc.getRect(), mod.ItemType("MindStone"));
  20.  
  21. }
  22. { }
  23. }
  24.  
  25.  
  26. public override bool PreNPCLoot(NPC npc)
  27. {
  28.  
  29. {
  30. }
  31. if (Downedboss1)
  32.  
  33.  
  34.  
  35.  
  36. NPCLoader.blockLoot.Add(mod.ItemType("MindStone"));
  37. return true;
  38.  
  39.  
  40.  
  41. }
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement