1 - Counter Scarf and Evasion Scarf no longer buff melee stats after a dodge and nerfed the true melee damage bonuses.

This commit is contained in:
Andrew Marheine committed 2021-06-20 19:24:37 -05:00
1 parent 78bf63137e
commit 40ecb9395f
8 files changed
+4 -83

No files matched your search

-23
View File
@@ -1,23 +0,0 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
public class EvasionScarfBoost : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Evasion Scarf Boost");
Description.SetDefault("10% increased damage, 10% increased crit chance, and 15% increased melee speed");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().eScarfBoost = true;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 547 B

-23
View File
@@ -1,23 +0,0 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
public class ScarfMeleeBoost : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Scarf Boost");
Description.SetDefault("10% increased damage, 5% increased crit chance, and 5% increased melee speed");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().sMeleeBoost = true;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 575 B

-20
View File
@@ -761,8 +761,6 @@ namespace CalamityMod.CalPlayer
public bool xWrath = false;
public bool graxDefense = false;
public bool encased = false;
public bool sMeleeBoost = false;
public bool eScarfBoost = false;
public bool tFury = false;
public bool cadence = false;
public bool omniscience = false;
@@ -1778,8 +1776,6 @@ namespace CalamityMod.CalPlayer
xWrath = false;
graxDefense = false;
encased = false;
sMeleeBoost = false;
eScarfBoost = false;
tFury = false;
cadence = false;
omniscience = false;
@@ -2172,8 +2168,6 @@ namespace CalamityMod.CalPlayer
kamiBoost = false;
graxDefense = false;
encased = false;
sMeleeBoost = false;
eScarfBoost = false;
tFury = false;
cadence = false;
omniscience = false;
@@ -3583,14 +3577,6 @@ namespace CalamityMod.CalPlayer
{
meleeSpeedMult += 0.1f;
}
if (sMeleeBoost)
{
meleeSpeedMult += 0.05f;
}
if (eScarfBoost)
{
meleeSpeedMult += 0.15f;
}
if (yPower)
{
meleeSpeedMult += 0.05f;
@@ -4021,15 +4007,9 @@ namespace CalamityMod.CalPlayer
private void OnDodge()
{
if (evasionScarf)
{
player.AddBuff(ModContent.BuffType<EvasionScarfBoost>(), CalamityUtils.SecondsToFrames(9f));
player.AddBuff(ModContent.BuffType<EvasionScarfCooldown>(), player.chaosState ? CalamityUtils.SecondsToFrames(20f) : CalamityUtils.SecondsToFrames(13f));
}
else
{
player.AddBuff(ModContent.BuffType<ScarfMeleeBoost>(), 540);
player.AddBuff(ModContent.BuffType<ScarfCooldown>(), player.chaosState ? 1800 : 900);
}
player.immune = true;
player.immuneTime = player.longInvince ? 100 : 60;
+2 -13
View File
@@ -2474,17 +2474,6 @@ namespace CalamityMod.CalPlayer
player.meleeDamage += 0.2f;
}
if (modPlayer.eScarfBoost)
{
player.allDamage += 0.1f;
modPlayer.AllCritBoost(10);
}
if (modPlayer.sMeleeBoost)
{
player.allDamage += 0.1f;
modPlayer.AllCritBoost(5);
}
if (modPlayer.tFury)
{
player.meleeDamage += 0.3f;
@@ -3640,8 +3629,8 @@ namespace CalamityMod.CalPlayer
modPlayer.GetStatBonuses();
// True melee damage bonuses
double damageAdd = (modPlayer.dodgeScarf ? 0.15 : 0) +
(modPlayer.evasionScarf ? 0.1 : 0) +
double damageAdd = (modPlayer.dodgeScarf ? 0.1 : 0) +
(modPlayer.evasionScarf ? 0.05 : 0) +
((modPlayer.aBulwarkRare && modPlayer.aBulwarkRareMeleeBoostTimer > 0) ? 0.5 : 0) +
(modPlayer.fungalSymbiote ? 0.15 : 0) +
((player.head == ArmorIDs.Head.MoltenHelmet && player.body == ArmorIDs.Body.MoltenBreastplate && player.legs == ArmorIDs.Legs.MoltenGreaves) ? 0.2 : 0) +
+1 -2
View File
@@ -11,9 +11,8 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Counter Scarf");
Tooltip.SetDefault("True melee strikes deal 15% more damage\n" +
Tooltip.SetDefault("True melee strikes deal 10% more damage\n" +
"Grants the ability to dash; dashing into an attack will cause you to dodge it\n" +
"After a dodge you will be granted a buff to all damage, melee speed, and all crit chance for a short time\n" +
"After a successful dodge you must wait 15 seconds before you can dodge again\n" +
"This cooldown will be twice as long if you have Chaos State\n" +
"While on cooldown, Chaos State will last twice as long");
+1 -2
View File
@@ -11,9 +11,8 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Evasion Scarf");
Tooltip.SetDefault("True melee strikes deal 25% more damage\n" +
Tooltip.SetDefault("True melee strikes deal 15% more damage\n" +
"Grants the ability to dash; dashing into an attack will cause you to dodge it\n" +
"After a dodge you will be granted a buff to all damage, melee speed, and all crit chance for a short time\n" +
"After a successful dodge you must wait 13 seconds before you can dodge again\n" +
"This cooldown will be 50 percent longer if you have Chaos State\n" +
"While on cooldown, Chaos State will be 50 percent longer");