泰拉瑞亚 · 融合 Wiki

Defense damage

灾厄 未汉化 · 显示原文 rev 296584

Defense damage is a mechanic that makes certain enemies' and bosses' attacks reduce the player's defense and damage reduction on hit. The amount of defense damage depends on the actual damage of the enemy or projectile, the mode and the stage of the game. Whenever defense damage is taken, a unique impact sound effect plays and a gray number pops up above the player, showing the amount of defense damage.

Calculations

Defense

Upon getting hit by an attack with defense damage, the player's defense stat is reduced by 33% of the damage mitigated by their defense, up to a maximum of 25% of the player's defense. If a boss is alive, defense damage can't be lower than a certain value:

Mode Pre-Hardmode Hardmode Post-Moon Lord
Classic 3 8 16
Revengeance 4 10 20
Death 5 12 24
Boss Rush 25

Defense cannot be reduced below 0 due to defense damage, and is set to 0 in case enough defense damage is received.

Recovery

After all invincibility frames wear off and an additional 16 of a second (10 ticks) has passed, defense damage will decrease (i.e. lost defense will start to recover). The rate is dependent on two values:

  • How long the player has been recovering from defense damage (currentRecovery)
  • The total amount of time the player is currently going to be recovering from defense damage for (totalRecovery)

TotalRecovery has a base value of 56 of a second, and is incremented by another 56 of a second each time the player takes more defense damage while recovering. This also resets currentRecovery back to 0. Defense damage is decreased linearly based on currentRecoverytotalRecovery. So if a player is one third of the way through their recovery timer, they will have recovered one third of their lost defense.

Damage Reduction

Defense damage also reduces damage reduction by the following amount: Damage reduction⋅Defense damageDefense.

