Advertisement
Kovitikus

Untitled

Aug 9th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.66 KB | None | 0 0
  1. # Skillsets
  2. skillsets = {'staves':
  3.             {'leg sweep': {'damge_type': 'bruise', 'difficulty': 'average', 'hands': 2, 'attack_range': 'either', 'default_aim': 'low'},
  4.             'feint': {'damge_type': 'bruise', 'difficulty': 'average', 'hands': 2, 'attack_range': 'either', 'default_aim': 'low'},
  5.             'end jab': {'damge_type': 'bruise', 'difficulty': 'easy', 'hands': 2, 'attack_range': 'either', 'default_aim': 'mid'},
  6.             'swat': {'damge_type': 'bruise', 'difficulty': 'easy', 'hands': 2, 'attack_range': 'either', 'default_aim': 'mid'},
  7.             'simple strike': {'damge_type': 'bruise', 'difficulty': 'easy', 'hands': 2, 'attack_range': 'either', 'default_aim': 'mid'},
  8.             'side strike': {'damge_type': 'bruise', 'difficulty': 'average', 'hands': 2, 'attack_range': 'either', 'default_aim': 'mid'},
  9.             'pivot smash': {'damge_type': 'bruise', 'difficulty': 'average', 'hands': 2, 'attack_range': 'either', 'default_aim': 'mid'},
  10.             'longarm strike': {'damge_type': 'bruise', 'difficulty': 'difficult', 'hands': 2, 'attack_range': 'either', 'default_aim': 'high'},
  11.             'simple block': {'difficulty': 'easy', 'hands': 2, 'attack_range': 'either', 'default_aim': ('mid', 'low')},
  12.             'cross block': {'difficulty': 'average', 'hands': 2, 'attack_range': 'either', 'default_aim': ('mid', 'low')},
  13.             'overhead block': {'difficulty': 'average', 'hands': 2, 'attack_range': 'either', 'default_aim': 'high'},
  14.             'parting jab': {'damge_type': 'bruise', 'difficulty': 'easy', 'hands': 2, 'attack_range': 'either', 'default_aim': 'mid'},
  15.             'parting swat': {'damge_type': 'bruise', 'difficulty': 'easy', 'hands': 2, 'attack_range': 'either', 'default_aim': 'mid'},
  16.             'parting smash': {'damge_type': 'bruise', 'difficulty': 'average', 'hands': 2, 'attack_range': 'either', 'default_aim': 'high'},
  17.             'defensive sweep': {'damge_type': 'bruise', 'difficulty': 'average', 'hands': 2, 'attack_range': 'either', 'default_aim': 'low'},
  18.             'stepping spin': {'damge_type': 'bruise', 'difficulty': 'average', 'hands': 2, 'attack_range': 'either', 'default_aim': 'mid'},
  19.             'snapstrike': {'damge_type': 'bruise', 'difficulty': 'average', 'hands': 2, 'attack_range': 'either', 'default_aim': 'high'},
  20.             'sweep strike': {'damge_type': 'bruise', 'difficulty': 'difficult', 'hands': 2, 'attack_range': 'either', 'default_aim': ('low', 'high')},
  21.             'spinstrike': {'damge_type': 'bruise', 'difficulty': 'difficult', 'hands': 2, 'attack_range': 'either', 'default_aim': 'high'},
  22.             'tbash': {'damge_type': 'bruise', 'difficulty': 'difficult', 'hands': 2, 'attack_range': 'either', 'default_aim': 'high'},
  23.             'whirling block': {'difficulty': 'difficult', 'hands': 2, 'attack_range': 'either', 'default_aim': 'high'},
  24.             'pivoting longarm': {'damge_type': 'bruise', 'difficulty': 'difficult', 'hands': 2, 'attack_range': 'either', 'default_aim': 'mid'}}}
  25.  
  26. # Create lists of the skillsets and their skills.
  27. VIABLE_SKILLSETS = []
  28. VIABLE_SKILLS = []
  29. temp_skill_list = []
  30. for k, v in skillsets.items():
  31.     VIABLE_SKILLSETS.append(k)
  32.     temp_skill_list.append(v)
  33. for i in temp_skill_list:
  34.     for k, v in i.items():
  35.         VIABLE_SKILLS.append(k)
  36.  
  37.  
  38.  
  39. # In my learn command.
  40.         for i in skillsets.VIABLE_SKILLSETS:
  41.             if self.skillset != i:
  42.                 self.caller.msg(f"{self.skillset} is not a viable skillset!")
  43.                 raise InterruptCommand
  44.         for i in skillsets.VIABLE_SKILLS:
  45.             if self.skill != i:
  46.                 self.caller.msg(f"{self.skill} is not a viable skill!")
  47.                 raise InterruptCommand
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement