Files
CalamityModPublic/Items/Accessories/EtherealTalisman.cs
T
Ozzatron eaa04280ba 1 - Properly separated all Cosmic Anvil and Draedon's Forge recipes.
2 - An extremely large number of recipe changes. Far too many to remember.
3 - Occult Stone and furniture are now made at the Ancient Manipulator.
4 - 1 Core of Calamity now requires 1 Ashes of Calamity.
5 - Renamed the Calamitous Altar to Altar of the Accursed.
6 - All Cosmilite tier items are made at the Cosmic Anvil.
7 - Standardized the costs of all late game (Cosmilite tier and beyond) items.
2021-09-12 20:07:50 -04:00

59 lines
2.0 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class EtherealTalisman : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Ethereal Talisman");
Tooltip.SetDefault("15% increased magic damage, 5% increased magic critical strike chance and 10% decreased mana usage\n" +
"+150 max mana\n" +
"Increases pickup range for mana stars\n" +
"You automatically use mana potions when needed if visibility is on");
}
public override void SetDefaults()
{
item.width = 28;
item.height = 32;
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.eTalisman = true;
player.manaMagnet = true;
if (!hideVisual)
player.manaFlower = true;
player.statManaMax2 += 150;
player.magicDamage += 0.15f;
player.manaCost *= 0.9f;
player.magicCrit += 5;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<SigilofCalamitas>());
recipe.AddIngredient(ItemID.ManaFlower);
recipe.AddIngredient(ItemID.LunarBar, 8);
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 4);
recipe.AddIngredient(ModContent.ItemType<AscendantSpiritEssence>(), 4);
recipe.AddTile(ModContent.TileType<CosmicAnvil>());
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}