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.
97 lines
3.5 KiB
C#
97 lines
3.5 KiB
C#
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.World;
|
|
using System.Collections.Generic;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Armor
|
|
{
|
|
[AutoloadEquip(EquipType.Head)]
|
|
public class AtaxiaHood : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Hydrothermic Hood");
|
|
Tooltip.SetDefault("12% increased rogue damage and 10% increased rogue critical strike chance\n" +
|
|
"50% chance to not consume rogue items and 5% increased movement speed\n" +
|
|
"Temporary immunity to lava and immunity to fire damage");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 18;
|
|
item.height = 18;
|
|
item.value = Item.buyPrice(0, 30, 0, 0);
|
|
item.rare = ItemRarityID.Yellow;
|
|
item.defense = 12; //49
|
|
}
|
|
|
|
public override void ModifyTooltips(List<TooltipLine> list)
|
|
{
|
|
if (CalamityWorld.death)
|
|
{
|
|
foreach (TooltipLine line2 in list)
|
|
{
|
|
if (line2.mod == "Terraria" && line2.Name == "Tooltip2")
|
|
{
|
|
line2.text = "Temporary immunity to lava and immunity to fire damage\n" +
|
|
"Provides heat protection in Death Mode";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public override bool IsArmorSet(Item head, Item body, Item legs)
|
|
{
|
|
return body.type == ModContent.ItemType<AtaxiaArmor>() && legs.type == ModContent.ItemType<AtaxiaSubligar>();
|
|
}
|
|
|
|
public override void ArmorSetShadows(Player player)
|
|
{
|
|
player.armorEffectDrawOutlines = true;
|
|
player.Calamity().hydrothermalSmoke = true;
|
|
}
|
|
|
|
public override void UpdateArmorSet(Player player)
|
|
{
|
|
player.setBonus = "5% increased rogue damage\n" +
|
|
"Inferno effect when below 50% life\n" +
|
|
"Rogue weapons unleash a volley of homing chaos flames around the player every 2.5 seconds\n" +
|
|
"You emit a blazing explosion when you are hit\n" +
|
|
"Rogue stealth builds while not attacking and slower while moving, up to a max of 110\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.ataxiaBlaze = true;
|
|
modPlayer.ataxiaVolley = true;
|
|
modPlayer.rogueStealthMax += 1.1f;
|
|
modPlayer.throwingDamage += 0.05f;
|
|
modPlayer.wearingRogueArmor = true;
|
|
}
|
|
|
|
public override void UpdateEquip(Player player)
|
|
{
|
|
player.Calamity().throwingAmmoCost *= 0.5f;
|
|
player.Calamity().throwingDamage += 0.12f;
|
|
player.Calamity().throwingCrit += 10;
|
|
player.moveSpeed += 0.05f;
|
|
player.lavaMax += 240;
|
|
player.buffImmune[BuffID.OnFire] = true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<CruptixBar>(), 7);
|
|
recipe.AddIngredient(ItemID.HellstoneBar, 4);
|
|
recipe.AddIngredient(ModContent.ItemType<CoreofChaos>());
|
|
recipe.AddTile(TileID.MythrilAnvil);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|