gammatools/app/functions/get_attack_values.py

13 lines
348 B
Python
Raw Normal View History

2024-06-29 14:40:39 +00:00
from app.tables.physattack import AttackerWeaponClassMatrix, AttackerHitDiceMatrix
def get_weapon_class_threshold(awc, dac):
awc_table = AttackerWeaponClassMatrix()
return awc_table.get_attack_score(awc, dac)
def get_hit_dice_threshold(ahd, dac):
ahd_table = AttackerHitDiceMatrix()
return ahd_table.get_attack_score(ahd, dac)