These are significantly more effort to get than Hydro or Mythril (Daedalus for Rogue) armor and already did not see large use. This is especially true of Tier 3 armors, where they are also after hydrothermic in progression. Factoring in the set bonus effects, these are still are noticably weaker than hydro/mythril/daedalus when not using sentries as Hydro and Mythril both have comparable base stats but highly damaging set bonuses, and Daedalus has more stealth as well as a damaging set bonus. This reverted the Ranged and Magic sets to Vanilla, as well as Squire. Rogue sets restored to the vanilla stat pools but with rogue stats replacing the melee ones and 90/110 stealth. Valhalla was left nerfed, and may still require further nerfs. More details can be provided upon request
49 lines
1.7 KiB
C#
49 lines
1.7 KiB
C#
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.VanillaArmorChanges
|
|
{
|
|
public class MonkT2ArmorSetChange : VanillaArmorChange
|
|
{
|
|
public override int? HeadPieceID => ItemID.MonkBrows;
|
|
|
|
public override int? BodyPieceID => ItemID.MonkShirt;
|
|
|
|
public override int? LegPieceID => ItemID.MonkPants;
|
|
|
|
public override string ArmorSetName => "MonkTier2";
|
|
|
|
public static float SetBonusRogueStealth = 0.9f;
|
|
|
|
public override void UpdateSetBonusText(ref string setBonusText)
|
|
{
|
|
setBonusText = CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(SetBonusRogueStealth.ToStealth()) + "\n" + setBonusText;
|
|
}
|
|
|
|
public override void ApplyHeadPieceEffect(Player player)
|
|
{
|
|
player.GetAttackSpeed<MeleeDamageClass>() -= 0.2f;
|
|
player.Calamity().rogueVelocity += 0.2f; // Replace melee speed with rogue velocity.
|
|
}
|
|
|
|
public override void ApplyBodyPieceEffect(Player player)
|
|
{
|
|
player.GetDamage<MeleeDamageClass>() -= 0.2f;
|
|
player.GetDamage<RogueDamageClass>() += 0.2f; // Replace melee damage with rogue damage.
|
|
}
|
|
|
|
public override void ApplyLegPieceEffect(Player player)
|
|
{
|
|
player.GetCritChance<MeleeDamageClass>() -= 15;
|
|
player.GetCritChance<RogueDamageClass>() += 15; // Replace melee crit chance with rogue crit chance.
|
|
}
|
|
|
|
public override void ApplyArmorSetBonus(Player player)
|
|
{
|
|
player.Calamity().rogueStealthMax += SetBonusRogueStealth; // Give rogue stealth.
|
|
player.Calamity().wearingRogueArmor = true;
|
|
}
|
|
}
|
|
}
|