Files
CalamityModPublic/Items/Accessories/Calamity.cs
T
Ozzatron 3ba31f1e87 1 - Calamity (accessory) damage 266 -> 320
2 - Calamity (accessory) can crit now and triggers class effects. It automatically uses your best class
2022-12-19 19:46:08 -05:00

54 lines
2.1 KiB
C#

using CalamityMod.Rarities;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class Calamity : ModItem
{
public const float MaxNPCSpeed = 5f;
// This is ONLY the direct DPS of having the cursor over the enemy, not the damage from the flames debuff.
// The debuff is VulnerabilityHex, check that file for its DPS.
public const int BaseDamage = 320;
public const int HitsPerSecond = 12;
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
DisplayName.SetDefault("Calamity");
Tooltip.SetDefault("Lights your cursor ablaze with the Witch's flames, engulfing it in a blazing aura\n" +
"Enemies touching the blaze take immense damage and are inflicted with Vulnerability Hex\n" +
"Equip in a vanity slot to change the cursor without dealing damage\n" +
"These changes work in conjunction with the Rainbow Cursor");
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6));
ItemID.Sets.AnimatesAsSoul[Type] = true;
}
public override void SetDefaults()
{
Item.width = 44;
Item.height = 108;
Item.rare = ModContent.RarityType<Violet>();
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
Item.accessory = true;
}
public override void UpdateVanity(Player player)
{
// Do a vanity/social slot check for SCal's expert drop since alternatives to get this working are a pain in the ass to create.
player.Calamity().blazingCursorVisuals = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().blazingCursorDamage = true;
player.Calamity().blazingCursorVisuals = true;
}
public override void UpdateEquip(Player player) => player.Calamity().blazingCursorVisuals = true;
}
}