Files
CalamityModPublic/Items/Accessories/TheEvolution.cs
T
Andrew Marheine 11654c9841 1 - Fixed some rarity issues.
2 - Edited the Terraria movement speed cap to something more reasonable.
3 - Cal Clone despawns her bullet hell projectiles once the phase is done.
2021-04-30 07:25:11 -05:00

38 lines
1.4 KiB
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class TheEvolution : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Evolution");
Tooltip.SetDefault("You reflect projectiles when they hit you\n" +
"Reflected projectiles deal 10 times damage to enemies and no damage to you\n" +
"This reflect has a 120 second cooldown which is shared with all other dodges and reflects\n" +
"If this effect triggers you get a health regeneration boost for 5 seconds\n" +
"If the same enemy projectile type hits you again you will resist its damage by 15%");
}
public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = CalamityGlobalItem.Rarity12BuyPrice;
item.Calamity().customRarity = CalamityRarity.Turquoise;
item.rare = ItemRarityID.Purple;
item.accessory = true;
item.Calamity().challengeDrop = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.projRefRare = true;
}
}
}