Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Terraria;
- using Terraria.ID;
- using Terraria.ModLoader;
- namespace InfinityGauntletMod.Items
- {
- class MyGlobalNPC : GlobalNPC
- {
- private bool downedboss1;
- public bool Downedboss1 { get => downedboss1; set => downedboss1 = value; }
- public override void NPCLoot(NPC npc)
- {
- if (npc.type == NPCID.DungeonGuardian)
- {
- Item.NewItem(npc.getRect(), mod.ItemType("MindStone"));
- }
- { }
- }
- public override bool PreNPCLoot(NPC npc)
- {
- {
- }
- if (Downedboss1)
- NPCLoader.blockLoot.Add(mod.ItemType("MindStone"));
- return true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement