21 lines
631 B
C#
21 lines
631 B
C#
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using Terraria.GameContent.ItemDropRules;
|
|
|
|
namespace ForgottenWawiTech.Content.Items.Global
|
|
{
|
|
// Adds BeamAttackWand to Eye of Cthulhu treasure bag loot table.
|
|
public class EyeOfCthulhuBagLoot : GlobalItem
|
|
{
|
|
public override void ModifyItemLoot(Item item, ItemLoot itemLoot)
|
|
{
|
|
if (item.type == ItemID.EyeOfCthulhuBossBag)
|
|
{
|
|
// 1 in 3 chance (adjust if too common)
|
|
itemLoot.Add(ItemDropRule.Common(ModContent.ItemType<Weapons.Magic.BeamAttackWand>(), 3));
|
|
}
|
|
}
|
|
}
|
|
}
|