Add boss bags

This commit is contained in:
2025-11-21 14:14:57 +00:00
parent 02177bb173
commit bd2427e102
17 changed files with 269 additions and 9 deletions
+7
View File
@@ -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
+7
View File
@@ -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>()));
}
}
}
+7
View File
@@ -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>()));
}
}
}
+7
View File
@@ -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>()));
}
}
}