Files
CalamityModPublic/Items/Armor/VictideHeadgear.cs
T
Andrew Marheine 2066ae65c0 1 - Adjusted recipes and/or effects for The Sponge, Deific Amulet, Rampart of Deities, Ethereal Talisman, Fungal Carapace, Sigil of Calamitas, The Absorber and The Amalgam.
2 - Buffed Wulfrum armor damage so that it actually does something to early game weapons and adjusted a few other early game armors as well.
3 - Fixed Large Perf Worm freaking out.
2021-08-30 08:22:34 -05:00

69 lines
2.7 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Armor
{
[AutoloadEquip(EquipType.Head)]
public class VictideHeadgear : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Victide Headgear");
Tooltip.SetDefault("5% increased rogue damage");
}
public override void SetDefaults()
{
item.width = 18;
item.height = 18;
item.value = Item.buyPrice(0, 1, 50, 0);
item.rare = ItemRarityID.Green;
item.defense = 3; //10
}
public override bool IsArmorSet(Item head, Item body, Item legs)
{
return body.type == ModContent.ItemType<VictideBreastplate>() && legs.type == ModContent.ItemType<VictideLeggings>();
}
public override void UpdateArmorSet(Player player)
{
player.setBonus = "+3 life regen and 10% increased rogue damage while submerged in liquid\n" +
"When using any weapon you have a 10% chance to throw a returning seashell projectile\n" +
"This seashell does true damage and does not benefit from any damage class\n" +
"Provides increased underwater mobility and slightly reduces breath loss in the abyss\n" +
"Rogue stealth builds while not attacking and slower while moving, up to a max of 90\n" +
"Once you have built max stealth, you will be able to perform a Stealth Strike\n" +
"Rogue stealth only reduces when you attack, it does not reduce while moving\n" +
"The higher your rogue stealth the higher your rogue damage, crit, and movement speed";
CalamityPlayer modPlayer = player.Calamity();
modPlayer.victideSet = true;
modPlayer.rogueStealthMax += 0.9f;
modPlayer.wearingRogueArmor = true;
player.ignoreWater = true;
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
{
player.Calamity().throwingDamage += 0.1f;
player.lifeRegen += 3;
}
}
public override void UpdateEquip(Player player)
{
player.Calamity().throwingDamage += 0.05f;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<VictideBar>(), 3);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}