Files
CalamityModPublic/Items/LoreItems/KnowledgePerforators.cs
T
DominicKarma42 55e89c9b98 Replaced (hopefully) every magic number with a constant
Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
2020-05-30 17:56:36 -04:00

53 lines
1.7 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 KnowledgePerforators : LoreItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Perforators and their Hive");
Tooltip.SetDefault("An abomination of comingled flesh, bone, and organ, infested primarily by blood-slurping worms.\n" +
"Place in your inventory for all of your projectiles to inflict ichor when in the crimson.\n" +
"However, enemy spawn rates will be greatly increased while in the crimson due to your body excreting a sweet-smelling pus.");
}
public override void SetDefaults()
{
item.width = 20;
item.height = 20;
item.rare = 3;
item.consumable = false;
}
public override bool CanUseItem(Player player)
{
return false;
}
public override void UpdateInventory(Player player)
{
if (player.ZoneCrimson)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.perforatorLore = true;
}
}
public override void AddRecipes()
{
ModRecipe r = new ModRecipe(mod);
r.SetResult(this);
r.AddTile(TileID.Bookcases);
r.AddIngredient(ModContent.ItemType<PerforatorTrophy>());
r.AddIngredient(ModContent.ItemType<VictoryShard>(), 10);
r.AddRecipe();
}
}
}