2 - Made summoner and mage god slayer helms into vanity, they now drop from the sentinels. 3 - Made melee, ranged and rogue silva helms into vanity, they now drop from DoG. 4 - Reduced Eclipse Mirror evade explosion damage. 5 - Adjusted how Alchemical Flask works. 6 - Made various accessory and set bonus effects no longer random. 7 - Reduced various accessory projectile damage values. 8 - Most dodges are disabled if a reflection effect is on cooldown. 9 - Added Hallowed Ore item and tile. 10 - Astral Fossils and Silt no longer drop hardmode ores if the new progression requirements are not met. 11 - Vanilla fishing crates no longer drop hardmode ores if the new progression requirements are not met. 12 - Nerfed Aegis Blade right click. 13 - Mech bosses will not drop hallowed bars until they are all defeated. 14 - Wall of Flesh spawns hardmode tier 1 ores on death. 15 - Wall of Flesh sets broken altar count to 1 when it dies to enable natural mech boss spawns. 16 - First mech boss fought is 20% weaker in terms of damage and HP. 17 - First mech boss defeated spawns hardmode tier 2 ores. 18 - Second mech boss fought is 10% weaker in terms of damage and HP. 19 - Second mech boss defeated spawns hardmode tier 3 ores. 20 - Third mech boss defeated spawns Hallowed Ore in the hallow. 21 - Gave PBG a circular hitbox. 22 - Reduced Yharon's increased aggression as his HP lowers. 23 - Increased Ceaseless Void's tile enrage range so that it won't enrage as often. 24 - Astrum Deus now resists Tenebreus Tides bonus projectiles that appear from all around. 25 - Increased the drop rates of Bouncing Eyeball, Psychotic Amulet, Giant Shell, Fungal Carapace, Craw Carapace, Vital Jelly, Life Jelly, Mana Jelly, The First Shadowflame, Burning Strife, Elemental in a Bottle and Rare Elemental in a Bottle. 26 - Hopefully fixed Dragonfolly lightning aura damage. 27 - Demon Altars can no longer be broken. 28 - Removed demon altar tooltip from pwnhammer and hammush. 29 - Hallowed Bars can now be crafted from Hallowed Ore. 30 - DoG phase 2 head no longer instakills in death mode. 31 - Added a check for mech bosses in the AnyBossNPCS method. 32 - Made Yharon's total kill time 4 minutes 15 seconds, the extra 15 seconds is due to his invincibility phase that lasts 15 seconds.
90 lines
2.9 KiB
C#
90 lines
2.9 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 AtaxiaMask : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Hydrothermic Mask");
|
|
Tooltip.SetDefault("12% increased magic damage, +100 max mana, and 10% increased magic critical strike chance\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 = 9; //45
|
|
}
|
|
|
|
public override void ModifyTooltips(List<TooltipLine> list)
|
|
{
|
|
if (CalamityWorld.death)
|
|
{
|
|
foreach (TooltipLine line2 in list)
|
|
{
|
|
if (line2.mod == "Terraria" && line2.Name == "Tooltip1")
|
|
{
|
|
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 magic damage and 15% reduced mana usage\n" +
|
|
"Inferno effect when below 50% life\n" +
|
|
"Magic attacks summon damaging and healing flare orbs on hit\n" +
|
|
"You emit a blazing explosion when you are hit";
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.ataxiaBlaze = true;
|
|
modPlayer.ataxiaMage = true;
|
|
player.magicDamage += 0.05f;
|
|
player.manaCost *= 0.85f;
|
|
}
|
|
|
|
public override void UpdateEquip(Player player)
|
|
{
|
|
player.statManaMax2 += 100;
|
|
player.magicDamage += 0.12f;
|
|
player.magicCrit += 10;
|
|
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();
|
|
}
|
|
}
|
|
}
|