Roll dice compare result's
If the attacker rolled 30 or greater than the defender he/she does Base Damage * (difference -(defenders armor type * 10))
If the Defender rolled higher than the attacker it allows a counterattack(assuming he/she can) with a bonus equal to half the difference rounded down.
This should be a way simpler way to do it then having to look at the table every attack.
Hope this helps.
