Files
CalamityModPublic/Items/LoreItems/KnowledgeOldDuke.cs
T
Ozzatron c7116a17eb 1 - Removed ItemSpecific rarity, it was useless.
2 - Removed int wrapper for CalamityRarity enum.
3 - Fixed a mistake in The Pack code, it wasn't labeled as a donor item.
2021-01-31 18:03:07 -05:00

43 lines
1.3 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Furniture.Trophies;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.LoreItems
{
public class KnowledgeOldDuke : LoreItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Old Duke");
Tooltip.SetDefault("Strange, to find out that the mutant terror of the seas was not alone in its unique biology.\n" +
"Perhaps I was mistaken to classify the creature from its relation to pigrons alone.");
}
public override void SetDefaults()
{
item.width = 20;
item.height = 20;
item.Calamity().customRarity = CalamityRarity.PureGreen;
item.consumable = false;
}
public override bool CanUseItem(Player player)
{
return false;
}
public override void AddRecipes()
{
ModRecipe r = new ModRecipe(mod);
r.SetResult(this);
r.AddTile(TileID.Bookcases);
r.AddIngredient(ModContent.ItemType<OldDukeTrophy>());
r.AddIngredient(ModContent.ItemType<VictoryShard>(), 10);
r.AddRecipe();
}
}
}