def __init__(self): super().__init__() self.tool_json = CommonLoad("tool").get_all_data() self.lang_json = CommonLoad("lang").get_all_data() self.team_json = CommonLoad("team").get_all_data() self.systemOpen_json = CommonLoad("systemOpen").get_all_data() self.setting_json = CommonLoad("setting").get_all_data()
def get_invisible(self): test_data = [] hero_skin = CommonLoad("heroSkin").get_all_data().keys() tool = CommonLoad("tool").get_all_data().keys() for k,v in self.config.items(): if v.get("invisible"): test_data.append([self.copy_key_to_value(k, v),hero_skin,tool]) return test_data
def in_treasure(self): test_data = [] treasure = CommonLoad("comTreasure").get_all_data() treasureMerchant = CommonLoad("treasureMerchant").get_all_data() for k,v in self.config.items(): if v.get("treasure"): test_data.append([self.copy_key_to_value(k, v),treasure,treasureMerchant]) return test_data
def get_skill_data(self): skill_data = { 1: CommonLoad("skill").get_all_data().keys(), 2: CommonLoad("skillPassive").get_all_data().keys(), 3: CommonLoad("skillCharacter").get_all_data().keys(), 4: CommonLoad("skillAttackEffect").get_all_data().keys() } test_data = [] for k, v in self.config.items(): test_data.append([self.copy_key_to_value(k, v), skill_data]) return test_data
def reward(self): test_data = [] static = [] tool = CommonLoad("tool").get_all_data().keys() static_json = CommonLoad("static").get_all_data() avatarFrame = CommonLoad("avatarFrame").get_all_data().keys() for k, v in static_json.items(): static.append(v["name"]) for k, v in self.config.items(): test_data.append( [self.copy_key_to_value(k, v), tool, static, avatarFrame]) return test_data
def is_awake_data(self): test_data = [] team = CommonLoad("team").get_all_data() for k, v in self.config.items(): if v.get("isAwake"): test_data.append([self.copy_key_to_value(k, v), team]) return test_data
def in_hero(self): test_data = [] heros = CommonLoad("hero").get_all_data() for k,v in self.config.items(): if v.get("hero"): test_data.append([self.copy_key_to_value(k, v),heros]) return test_data
def in_attr(self): runeAtt_data = CommonLoad("runeAtt").get_all_data().keys() test_data = [] for k, v in self.config.items(): if k[0] == "9": continue test_data.append([self.copy_key_to_value(k, v), runeAtt_data]) return test_data
def costType_in_static(self): static = CommonLoad("static").get_all_data().values() key_data = [] static_list = [] for _v in static: static_list.append(_v['name']) for k, v in self.config.items(): key_data.append([self.copy_key_to_value(k, v), static_list]) return key_data
def get_attr(self): test_data = [] teamStarAwakeIndex = CommonLoad("teamStarAwakeIndex").get_all_data() for k, v in self.config.items(): awake = False if teamStarAwakeIndex[k[1:][:-3]].get("isAwake"): awake = True test_data.append([self.copy_key_to_value(k, v), awake]) return test_data
def get_diagramId_cost(self): test_data = [] config = CommonLoad("battleDiagram").get_all_data() print(config) for k, v in config.items(): if v.get("diagramId") and v.get("ecpend2"): diagramId = int(v["diagramId"]) if 1001 <= diagramId <= 3024 or 4001 <= diagramId <= 4030: test_data.append(self.copy_key_to_value(k, v)) return test_data
def get_main_id(self): test_data = [] _main_id = {} teamStarAwakeMain = CommonLoad( "teamStarAwakeMain").get_all_data().keys() for _id in teamStarAwakeMain: _main_id[_id[:-2]] = _main_id.get(_id[:-2], 0) + 1 for k, v in self.config.items(): test_data.append( [self.copy_key_to_value(k, v), teamStarAwakeMain, _main_id]) return test_data
def get_part_data(self): test_data = [] _part_id = {} teamStarAwakePart = CommonLoad( "teamStarAwakePart").get_all_data().keys() for _id in teamStarAwakePart: _part_id[_id[:-2]] = _part_id.get(_id[:-2], 0) + 1 for k, v in self.config.items(): test_data.append( [self.copy_key_to_value(k, v), teamStarAwakePart, _part_id]) return test_data
def card_in_team(self): team = CommonLoad("team").get_all_data().items() key_data = [] for k, v in self.config.items(): key_data.append([self.copy_key_to_value(k, v), team]) return key_data
def __init__(self): super().__init__() self.config = CommonLoad("europeTeamAltarConfig").get_all_data()
def get_cost(self): test_data = [] tool = CommonLoad("tool").get_all_data().keys() for k, v in self.config.items(): test_data.append([self.copy_key_to_value(k, v), tool]) return test_data
def __init__(self): super().__init__() self.config = CommonLoad("teamStarAwakePart").get_all_data() print(self.config)
def reward_in_tool(self): tool = CommonLoad("tool").get_all_data().keys() tmHandsel_list = [] for k, v in self.config.items(): tmHandsel_list.append([self.copy_key_to_value(k, v), tool]) return tmHandsel_list
def __init__(self): super().__init__() self.config = CommonLoad("rune").get_all_data()
def grid_in_setting(self): setting = CommonLoad("setting").get_all_data() key_data = [] for k, v in self.config.items(): key_data.append([self.copy_key_to_value(k, v), setting]) return key_data
def key_in_tool(self): tool = CommonLoad("tool").get_all_data().keys() key_data = [] for k, v in self.config.items(): key_data.append([self.copy_key_to_value(k, v), tool]) return key_data
def __init__(self): super().__init__() self.config = CommonLoad("shopArena").get_all_data()
def in_cashGoodsLib(self): test_data = [] cashGoodsLib = CommonLoad("cashGoodsLib").get_all_data().keys() for k,v in self.config.items(): test_data.append([self.copy_key_to_value(k,v),cashGoodsLib]) return test_data
def fool_in_tmProduct(self): tmProduct = CommonLoad("tmProduct").get_all_data().keys() tmHandsel_list = [] for k, v in self.config.items(): tmHandsel_list.append([self.copy_key_to_value(k, v), tmProduct]) return tmHandsel_list
def in_lang(self): lang_data = CommonLoad("lang").get_all_data().keys() test_data = [] for k, v in self.config.items(): test_data.append([self.copy_key_to_value(k, v), lang_data]) return test_data
def __init__(self): super().__init__() self.config = CommonLoad("teamStarAwakeIndex").get_all_data()
def speak_in_lang(self): lang = CommonLoad("lang").get_all_data().keys() tmHandsel_list = [] for k, v in self.config.items(): tmHandsel_list.append([self.copy_key_to_value(k, v), lang]) return tmHandsel_list
def __init__(self): super().__init__() self.config = CommonLoad("specialshop").get_all_data()