Files
CalamityModPublic/Items/Armor/ReaverVisage.cs
T
Andrew Marheine 5cbca25f5f 1 - Movement speed nerfs on several armor sets, Shattered Community and all prefixes. Buffed some armor pieces to compensate.
2 - Holy Wrath and Profaned Rage no longer provide movement speed.
3 - Holy Wrath no longer provides horizontal flight speed.
4 - Mirage Jellys can now be hit at all times, even while they're teleporting.
5 - King Slime Jewel can now be killed.
6 - Profaned Energy Lanterns no longer deal contact damage.
7 - Plague Mines can now be damaged at all times.
2022-01-08 16:17:43 -06:00

73 lines
2.4 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Armor
{
[AutoloadEquip(EquipType.Head)]
public class ReaverVisage : ModItem
{
//Jump/Flight Boosts and Movement Speed Helm
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Reaver Visage");
Tooltip.SetDefault("10% increased jump speed and 15% increased movement speed");
}
public override void SetDefaults()
{
item.width = 24;
item.height = 28;
item.value = Item.buyPrice(0, 30, 0, 0);
item.rare = ItemRarityID.Lime;
item.defense = 13; //46
}
public override bool IsArmorSet(Item head, Item body, Item legs)
{
return body.type == ModContent.ItemType<ReaverScaleMail>() && legs.type == ModContent.ItemType<ReaverCuisses>();
}
public override void ArmorSetShadows(Player player)
{
player.armorEffectDrawShadowSubtle = true;
player.armorEffectDrawOutlines = true;
}
public override void UpdateArmorSet(Player player)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.reaverSpeed = true;
modPlayer.wearingRogueArmor = true;
player.setBonus = "Grants immunity to fall damage and allows constant jumping\n" +
"10% increased flight time and horizontal wing speed\n" +
"Hooks fly out and retract 10% faster\n" +
"Reduces the cooldown of dashes";
player.noFallDmg = true;
player.autoJump = true;
if (player.miscCounter % 3 == 2 && player.dashDelay > 0)
player.dashDelay--;
}
public override void UpdateEquip(Player player)
{
player.jumpSpeedBoost += 0.5f;
player.moveSpeed += 0.15f;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<DraedonBar>(), 6);
recipe.AddIngredient(ItemID.JungleSpores, 4);
recipe.AddIngredient(ModContent.ItemType<EssenceofCinder>());
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}