def get_current_possible_stances(self, character_level): possible_stances = [] for stance_name in maneuver_descriptions.keys(): stance_stats = maneuver_descriptions[stance_name] if 'stance' not in stance_stats: continue if stance_stats['prereq']: if self.maneuver_types_learned[stance_stats['school']] < stance_stats['prereq']: continue if character_level < stance_stats['level']: continue stances_known = self.stances_known_list.get(0, END) if stance_name in stances_known: continue possible_stances.append(stance_name) return sorted(possible_stances)
def get_current_possible_maneuvers(self, character_level): possible_maneuvers = [] for maneuver_name in maneuver_descriptions.keys(): maneuver_stats = maneuver_descriptions[maneuver_name] if 'stance' in maneuver_stats: continue if maneuver_stats['prereq']: if self.maneuver_types_learned[maneuver_stats['school']] < maneuver_stats['prereq']: continue if character_level < maneuver_stats['level']: continue maneuvers_known = self.maneuvers_known_list.get(0, END) if maneuver_name in maneuvers_known: continue possible_maneuvers.append(maneuver_name) return sorted(possible_maneuvers)
def get_current_possible_stances(self, character_level): possible_stances = [] for stance_name in maneuver_descriptions.keys(): stance_stats = maneuver_descriptions[stance_name] if 'stance' not in stance_stats: continue if stance_stats['prereq']: if self.maneuver_types_learned[ stance_stats['school']] < stance_stats['prereq']: continue if character_level < stance_stats['level']: continue stances_known = self.stances_known_list.get(0, END) if stance_name in stances_known: continue possible_stances.append(stance_name) return sorted(possible_stances)
def get_current_possible_maneuvers(self, character_level): possible_maneuvers = [] for maneuver_name in maneuver_descriptions.keys(): maneuver_stats = maneuver_descriptions[maneuver_name] if 'stance' in maneuver_stats: continue if maneuver_stats['prereq']: if self.maneuver_types_learned[ maneuver_stats['school']] < maneuver_stats['prereq']: continue if character_level < maneuver_stats['level']: continue maneuvers_known = self.maneuvers_known_list.get(0, END) if maneuver_name in maneuvers_known: continue possible_maneuvers.append(maneuver_name) return sorted(possible_maneuvers)