def panda_pathB(): global born_opt panda_key = Character.query(Character.species == "Panda").get() panda_path = Path.query(Path.owner == panda_key.key).get() if born_opt == 1: return panda_path.p_1b elif born_opt == 2: return panda_path.p_2b elif born_opt == 3: return panda_path.p_3b
def doggo_pathB(): global post_born_opt doggo_key = Character.query(Character.species == "Dog").get() doggo_pathB = Path.query(Path.owner == doggo_key.key).get() why = randrange(1,3) if born_opt == 1: if why == 1: return doggo_pathB.p_1b[0] elif why == 2: return doggo_pathB.p_1b[1] elif born_opt == 2: if why == 1: return doggo_pathB.p_2b[0] elif why == 2: return doggo_pathB.p_2b[1] elif born_opt == 3: if why == 1: return doggo_pathB.p_3b[0] elif why == 2: return doggo_pathB.p_3b[1]