Files
CalamityModPublic/Items/Accessories/EtherealExtorter.cs
T
Altixal e5b0776ae5 most modded sell prices are now 1:5 like normal
and slight price raise to legacy vanity helms
2025-08-11 14:06:01 +07:00

29 lines
870 B
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class EtherealExtorter : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 28;
Item.height = 32;
Item.accessory = true;
Item.value = Item.buyPrice(platinum: 1); // Sold by Bandit
Item.rare = ItemRarityID.Yellow;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.etherealExtorter = true;
player.GetDamage<ThrowingDamageClass>() += 0.08f;
modPlayer.rogueStealthMax += 0.05f;
}
}
}