Add boss bags
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Items.Materials;
|
||||
using ForgottenWawiTech.Content.Items.Weapons.Magic;
|
||||
using ForgottenWawiTech.Content.NPCs.OriginalNeptune;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
using ForgottenWawiTech.Content.Items.Tiles.Furniture;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.TreasureBags
|
||||
{
|
||||
public class NeptuneBossBag : 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.sellPrice(gold: 12);
|
||||
}
|
||||
|
||||
public override bool CanRightClick() => true;
|
||||
|
||||
public override void ModifyItemLoot(ItemLoot itemLoot)
|
||||
{
|
||||
itemLoot.Add(ItemDropRule.Common(ModContent.ItemType<HalfEatenFish>(), 1, 28, 40));
|
||||
itemLoot.Add(ItemDropRule.Common(ModContent.ItemType<NeptuneTrophyItem>()));
|
||||
itemLoot.Add(ItemDropRule.CoinsBasedOnNPCValue(ModContent.NPCType<Neptune>()));
|
||||
// TODO: Add Neptune accessories and weapons
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user