def auto_tower_end(hid, content): resp = {"close": False, "content": None} pid = cookie.get_cookie(hid, "pid") cobj = user_ins.get_character_mgr().get_character(pid) resp["content"] = cobj._tower.auto_tower_end() return resp
def reset_tower(hid, content): resp = {"close": False, "content": None} pid = cookie.get_cookie(hid, "pid") cobj = user_ins.get_character_mgr().get_character(pid) cobj._tower.reset() return resp
def enter_tower(hid, content): resp = {"close": False, "content": None} pid = cookie.get_cookie(hid, "pid") cobj = user_ins.get_character_mgr().get_character(pid) resp["content"] = cobj._tower.enter(content["chapter_id"]) return resp
def start_tower_battle(hid, content): resp = {"close": False, "content": None} pid = cookie.get_cookie(hid, "pid") cobj = user_ins.get_character_mgr().get_character(pid) resp["content"] = cobj._tower.start_battle() return resp
def auto_tower_end(hid, content): resp = {"close" : False, "content" : None} pid = cookie.get_cookie(hid, "pid") cobj = user_ins.get_character_mgr().get_character(pid) resp["content"] = cobj._tower.auto_tower_end() return resp
def auto_tower(hid, content): resp = {"close" : False, "content" : None} pid = cookie.get_cookie(hid, "pid") cobj = user_ins.get_character_mgr().get_character(pid) resp["content"] = cobj._tower.auto_tower(content["des_process"], content["money_type"]) return resp
def reset_tower(hid, content): resp = {"close" : False, "content" : None} pid = cookie.get_cookie(hid, "pid") cobj = user_ins.get_character_mgr().get_character(pid) cobj._tower.reset() return resp
def start_tower_battle(hid, content): resp = {"close" : False, "content" : None} pid = cookie.get_cookie(hid, "pid") cobj = user_ins.get_character_mgr().get_character(pid) resp["content"] = cobj._tower.start_battle() return resp
def enter_tower(hid, content): resp = {"close" : False, "content" : None} pid = cookie.get_cookie(hid, "pid") cobj = user_ins.get_character_mgr().get_character(pid) resp["content"] = cobj._tower.enter(content["chapter_id"]) return resp
def auto_tower(hid, content): resp = {"close": False, "content": None} pid = cookie.get_cookie(hid, "pid") cobj = user_ins.get_character_mgr().get_character(pid) resp["content"] = cobj._tower.auto_tower(content["des_process"], content["money_type"]) return resp