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.
63 lines
2.1 KiB
C#
63 lines
2.1 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 VictideMask : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Victide Mask");
|
|
Tooltip.SetDefault("5% increased magic 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 = 2; //9
|
|
}
|
|
|
|
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 magic 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";
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.victideSet = true;
|
|
player.ignoreWater = true;
|
|
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
|
{
|
|
player.magicDamage += 0.1f;
|
|
player.lifeRegen += 3;
|
|
}
|
|
}
|
|
|
|
public override void UpdateEquip(Player player)
|
|
{
|
|
player.magicDamage += 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();
|
|
}
|
|
}
|
|
}
|