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
61 lines
2.3 KiB
C#
61 lines
2.3 KiB
C#
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Rarities;
|
|
using CalamityMod.Tiles.Furniture.CraftingStations;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class EclipseMirror : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
SacrificeTotal = 1;
|
|
DisplayName.SetDefault("Eclipse Mirror");
|
|
Tooltip.SetDefault("Its reflection shows naught but darkness\n" +
|
|
"+10 maximum stealth\n" +
|
|
"6% increased rogue damage, and 6% increased rogue crit chance\n" +
|
|
"Vastly reduces enemy aggression, even in the abyss\n" +
|
|
"Stealth generates 25% faster when standing still\n" +
|
|
"Mobile stealth generation exponentially accelerates while not attacking\n" +
|
|
"Stealth strikes only expend 50% of your max stealth\n" +
|
|
"Grants the ability to evade attacks in a blast of darksun light, which inflicts extreme damage in a wide area\n" +
|
|
"Evading an attack grants full stealth but has a 90 second cooldown\n" +
|
|
"This cooldown is shared with all other dodges and reflects");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 38;
|
|
Item.height = 38;
|
|
Item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
|
Item.rare = ModContent.RarityType<DarkBlue>();
|
|
Item.accessory = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.stealthGenStandstill += 0.25f;
|
|
modPlayer.rogueStealthMax += 0.1f;
|
|
modPlayer.eclipseMirror = true;
|
|
modPlayer.stealthStrikeHalfCost = true;
|
|
player.GetCritChance<ThrowingDamageClass>() += 6;
|
|
player.GetDamage<ThrowingDamageClass>() += 0.06f;
|
|
player.aggro -= 700;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<AbyssalMirror>().
|
|
AddIngredient<DarkGodsSheath>().
|
|
AddIngredient<DarksunFragment>(20).
|
|
AddTile<CosmicAnvil>().
|
|
Register();
|
|
}
|
|
}
|
|
}
|