Changed: Tabi, Master Ninja Gear, Statis Ninja Belt, Statis Void Sash, Leviathan Ambergris, and Slagsplitter Pauldron - The Tabi line of dashes are now significantly faster on inital dash, but decelerate quickly. They also have a lower dash cooldown than normal. This allows for quick and fast dodge movements without a long lasting dash/dash cooldown - Statis dashes no longer use Magilum, but increase acceleration on their own by 1.6x/1.85x and also increase move speed by 10%/20% - Redid dash visuals for Slagsplitter Pauldron, Statis Ninja Belt, Statis Void Sash, and Leviathan Ambergris. - Added visibility toggle for Slagsplitter Pauldron, Statis Void Sash, and Leviathan Ambergris. - Leviathan Ambergris now increases initial dash velocity by 200% and makes you decelerate while dashing, allowing for quicker dashes that don't aren't longer than before and don't increase the time between dashing. Also significantly buffed it's damage because of changes described below. - Redid how Slagsplitter Pauldron and Leviathan Ambergris do their hits. It is now a single projectile that sticks to the player spawned on dash start that disappears on dash end and deals damage. Also reduced explosion damage on Pauldron but increased direct damage.
260 lines
14 KiB
C#
260 lines
14 KiB
C#
namespace CalamityMod.Balancing
|
|
{
|
|
public static class BalancingConstants
|
|
{
|
|
#region Movement
|
|
// When the relevant config is enabled: Multiplies the player's movement speed by 1.5x at all times
|
|
internal static readonly float DefaultMoveSpeedBoost = 1.5f;
|
|
|
|
// When the relevant config is enabled: Increases the player's base jump speed by 13.97% (allows you to jump 7 blocks)
|
|
internal static readonly float ConfigBoostedBaseJumpSpeed = 5.71f; // vanilla = 5.01f
|
|
|
|
// When the relevant config is enabled: Allows the player to hold the Down button (S by default) to fast fall.
|
|
// This is the multiplier for the player's gravity (downwards acceleration) while holding Down.
|
|
internal static readonly float HoldingDownGravityMultiplier = 2f;
|
|
|
|
// Altered jump speed boost provided by Shiny Red Balloon via IL edit
|
|
// This is a const because it replaces a hardcoded value in vanilla
|
|
internal const float BalloonJumpSpeedBoost = 0.75f;
|
|
|
|
// Default jump speed boost provided by Frog Leg and tinker combinations in vanilla
|
|
internal const float VanillaFrogLegJumpSpeedBoost = 1.6f;
|
|
|
|
// Altered jump speed boost provided by Amphibian Boots via global item UpdateAccessory
|
|
internal static readonly float AmphibianBootsJumpSpeedBoost = 1f;
|
|
|
|
// Altered movement stats provided by Shadow Armor via IL edit
|
|
// This item is modified to not stack with Magiluminescence if on the ground. If in the air, it still functions.
|
|
internal static readonly float ShadowArmorRunAccelerationMultiplier = 1.25f; // Vanilla and Magi = 1.75f
|
|
internal static readonly float ShadowArmorMaxRunSpeedMultiplier = 1.05f; // Vanilla and Magi = 1.15f
|
|
internal static readonly float ShadowArmorAccRunSpeedMultiplier = 1.05f; // Vanilla and Magi = 1.15f
|
|
internal static readonly float ShadowArmorRunSlowdownMultiplier = 1.5f; // Vanilla and Magi = 1.75f
|
|
|
|
// Altered run acceleration multiplier provided by Soaring Insignia via IL edit
|
|
// This is a const because it replaces a hardcoded value in vanilla
|
|
internal const float SoaringInsigniaRunAccelerationMultiplier = 1.25f; // Vanilla = 1.75f
|
|
#endregion
|
|
|
|
#region Immunity Frames
|
|
// Default immunity frame rules
|
|
internal const int VanillaDefaultIFrames = 40;
|
|
internal const int VanillaParryIFrames = 60;
|
|
internal const int VanillaDodgeIFrames = 80;
|
|
|
|
// In vanilla, the Cross Necklace grants +40 iframes to all hits except for in PvP (where it does nothing)
|
|
// and Brand of the Inferno (where it only gives +30 instead).
|
|
internal const int CrossNecklaceIFrameBoost = 40;
|
|
internal const int CrossNecklaceIFrameBoost_Parry = 30;
|
|
#endregion
|
|
|
|
#region Dashes and Dodges
|
|
// Dash cooldowns (in frames)
|
|
internal const int UniversalDashCooldown = 30;
|
|
internal const int UniversalSashDashCooldown = 23;
|
|
internal const int UniversalShieldSlamCooldown = 30;
|
|
internal const int UniversalShieldBonkCooldown = 30;
|
|
internal const int OnShieldBonkCooldown = 30;
|
|
|
|
// Vanilla shield slam stats
|
|
// These are consts because they replace hardcoded values in vanilla
|
|
internal const int ShieldOfCthulhuBonkNoCollideFrames = 6;
|
|
internal const int SolarFlareIFrames = 12;
|
|
internal const float SolarFlareBaseDamage = 400f;
|
|
|
|
// Dodge cooldowns (in frames)
|
|
// TODO -- Some of these could be moved to the respective item files
|
|
internal static readonly int BeltDodgeCooldownMin = 1200;
|
|
internal static readonly int BeltDodgeCooldownMax = 5400;
|
|
internal static readonly int BrainDodgeCooldownMin = 1200;
|
|
internal static readonly int BrainDodgeCooldownMax = 5400;
|
|
internal static readonly int AmalgamDodgeCooldownMin = 1200;
|
|
internal static readonly int AmalgamDodgeCooldownMax = 5400;
|
|
internal static readonly int MirrorDodgeCooldownMin = 1200;
|
|
internal static readonly int MirrorDodgeCooldownMax = 5400;
|
|
internal static readonly int DaedalusReflectCooldownMin = 1200;
|
|
internal static readonly int DaedalusReflectCooldownMax = 5400;
|
|
internal static readonly int EvolutionReflectCooldownMin = 1200;
|
|
internal static readonly int EvolutionReflectCooldownMax = 5400;
|
|
#endregion
|
|
|
|
#region Damage
|
|
// Altered default damage deviation
|
|
internal const int NewDefaultDamageVariationPercent = 5;
|
|
|
|
// Summoner cross class nerf
|
|
internal static readonly float SummonerCrossClassNerf = 0.75f;
|
|
|
|
// Summon damage bonuses counting less towards "scales with your best class"
|
|
internal static readonly float SummonAllClassScalingFactor = 0.75f;
|
|
|
|
// Minimum and maximum allowed attack speed ratios when using Calamity Global Item Tweaks
|
|
internal static readonly float MinimumAllowedAttackSpeed = 0.25f;
|
|
internal static readonly float MaximumAllowedAttackSpeed = 10f;
|
|
|
|
// Internal vanilla whip damage variables
|
|
internal static readonly float LeatherWhipTagDamageMultiplier = 1.08f;
|
|
internal static readonly float SnapthornTagDamageMultiplier = 1.04f;
|
|
internal static readonly float SpinalTapTagDamageMultiplier = 1.08f;
|
|
internal static readonly float FirecrackerExplosionDamageMultiplier = 2f; // Note: Lasts for 1 hit
|
|
internal static readonly float CoolWhipTagDamageMultiplier = 1.08f;
|
|
internal static readonly float DurendalTagDamageMultiplier = 1.09f;
|
|
internal static readonly float MorningStarTagDamageMultiplier = 1.11f;
|
|
internal static readonly float KaleidoscopeTagDamageMultiplier = 1.12f;
|
|
|
|
// Sharpening Station grants this much armor penetration to melee weapons.
|
|
internal const float SharpeningStationArmorPenetration = 5f;
|
|
|
|
// Beetle Scale Mail stats
|
|
internal static readonly float BeetleScaleMailMeleeDamagePerBeetle = 0.1f;
|
|
internal static readonly float BeetleScaleMailMeleeSpeedPerBeetle = 0.05f;
|
|
|
|
// Nebula Armor Damage Booster
|
|
internal static readonly float NebulaDamagePerBooster = 0.075f; // 0.15f in vanilla
|
|
|
|
// Nebula Armor Mana Booster
|
|
// nothing here yet
|
|
#endregion
|
|
|
|
#region Life Steal
|
|
// Life steal cap
|
|
internal static readonly int LifeStealCap = 100;
|
|
|
|
// Life steal accessories require a more strict cooldown due to their ease of use and global application
|
|
internal static readonly float LifeStealAccessoryCooldownMultiplier = 3f;
|
|
|
|
// Life steal cooldown multipliers used for armor set bonuses
|
|
internal static readonly float LifeStealSetBonusCooldownMultiplier = 2f;
|
|
internal static readonly float LifeStealReaverTankCooldownMultiplier = 4f;
|
|
|
|
// The range was buffed in vanilla from 1200 to 3000 in 1.4.4, and I agree with that decision
|
|
internal static readonly float LifeStealRange = 3000f;
|
|
|
|
// Life steal caps (aka, how much life steal the player is allowed before it goes on cooldown)
|
|
internal static readonly float LifeStealCap_Classic = 60f;
|
|
internal static readonly float LifeStealCap_Expert = 50f;
|
|
internal static readonly float LifeStealCap_Revengeance = 40f;
|
|
internal static readonly float LifeStealCap_Death = 30f;
|
|
|
|
// Master nerfs the life steal cap by 10, resulting in 40 in non-Rev Master, 30 in Rev Master, and 20 in Death Master
|
|
internal static readonly float LifeStealCapReduction_Master = 10f;
|
|
|
|
// The base life steal cooldowns from vanilla
|
|
internal static readonly float LifeStealRecoveryRate_Classic = 0.6f;
|
|
internal static readonly float LifeStealRecoveryRate_Expert = 0.5f;
|
|
|
|
// The calculations below show the time (in frames) for 10 life steal cooldown to recover in each difficulty
|
|
// Classic: 10 / 0.2 = 50
|
|
// Expert: 10 / 0.15 = 66.667
|
|
// Revengeance: 10 / 0.125 = 80
|
|
// Death: 10 / 0.1 = 100
|
|
// Master: 10 / 0.1 = 100
|
|
// Revengeance Master: 10 / 0.075 = 133.333
|
|
// Death Master: 10 / 0.05 = 200
|
|
// Nerfs the life steal recovery rate in Classic from 0.6/s to 0.2/s
|
|
internal static readonly float LifeStealRecoveryRateReduction_Classic = 0.4f;
|
|
|
|
// Nerfs the life steal recovery rate in Expert from 0.5/s to 0.15/s
|
|
internal static readonly float LifeStealRecoveryRateReduction_Expert = 0.35f;
|
|
|
|
// Nerfs the life steal recovery rate in Revengeance from 0.5/s to 0.125/s
|
|
internal static readonly float LifeStealRecoveryRateReduction_Revengeance = 0.375f;
|
|
|
|
// Nerfs the life steal recovery rate in Death from 0.5/s to 0.1/s
|
|
internal static readonly float LifeStealRecoveryRateReduction_Death = 0.4f;
|
|
|
|
// Nerfs the life steal recovery rate in Master by 0.05/s, resulting in 0.1/s in non-Rev Master, 0.075/s in Rev Master, and 0.05/s in Death Master
|
|
internal static readonly float LifeStealRecoveryRateReduction_Master = 0.05f;
|
|
#endregion
|
|
|
|
#region Rogue Base Stats
|
|
// If stealth is too weak, increase this number. If stealth is too strong, decrease this number.
|
|
// This value is intentionally not readonly.
|
|
public static double UniversalStealthStrikeDamageFactor = 0.42;
|
|
// Shade 23/10/2023: So stealth apparently was indeed way too strong after the bugfix with nearly every weapon being way stronger than before
|
|
// due to Flawless now working properly and thus the stealth factor was changed back to 0.42 from 0.5.
|
|
// This nerf takes feedback from various players as well as my own personal experience with testing rogue stuff today; it feels too strong and
|
|
// something needed to be done about it.
|
|
|
|
internal static readonly float BaseStealthGenTime = 4f; // 4 seconds
|
|
internal static readonly float MovingStealthGenRatio = 0.5f;
|
|
#endregion
|
|
|
|
#region Defense, Health and Mana (Armor set stuff)
|
|
// Beetle Shell's multiplicative DR is removed by Calamity. In compensation, you get this much regular DR per beetle.
|
|
internal static readonly float BeetleShellDRPerBeetle = 0.1f;
|
|
|
|
// Solar Flare Armor's multiplicative DR is removed by Calamity. In compensation, you get this much DR from having at least one solar shield up.
|
|
internal static readonly float SolarFlareShieldDR = 0.25f;
|
|
|
|
// Nebula Armor Life Regen
|
|
internal static readonly int NebulaLifeRegenPerBooster = 4; // 6 in vanilla
|
|
|
|
// Nebula Armor Mana Regen
|
|
// This value works differently than you might expect. Raising it actually nerfs the mana regeneration of Nebula Armor
|
|
// Every frame, Terraria adds 1 to a counter for each Mana Booster the player has.
|
|
// If this counter reaches the below threshold, that player gains 1 mana.
|
|
// By default, it's 6, which has the following effects:
|
|
// 1 booster = +1 mana every 6 frames = +10 mana per second
|
|
// 2 boosters = +1 mana every 3 frames = +20 mana per second
|
|
// 3 boosters = +1 mana every 2 frames = +30 mana per second
|
|
//
|
|
// Calamity just halves this, that's probably good enough.
|
|
internal static readonly int NebulaManaRegenFrameCounterThreshold = 12; // 6 in vanilla
|
|
#endregion
|
|
|
|
#region Defense Damage
|
|
internal const double DefaultDefenseDamageRatio = 0.3333;
|
|
|
|
// Defense damage floor: PHM | HM | PML
|
|
//
|
|
// Normal/Expert: 3 | 8 | 16
|
|
// Revengeance: 4 | 10 | 20
|
|
// Death Mode: 5 | 12 | 24
|
|
// Boss Rush: 25
|
|
internal static readonly int DefenseDamageFloor_NormalPHM = 3;
|
|
internal static readonly int DefenseDamageFloor_NormalHM = 8;
|
|
internal static readonly int DefenseDamageFloor_NormalPML = 16;
|
|
internal static readonly int DefenseDamageFloor_RevPHM = 4;
|
|
internal static readonly int DefenseDamageFloor_RevHM = 10;
|
|
internal static readonly int DefenseDamageFloor_RevPML = 20;
|
|
internal static readonly int DefenseDamageFloor_DeathPHM = 5;
|
|
internal static readonly int DefenseDamageFloor_DeathHM = 12;
|
|
internal static readonly int DefenseDamageFloor_DeathPML = 24;
|
|
internal static readonly int DefenseDamageFloor_BossRush = 25;
|
|
#endregion
|
|
|
|
#region Rage and Adrenaline (Rippers)
|
|
internal static readonly int DefaultRageDuration = CalamityUtils.SecondsToFrames(9); // Rage lasts 9 seconds by default.
|
|
internal static readonly int RageDurationPerBooster = CalamityUtils.SecondsToFrames(1); // Each booster is +1 second: 10, 11, 12.
|
|
internal static readonly int RageCombatDelayTime = CalamityUtils.SecondsToFrames(10);
|
|
internal static readonly int RageFadeTime = CalamityUtils.SecondsToFrames(30);
|
|
internal static readonly float DefaultRageDamageBoost = 0.35f; // +35%
|
|
|
|
internal static readonly float AdrenalineDamageBoost = 1.5f; // +150%
|
|
internal static readonly float AdrenalineDamagePerBooster = 0.2f; // +20%
|
|
internal static readonly float FullAdrenalineDR = 0.5f; // 50%
|
|
internal static readonly float AdrenalineDRPerBooster = 0.05f; // +5% per booster
|
|
|
|
internal static readonly int AdrenalinePauseAfterDamage = CalamityUtils.SecondsToFrames(1);
|
|
internal static readonly float MinimumAdrenalineLoss = 0.25f; // No matter how small a hit, you will always lose at least 25% current Adrenaline
|
|
internal static readonly float AdrenalineFalloffTinyHitHealthRatio = 0.05f; // Hits for 5% max HP or less result in less Adrenaline loss
|
|
|
|
internal static readonly float TrueMeleeRipperReductionFactor = 0.5f; // True melee benefits less from rippers to prevent excessive melting.
|
|
#endregion
|
|
|
|
// TODO -- NPC classification is not done consistently with predictable thresholds.
|
|
// These variables should be used in general to classify "enemies" vs "non-enemies" as well.
|
|
// See NPCUtils.IsAnEnemy
|
|
#region NPC Classification
|
|
internal const int TinyHealthThreshold = 5;
|
|
internal const int TinyDamageThreshold = 5;
|
|
// If an enemy has more health than this, they are considered an enemy even if they have 0 contact damage
|
|
internal const int NoContactDamageHealthThreshold = 3000;
|
|
internal const int UnreasonableHealthThreshold = 25000000; // 25 million
|
|
#endregion
|
|
|
|
// TODO -- Add all balance related constants here that don't belong in other files.
|
|
// Review all constants and static readonlys in the entire mod to find things to add.
|
|
}
|
|
}
|