gammatools/app/functions/roll_mental_attack.py

13 lines
349 B
Python
Raw Normal View History

2024-06-29 14:40:39 +00:00
from app.functions.get_attack_roll_outcome import get_attack_roll_outcome
from app.tables.mentattack import MentalAttackMatrix
def roll_mental_attack(ams, dms, modifier):
result = {}
mam = MentalAttackMatrix()
needed = mam.get_attack_score(ams, dms)
result["needed"] = needed
2024-06-29 14:40:39 +00:00
return get_attack_roll_outcome(result, modifier)