Files
ForgottenWawiTech/Content/Items/TreasureBags/LexyBossBag.cs
T
2025-11-21 14:14:57 +00:00

41 lines
1.3 KiB
C#

using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using ForgottenWawiTech.Content.Items.Accessories;
using ForgottenWawiTech.Content.Items.Materials;
using ForgottenWawiTech.Content.NPCs.OriginalLexy;
using Terraria.GameContent.ItemDropRules;
namespace ForgottenWawiTech.Content.Items.TreasureBags
{
public class LexyBossBag : ModItem
{
public override void SetStaticDefaults()
{
ItemID.Sets.BossBag[Type] = true;
}
public override void SetDefaults()
{
Item.width = 32;
Item.height = 32;
Item.maxStack = 9999;
Item.consumable = true;
Item.rare = ItemRarityID.Expert;
Item.expert = true;
Item.value = Item.buyPrice(gold: 10);
}
public override bool CanRightClick() => true;
public override void ModifyItemLoot(ItemLoot itemLoot)
{
itemLoot.Add(ItemDropRule.Common(ModContent.ItemType<VisorShard>(), 1, 28, 40));
itemLoot.Add(ItemDropRule.Common(ModContent.ItemType<MalfunctioningNanites>(), 1, 12, 18));
itemLoot.Add(ItemDropRule.CoinsBasedOnNPCValue(ModContent.NPCType<Lexy>()));
// TODO: Add Lexy accessories and weapons
itemLoot.Add(ItemDropRule.Common(ModContent.ItemType<EssenceOfClutches>(), 10, 1, 1));
}
}
}