Combat in Runeheim is defined by player skills, equipment bonuses, and randomized rolls. While individual values may be adjusted and upgraded over time, the underlying formulas define how hit chance and damage are determined.
While this page can be very technical, it is not important to know math to get a grasp on how the combat system works.
Each entity has combat-related skills:
Skills can be modified by equipment or buffs. The resulting effective skill is calculated as:
Effective Skill = Base Skill × (1 + Boost%)
Modifiers may also apply to specific attack styles (stab, slash, crush), ranged accuracy, or defensive bonuses.
Combat resolves by comparing an attacker roll against a defender roll.
CombinedAttackBonus = average(stab, slash, crush) × 1.35
attackerRoll = EffectiveAttack × CombinedAttackBonus + 128
CombinedDefenceBonus = average(stab, slash, crush defence)
defenderRoll = EffectiveDefence × CombinedDefenceBonus + 128
Hit chance is then calculated as:
if attackerRoll > defenderRoll:
hitChance = 1 − (defenderRoll + 2) / (2 × (attackerRoll + 1))
else:
hitChance = attackerRoll / (2 × (defenderRoll + 1))
Special attacks apply a bonus:
hitChance = hitChance × 1.15
A random roll determines whether the hit succeeds.
The maximum hit defines the highest possible damage an attack can deal:
maxHit = floor(0.5 + Skill × (Bonus + 128) / 640) × (1 − penalty%)
Modifiers:
Special attack: maxHit × 1.15
Splash hit: maxHit × 0.5
If a hit succeeds:
damage = random(0, maxHit)
Rules:
maxHit / 3