Files
CalamityModPublic/Items/VanillaArmorChanges/MoltenArmorSetChange.cs
T
Ozzatron 664c10ae01 1 - No Gravity is no longer a list; each item declares it individually.
2 - True Melee is now two dedicated damage classes. One of them does not use melee speed.
3 - Fixed a bug where Warbanner of the Sun was only giving melee speed.
4 - Standardized defining whether an item is true melee. If it's one of the classes, it's true melee. Otherwise it's not.
5 - All items which are "classic true melee" (projectile-less melee) are re-classed as True Melee automatically.
6 - Renamed Yharon Soul Fragments internally.
7 - Can Fish In Lava is no longer a list; each item declares it individually.
8 - Removed the special true melee damage tooltip, as you will always see true melee damage on applicable weapons now.
2022-07-02 18:13:54 -04:00

32 lines
958 B
C#

using Terraria;
using Terraria.ID;
namespace CalamityMod.Items.VanillaArmorChanges
{
public class MoltenArmorSetChange : VanillaArmorChange
{
public override int? HeadPieceID => ItemID.MoltenHelmet;
public override int? BodyPieceID => ItemID.MoltenBreastplate;
public override int? LegPieceID => ItemID.MoltenGreaves;
public override string ArmorSetName => "Molten";
public const int MiningSpeedPercentSetBonus = 10;
public override void UpdateSetBonusText(ref string setBonusText)
{
string extraLine = "\n20% extra true melee damage\nGrants immunity to fire blocks and temporary immunity to lava";
setBonusText += extraLine;
}
public override void ApplyArmorSetBonus(Player player)
{
player.fireWalk = true;
player.lavaMax += 300;
player.GetDamage<TrueMeleeDamageClass>() += 0.2f;
}
}
}