1. Reverted Sand Cloak cooldown to 30 seconds 2. Changed Ink Bomb cooldown to 20 seconds 3. Nerfed Dark God's Sheath and Eclipse Mirror stealth acceleration bonuses 4. Nerfed Dragon Scales tornado damage 5. Nerfed Abyssal Mirror stealth regen 6. Buffed Eclipse mirror standing still regen 7. Nerfed Mirage Mirror stealth regen 8. Nerfed Spectral veil stealth regen while moving, now increases stealth regen while standing still 9. Nerfed max stealth of aerospec, statigel, sulphurous, victide, and gladiator armors 10. Buffed Magic Missile damage 11. Nerfed Scuttler's Jewel 12. Made Vigilance projectiles less opaque 13. Reduced the amount of laughs from Vigilance seekers 14. Increased the speed of Perdition's projectiles
50 lines
1.8 KiB
C#
50 lines
1.8 KiB
C#
using CalamityMod.Rarities;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class SpectralVeil : ModItem
|
|
{
|
|
public const float TeleportRange = 845f;
|
|
public override void SetStaticDefaults()
|
|
{
|
|
SacrificeTotal = 1;
|
|
DisplayName.SetDefault("Spectral Veil");
|
|
Tooltip.SetDefault("The inside of the cloak is full of teeth...\n" +
|
|
"TOOLTIP LINE HERE\n" +
|
|
"If you dodge something while invulnerable, you instantly gain full stealth\n" +
|
|
"Teleportation is disabled while Chaos State is active\n" +
|
|
"Stealth generates 15% faster");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 30;
|
|
Item.height = 38;
|
|
Item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
|
Item.rare = ModContent.RarityType<Turquoise>();
|
|
Item.accessory = true;
|
|
}
|
|
|
|
public override void ModifyTooltips(List<TooltipLine> list)
|
|
{
|
|
string hotkey = CalamityKeybinds.SpectralVeilHotKey.TooltipHotkeyString();
|
|
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1");
|
|
|
|
if (line != null)
|
|
line.Text = "Press " + hotkey + " to consume 25% of your maximum stealth to perform a mid-range teleport and render you momentarily invulnerable";
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
player.Calamity().spectralVeil = true;
|
|
player.Calamity().stealthGenMoving += 0.15f;
|
|
player.Calamity().stealthGenStandstill += 0.15f;
|
|
}
|
|
}
|
|
}
|