User Tools

Site Tools


mr:die_hard_spell

Die Hard Spell - Code References

Die Hard Spell

Java Classes

This entity is implemented in Lua, no Java class exists

JSON Configuration

This entity is implemented in Lua, no JSON configuration exists

String Resources

<string name="DieHardSpell_Name">Die Hard</string>
<string name="DieHardSpell_Info">Will temporarily increase your regeneration making you a real Die Hard.</string>
<string name="DieHardBuff_Name">Die Hard</string>
<string name="DieHardBuff_Info">Regeneration rate increased.</string>

Lua Scripts

Key Properties from Code

Spell Affinity: Combat (listed in CustomSpellsList.lua under “Combat” category)

Spell Mechanics:

  • Targeting: Self
  • Mana Cost: 5
  • Cast Time: 0.5 turns
  • Cooldown: 50 turns
  • Spell Level: 2 (affects requirements)

Buff Application:

  • Applies “DieHard” buff to caster
  • Buff Level: `math.min(3, caster.skillLevel - spellLevel) + 2`
  • Duration: `buffLevel * 20 + 20` turns
  • Regeneration Bonus: Equal to buff level (HP per turn)
  • Early Removal Chance: 1 / caster.skillLevel chance when damaged
mr/die_hard_spell.txt · Last modified: by 127.0.0.1