Files
CalamityModPublic/Items/Accessories/SandCloak.cs
T
CongratsIsTrash 115ea116dc Sand Cloak buff/rebalance
* No longer requires rogue stealth to use, decreased cooldown from 30 seconds to 20
* Buffed veil base damage
* Removed accessory's base defense boost and moved it to the sand veil defense boost
* Changed veil's life regen boost to a crit chance boost
2024-07-24 16:30:10 -04:00

29 lines
861 B
C#

using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class SandCloak : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 30;
Item.height = 44;
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
Item.rare = ItemRarityID.Green;
Item.accessory = true;
}
public override void ModifyTooltips(List<TooltipLine> list) => list.IntegrateHotkey(CalamityKeybinds.SandCloakHotkey);
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.moveSpeed += 0.05f;
player.Calamity().sandCloak = true;
}
}
}