def get_roll_value_for_skill(self) -> int: """ Looks up how much to modify our roll based on our skill. We use a lookup table to determine how much each level of the skill is weighted by. """ if not self.skill: return 0 base = self.character.traits.get_skill_value(self.skill) return StatWeight.get_weighted_value_for_skill(base)
def get_total_for_attack_check(self): from world.stat_checks.models import StatWeight value = 0 if self.attack_stat: stat_only = not self.attack_skill level = self.char.traits.get_stat_value(self.attack_stat) value += StatWeight.get_weighted_value_for_stat( level, stat_only, True) if self.attack_skill: level = self.char.traits.get_skill_value(self.attack_skill) value += StatWeight.get_weighted_value_for_skill(level, True) return value
def get_roll_value_for_skill(self) -> int: if not self.skill: return 0 skill_val = self.retainer.dbobj.traits.get_skill_value(self.skill) return StatWeight.get_weighted_value_for_skill(skill_val)
def get_roll_value_for_skill(self) -> int: if not self.skill: return 0 return StatWeight.get_weighted_value_for_skill(self.skill_value)