2 - Counter Scarf is no longer dropped by EoC and is now sold by the Clothier for 10 gold.
56 lines
1.7 KiB
C#
56 lines
1.7 KiB
C#
using CalamityMod.CalPlayer;
|
|
using CalamityMod.World;
|
|
using System.Collections.Generic;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.DataStructures;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class BlazingCore : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Blazing Core");
|
|
Tooltip.SetDefault("The searing core of the profaned goddess\n" +
|
|
"10% damage reduction\n" +
|
|
"Being hit creates a miniature sun that lingers, dealing damage to nearby enemies\n" +
|
|
"The sun will slowly drag enemies into it\n" +
|
|
"Only one sun can be active at once\n" +
|
|
"Provides a moderate amount of light in the Abyss");
|
|
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 6));
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 42;
|
|
item.height = 46;
|
|
item.accessory = true;
|
|
item.rare = ItemRarityID.Purple;
|
|
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
|
}
|
|
|
|
public override void ModifyTooltips(List<TooltipLine> list)
|
|
{
|
|
if (CalamityWorld.death)
|
|
{
|
|
foreach (TooltipLine line2 in list)
|
|
{
|
|
if (line2.mod == "Terraria" && line2.Name == "Tooltip5")
|
|
{
|
|
line2.text = "Provides a moderate amount of light in the Abyss\n" +
|
|
"Provides heat and cold protection in Death Mode";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.blazingCore = true;
|
|
}
|
|
}
|
|
}
|