Guest User

Altar of Skillmaking, main function

a guest
Mar 4th, 2021
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. ## Main Flow of Program ##
  2. def main():
  3.     skills = {} # dictionary of all skills from JSON
  4.     with open('skills.json') as f:
  5.         skills = json.load(f)
  6.     for skill, value in skills.items():
  7.         value['tags'].append('skill') # all skills are in skill group
  8.         value['tags'].append("class_" + name_to_name_key(clean(value['prof']))) # class group
  9.         value['tags'].append("stat_" + name_to_name_key(clean(value['stat']))) # stat group
  10.         make_dir(value) # make folders
  11.         make_files(value) # make files
  12.         make_default_icons(value) # make icons
  13.  
  14. ## Main ##
  15.  
  16. main()
Advertisement
Add Comment
Please, Sign In to add comment