def newGame(): try: with open('AW-db/aw_classes.json') as f: awcl = json.load(f) except IOError: print(IOError) p = player() p.starterPack(awcl) m = [] for i in p.characters: m.append(i.display()) return p
def main(): try: with open('AW-db/aw_classes.json') as f: awcl=json.load(f) except IOError: print(IOError) m=[] p = player() p.starterPack(awcl) listingm(p.characters) for i in p.characters: m.append(i.name) r=menu(m) i=p.characters[r[0]] fn_menu[i.skill](i) saveAW(p) return