| self.stats = stats | self.stats = stats | ||||
| def gen_career(self): | def gen_career(self): | ||||
| self.career = r.choice(Character.CAREERS) | |||||
| cid = r.randint(0,12) | |||||
| self.career = [x for x in Character.CAREERS if x["id"] == cid][0] | |||||
| def gen_gadget(self): | def gen_gadget(self): | ||||
| self.gadget = r.choice(Character.GADGETS) | |||||
| gid = r.randint(0,15) | |||||
| self.gadget = [x for x in Character.GADGETS if x["id"] == gid][0] | |||||
| def print_name(self, html=False): | def print_name(self, html=False): | ||||
| if isinstance(self.career, str): | if isinstance(self.career, str): |