|
|
|
|
|
|
|
|
self.career = next((x for x in Character.CAREERS if x["id"] == cid), "") |
|
|
self.career = next((x for x in Character.CAREERS if x["id"] == cid), "") |
|
|
|
|
|
|
|
|
def gen_gadget(self): |
|
|
def gen_gadget(self): |
|
|
gid = r.randint(0,(len(gear.gadgets) - 5)) |
|
|
|
|
|
|
|
|
gid = r.randint(0,36) |
|
|
self.gadget = [x for x in Character.GADGETS if x["id"] == gid][0] |
|
|
self.gadget = [x for x in Character.GADGETS if x["id"] == gid][0] |
|
|
if type(self.gadget["description"]) != str: |
|
|
if type(self.gadget["description"]) != str: |
|
|
self.gadget["description"] = self.gadget["description"]() |
|
|
self.gadget["description"] = self.gadget["description"]() |