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

31 lines
951 B
C#

using Decimation.Lib.Items;
using Decimation.Lib.Util;
using Terraria;
using Terraria.ModLoader;
namespace Decimation.Content.Items.Misc
{
internal class Thermoplasm : DecimationItem
{
protected override string ItemName => "Thermoplasm";
protected override string ItemTooltip => "It resonates with the heat of the planet's core";
protected override void Init()
{
item.width = 26;
item.height = 36;
item.value = Item.sellPrice(silver: 50);
item.rare = Rarity.Yellow.GetRarityValue();
}
}
public class ThermoplasmDrop : GlobalNPC
{
public override void NPCLoot(NPC npc)
{
if (Main.LocalPlayer.ZoneUnderworldHeight && Main.rand.NextBool(20))
Item.NewItem((int) npc.position.X, (int) npc.position.Y, npc.width, npc.height,
ModContent.ItemType<Thermoplasm>());
}
}
}