Files
CalamityModPublic/Items/DraedonsLogHell.cs
T
DominicKarma42 7c47d2f6f6 Added the last Draedon Logs
Also optimized a few things and removed the "freeze" effect the player recieved when using a log.
2020-07-30 17:22:55 -05:00

34 lines
935 B
C#

using CalamityMod.UI;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items
{
public class DraedonsLogHell : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Draedon's Log - Hell");
Tooltip.SetDefault("Click to view its contents");
}
public override void SetDefaults()
{
item.width = 28;
item.height = 28;
item.rare = ItemRarityID.Red;
item.Calamity().customRarity = CalamityRarity.DraedonRust;
item.useAnimation = item.useTime = 20;
item.useStyle = ItemUseStyleID.HoldingUp;
}
public override bool UseItem(Player player)
{
if (Main.myPlayer == player.whoAmI)
PopupGUIManager.FlipActivityOfGUIWithType(typeof(DraedonLogHellGUI));
return true;
}
}
}