import random def get_damage(attack, defense): if get_roll(attack) > get_roll(defense): return get_roll(attack) - get_roll(defense) else: return 0 d