NPCs capable of dealing defense damage

  • Image NPC
    Anahita Anahita (contact)
    Aquatic Scourge Aquatic Scourge (contact)
    Astrum Aureus Astrum Aureus (contact)
    Astrum Deus Head Astrum Deus Head (contact, mine)
    Atlas Atlas (contact)
    Aureus Spawn Aureus Spawn (explosion)
    Brimstone Elemental Brimstone Elemental (contact, Brimstone Hellblast, Brimstone Ray)
    Calamitas Clone Calamitas Clone (contact, Brimstone Hellblast, Brimstone Fireblast)
    Cataclysmic Construct Cataclysmic Construct (contact)
    Catastrophic Construct Catastrophic Construct (contact)
    Ceaseless Void Ceaseless Void (contact, dark energy ball)
    Cosmic Mine Cosmic Mine (contact)
    Crabulon Crabulon (contact)
    Cragmaw Mire Cragmaw Mire (contact)
    Crimulan Paladin Crimulan Paladin (contact)
    Cryogen's Shield Cryogen's Shield (contact)
    Cryogen Cryogen (contact, ice bomb)
    Dank Creeper Dank Creeper (contact)
    Dark Energy Dark Energy (contact)
    Desert Scourge Head Desert Scourge Head (contact)
    Desert Nuisance Head Desert Nuisance Head (contact)
    Devil Fish Devil Fish (contact)
    Earth Elemental Earth Elemental (contact)
    Ebonian Paladin Ebonian Paladin (contact)
    Eidolist Eidolist (contact, lightning, ice mist)
    Eidolon Wyrm Eidolon Wyrm (lightning, ice cluster)
    Giant Clam Giant Clam (contact)
    Great Sand Shark Great Sand Shark (contact)
    Yharon, Dragon of Rebirth Yharon, Dragon of Rebirth (contact, flarenado, infernado, bullet hell vortex (only on Get fixed boi))
    Leviathan Leviathan (contact, meteor)
    Mauler Mauler (contact)
    Nuclear Terror Nuclear Terror (contact)
    Plague Mine Plague Mine (contact)
    Plaguebringer Plaguebringer (contact)
    Polterghast Polterghast (contact)
    Primordial Wyrm Primordial Wyrm (contact, lightning, ice mist)
    Profaned Guardians Profaned Guardians (contact, projectiles)
    Ravager Ravager (contact)
    Reaper Shark Reaper Shark (contact)
    Rock Pillar Rock Pillar (contact)
    Scorn Eater Scorn Eater (contact)
    Signus Signus (contact, scythes)
    Slime God Core Slime God Core (contact)
    Storm Weaver Head Storm Weaver Head (contact, tornado)
    Sulphurous Sharkron Sulphurous Sharkron (contact)
    Supreme Witch, Calamitas Supreme Witch, Calamitas (contact, Brimstone Hellfireball, Brimstone Hellblast, Brimstone Fireblast, Brimstone Gigablast, Whispering Maelstrom)
    The Devourer of Gods The Devourer of Gods (contact, laser walls)
    Dragonfolly Dragonfolly (contact, lightning aura)
    The Hive Mind The Hive Mind (contact)
    The Old Duke The Old Duke (contact, vortex)
    The Perforators The Perforators (contact)
    The Plaguebringer Goliath The Plaguebringer Goliath (contact, missiles)
    Providence, the Profaned Goddess Providence, the Profaned Goddess (molten blast, coccoon star, holy blast, holy ray)
    Tooth Ball (Old Duke) Tooth Ball (Old Duke) (contact)
    XF-09 Ares XF-09 Ares (Exo Overload Beam)
    XM-05 Thanatos XM-05 Thanatos (contact, Gamma Disintegration Beam)
    XS-01 Artemis XS-01 Artemis (contact, projectiles)
    XS-03 Apollo XS-03 Apollo (contact, projectiles)
    King Slime King Slime (contact)
    Eye of Cthulhu Eye of Cthulhu (contact)
    Brain of Cthulhu Brain of Cthulhu (contact)
    Queen Bee Queen Bee (contact)
    Paladin Paladin (contact, hammer)
    Corrupt Mimic Corrupt Mimic (contact)
    Crimson Mimic Crimson Mimic (contact)
    Hallowed Mimic Hallowed Mimic (contact)
    Mothron Mothron (contact)
    Eater of Worlds Head Eater of Worlds Head (contact)
    Skeletron Skeletron (contact)
    Wall of Flesh Mouth Wall of Flesh Mouth (contact)
    Spazmatism Spazmatism (contact)
    Retinazer Retinazer (contact)
    Skeletron Prime Skeletron Prime (contact)
    Plantera Plantera (contact, thorn ball)
    Golem Golem (contact)
    Phantasm Dragon (Head) Phantasm Dragon (Head) (contact)
    Ogre Ogre (contact)
    Betsy Betsy (contact, flame breath)
    Pumpking Hand Pumpking Hand (contact, blades)
    Santa-NK1 Santa-NK1 (contact)
    Duke Fishron Duke Fishron (contact)
    Dreadnautilus Dreadnautilus (contact)
    Empress of Light Empress of Light (contact, sun dance)
    Queen Slime Queen Slime (contact)
    Deerclops Deerclops (contact, ice spike, shadow hands)
    Diabolist Diabolist (fireblast)
    Moon Lord Moon Lord (phantasmal deathray, phantasmal sphere)
    True Eye of Cthulhu True Eye of Cthulhu (phantasmal sphere)
    Martian Saucer Martian Saucer (deathray)
  • Notes

    • The mode-based floor for defense damage is applied before the cap of 25% of the player's maximum defense. This means theoretically, a player can take less than that floor, if they have sufficiently low maximum defense.
      • For example, if a player has less than 96 defense when fighting a post-Moon Lord boss in Death Mode, they would take less than the 24 defense damage specified in the table.
    • Defense damage's inability to make defense drop below 0 is bypassed in the For the Worthy and Get fixed boi seeds.

    References

    History

    These history sections are still a work-in-progress, and may not yet contain changes relevant to the current version of the Calamity Mod.
    • 2.0.4.002: Indicator can no longer display if the player takes 0 defense damage from an attack.
    • 2.0.4.001: Sound effect now scales in volume based on how much defense damage the player took, reaching maximum volume if 40% / 50% Expert Mode / 55% Revengeance Mode / 60% Death Mode / 70% Master Mode of the player's defense is lost.
    • 2.0.3.008:
      • Can now make defense go below 0 and does not cap damage reduction damage in the For the worthy seed.
      • Fixed it always taking 10 frames to start recovering after being inflicted, allowing it to regenerate during immunity frames.
    • 2.0.3.007:
      • Changed how it is calculated:
        • Defense damage taken is now 33% of damage mitigated instead of 10% of damage taken.
        • Damage reduction loss from defense damage is still based on the ratio of defense damage taken to total defense.
        • Increased the defense damage floor while a boss is alive in pre-Hardmode from 1 / 2 Expert Mode / 3 Revengeance Mode / 4 Death Mode to 3 / 4 Revengeance Mode / 5 Death Mode, in Hardmode from 2 / 4 Expert Mode / 6 Revengeance Mode / 8 Death Mode to 8 / 10 Revengeance Mode / 12 Death Mode, and in post-Moon Lord from 3 / 6 Expert Mode / 9 Revengeance Mode / 12 Death Mode to 16 / 20 Revengeance Mode / 24 Death Mode. Boss Rush now has a defense damage floor of 25.
      • Fixed it not being applied if contact damage that inflicts defense damage and a projectile that does not inflict defense damage hit the player on the same frame.
    • 2.0.1.002: Now only occurs if damage taken is above zero, no longer occurring during dodges.
    • 2.0.1.001: Decreased the global ratio from 15% to 10%.
    • 2.0.0.003: Sound effects are now only played client side in multiplayer.
    • 1.5.0.003: Decreased recovery delay from 0.5 seconds to 0.17 and minimum total regeneration time from 1 second to 0.83.
    • 1.5.0.002:
      • The following enemies can no longer inflict it:
        • All Armed Zombie variants, all Crimera variants, Devourers, all Eater of Souls variants, and Goblin Warriors.
        • Additionally, Antlions and Tomb Crawlers can no longer inflict Defense damage until after defeating Desert Scourge.
      • Reworked the formula:
        • The ratio of damage to defense damage is now always 15%, regardless of difficulty.
        • The player cannot take more than 25% of their maximum defense as defense damage.
        • Increased the defense damage regeneration delay timer from 0.25 seconds to 0.5.
        • Defense that is lost now regenerates back at a dynamic percentage every 3 frames once the regeneration delay timer has ended.
        • If the player takes defense damage and is not hit again, all defense will have been regenerated back in 1 second.
        • Consecutive hits after taking defense damage now slow the percentage of defense that is regenerated back every 3 frames. The total time for all of the player's defense to be regenerated back is capped at 15 seconds.
        • Defense damage can now only be applied to the player once every 0.25 seconds instead of every 0.083.