Add boss bags
This commit is contained in:
@@ -2,6 +2,8 @@ using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
using ForgottenWawiTech.Content.Items.TreasureBags;
|
||||
|
||||
namespace ForgottenWawiTech.Content.NPCs.OriginalLexy
|
||||
{
|
||||
@@ -36,6 +38,11 @@ namespace ForgottenWawiTech.Content.NPCs.OriginalLexy
|
||||
NPC.checkDead();
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ItemDropRule.BossBag(ModContent.ItemType<LexyBossBag>()));
|
||||
}
|
||||
|
||||
public override void OnKill()
|
||||
{
|
||||
/* // Spawn LexyNPC when killed
|
||||
|
||||
@@ -4,6 +4,8 @@ using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.Chat;
|
||||
using Terraria.Localization;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
using ForgottenWawiTech.Content.Items.TreasureBags;
|
||||
|
||||
namespace ForgottenWawiTech.Content.NPCs.OriginalLyyka
|
||||
{
|
||||
@@ -178,5 +180,10 @@ namespace ForgottenWawiTech.Content.NPCs.OriginalLyyka
|
||||
// Immediate sync of world flags
|
||||
WorldDefeatedBosses.Sync(ModContent.GetInstance<ForgottenWawiTech>());
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ItemDropRule.BossBag(ModContent.ItemType<LyykaBossBag>()));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,8 @@ using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.Chat;
|
||||
using Terraria.Localization;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
using ForgottenWawiTech.Content.Items.TreasureBags;
|
||||
|
||||
namespace ForgottenWawiTech.Content.NPCs.OriginalNeptune
|
||||
{
|
||||
@@ -132,5 +134,10 @@ namespace ForgottenWawiTech.Content.NPCs.OriginalNeptune
|
||||
// Immediate sync of world flags
|
||||
WorldDefeatedBosses.Sync(ModContent.GetInstance<ForgottenWawiTech>());
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ItemDropRule.BossBag(ModContent.ItemType<NeptuneBossBag>()));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,8 @@ using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.Chat;
|
||||
using Terraria.Localization;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
using ForgottenWawiTech.Content.Items.TreasureBags;
|
||||
|
||||
namespace ForgottenWawiTech.Content.NPCs.OriginalNiko
|
||||
{
|
||||
@@ -232,5 +234,10 @@ namespace ForgottenWawiTech.Content.NPCs.OriginalNiko
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ItemDropRule.BossBag(ModContent.ItemType<NikoBossBag>()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user