Decimation_Mod/Content/Items/Boss/Arachnus/MoltenKey.cs
FyloZ 884e67c5e2 Updated some potions's sprite.
Changed buy price to sell price.
2020-07-09 18:03:44 -04:00

34 lines
1.0 KiB
C#

using Decimation.Lib.Items;
using Decimation.Lib.Util;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Decimation.Content.Items.Boss.Arachnus
{
internal class MoltenKey : DecimationItem
{
protected override string ItemName => "Molten Key";
protected override string ItemTooltip => "A strange key used to open a forbidden temple deep inside this world";
protected override void Init()
{
item.width = 20;
item.height = 36;
item.consumable = true;
item.value = Item.sellPrice(0, 45);
item.rare = Rarity.Red.GetRarityValue();
item.maxStack = 1;
}
public class DropFromMoonLord : GlobalNPC
{
public override void NPCLoot(NPC npc)
{
if (npc.type == NPCID.MoonLordCore)
Item.NewItem((int) npc.position.X, (int) npc.position.Y, npc.width, npc.height,
ModContent.ItemType<MoltenKey>());
}
}
}
}