A physically based damage calculator for RPG games.