Coin of Deceit Stealth Nerf
Nerfs the consumption of Coin of Deceit to 90% from 85%. NOTE: This Overrides/reverts the previous bug fix to make coin of deceit actually consume the amount it says
This commit is contained in:
1 parent
8713ec5f2d
commit
670fa950da
3 files changed
+9
-9
No files matched your search
@@ -463,10 +463,10 @@ namespace CalamityMod.CalPlayer
|
||||
/// </summary>
|
||||
public bool stealthStrike75Cost = false;
|
||||
/// <summary>
|
||||
/// If true, stealth strikes only require 85% of the player's max stealth to perform.<br/>
|
||||
/// If true, stealth strikes only require 90% of the player's max stealth to perform.<br/>
|
||||
/// Used by Coin of Deceit.
|
||||
/// </summary>
|
||||
public bool stealthStrike85Cost = false;
|
||||
public bool stealthStrike90Cost = false;
|
||||
/// <summary> If true, this player is wearing a rogue or all-class armor set. This bool is required in order to use rogue stealth. </summary>
|
||||
public bool wearingRogueArmor = false;
|
||||
/// <summary> The sum of the player's stealth generation boosts from accessory modifiers. </summary>
|
||||
@@ -5308,7 +5308,7 @@ namespace CalamityMod.CalPlayer
|
||||
stealthStrikeThisFrame = false;
|
||||
stealthStrikeHalfCost = false;
|
||||
stealthStrike75Cost = false;
|
||||
stealthStrike85Cost = false;
|
||||
stealthStrike90Cost = false;
|
||||
|
||||
// stealthAcceleration only resets if you don't have either of the accelerator accessories equipped
|
||||
if (!darkGodSheath && !eclipseMirror)
|
||||
@@ -5503,8 +5503,8 @@ namespace CalamityMod.CalPlayer
|
||||
consumptionMult = 0.5f;
|
||||
else if (stealthStrike75Cost)
|
||||
consumptionMult = 0.75f;
|
||||
else if (stealthStrike85Cost)
|
||||
consumptionMult = 0.85f;
|
||||
else if (stealthStrike90Cost)
|
||||
consumptionMult = 0.9f;
|
||||
return rogueStealth >= rogueStealthMax * consumptionMult;
|
||||
}
|
||||
|
||||
@@ -5531,9 +5531,9 @@ namespace CalamityMod.CalPlayer
|
||||
if (rogueStealth <= 0f)
|
||||
rogueStealth = 0f;
|
||||
}
|
||||
else if (stealthStrike85Cost)
|
||||
else if (stealthStrike90Cost)
|
||||
{
|
||||
rogueStealth -= 0.85f * stealthToLose;
|
||||
rogueStealth -= 0.9f * stealthToLose;
|
||||
if (rogueStealth <= 0f)
|
||||
rogueStealth = 0f;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.Calamity().stealthStrike85Cost = true;
|
||||
player.Calamity().stealthStrike90Cost = true;
|
||||
player.GetCritChance<ThrowingDamageClass>() += 6;
|
||||
}
|
||||
|
||||
|
||||
@@ -424,7 +424,7 @@ CoinofDeceit: {
|
||||
DisplayName: Coin of Deceit
|
||||
Tooltip:
|
||||
'''
|
||||
Stealth strikes only expend 85% of your max stealth
|
||||
Stealth strikes only expend 90% of your max stealth
|
||||
6% increased rogue crit chance
|
||||
'''
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user