add beam wand (thanks lexy)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user