def get_thrusting_damage(self): """ Calc Character thrusting damage and return like Dice object """ damage = Dice('1d6-6') bonus = self.strength - 1 if self.strength == 0: bonus += 1 elif 51 < self.strength <= 76: bonus += -1 elif 76 < self.strength: bonus += -(self.strength - 72) // 5 damage += bonus // 2 damage.equiv_max(round_seven=False) return damage
def get_swinging_damage(self): """ Calc Character swinging damage and return like Dice object """ if self.strength < 10: damage = self.get_thrusting_damage() + 1 elif self.strength > 26: damage = self.get_thrusting_damage() bonus = Dice('2d6+2') if self.strength <= 70: bonus += -(self.strength - 20) // 25 else: bonus += -2 damage += bonus else: damage = Dice('1d6') bonus = self.strength - 10 damage += bonus damage.equiv_max(round_seven=False) return damage