Example #1
0
def EquipStrenInitCostConfig():
    """获取所有装备强化初始值
    """
    global ALL_EQUIP_STREN_INIT_COST
    resultlist = ReadDataFromDB('gamedata_strengtheninitconst')
    ALL_EQUIP_STREN_INIT_COST = resultlist[0] if resultlist else {}
    print ALL_EQUIP_STREN_INIT_COST
Example #2
0
def ALLExperienceConfig():
    """所有的经验配置信息
    """
    global EXPERIENCE_CONFIG
    resultlist = ReadDataFromDB('gamedata_experience')
    for _exp in resultlist:
        EXPERIENCE_CONFIG[_exp['level']] = _exp
Example #3
0
def AllPartnersInfo():
    """获取所有宠物的模板信息
    """
    global ALL_PARTNER_INFO
    resultlist = ReadDataFromDB('gamedata_partners')
    for _p in resultlist:
        ALL_PARTNER_INFO[_p['partner_id']] = _p
Example #4
0
def AllFamNodeInfo():
    """获取所有的副本节点信息
    """
    global ALL_FAM_INFO, ALL_FAMNODE_INFO
    resultlist = ReadDataFromDB('gamedata_famnode')
    for _famnode in resultlist:
        ALL_FAMNODE_INFO[_famnode['node_id']] = _famnode
        ALL_FAM_INFO[_famnode['fam_id']]['nodes'].append(_famnode['node_id'])
Example #5
0
def AllFamInfo():
    """获取所有的副本
    """
    global ALL_FAM_INFO
    resultlist = ReadDataFromDB('gamedata_fam')
    for _fam in resultlist:
        _fam['nodes'] = []
        ALL_FAM_INFO[_fam['fam_id']] = _fam
Example #6
0
def EquipStrenGrowConfig():
    """获取装备强化成长值
    """
    resultlist = ReadDataFromDB('gamedata_strengthengrow')
    for _grow in resultlist:
        level, color = _grow['level'], _grow['color']
        if level not in ALL_EQUIP_STREN_VALUE:
            ALL_EQUIP_STREN_VALUE[level] = {}
        ALL_EQUIP_STREN_VALUE[level][color] = _grow
Example #7
0
def EquipQualUpdate():
    """获取所有装备品质升级信息
    """
    resultlist = ReadDataFromDB('gamedata_equipqualityupdate')
    for _update in resultlist:
        quality, rank = _update['quality'], _update['rank']
        if quality not in ALL_EQUIP_QUAL_UPDATE:
            ALL_EQUIP_QUAL_UPDATE[quality] = {}
        ALL_EQUIP_QUAL_UPDATE[quality][rank] = _update
Example #8
0
def EquipQualAddiConfig():
    """获取装备品质属性加成
    """
    resultlist = ReadDataFromDB('gamedata_qualityaddition')
    for _quality in resultlist:
        quality, rank = _quality['quality'], _quality['rank']
        if quality not in ALL_EQUIP_QUAL_ADDI_VALUE:
            ALL_EQUIP_QUAL_ADDI_VALUE[quality] = {}
        ALL_EQUIP_QUAL_ADDI_VALUE[quality][rank] = _quality
    print ALL_EQUIP_QUAL_ADDI_VALUE
Example #9
0
def PlotInfoConfig():
    global ALL_PLOT_INFO
    resultlist = ReadDataFromDB('gamedata_plot')
    for _plot in resultlist:
        ALL_PLOT_INFO[_plot['plotid']] = _plot
Example #10
0
def ALLArenaRobotConfig():
    """功法突破
    """
    resultlist = ReadDataFromDB('gamedata_arenarobot')
    for _s in resultlist:
        ALL_AERNA_ROBOT[_s['robot_id']] = _s
Example #11
0
def ALLGongfaBreakConfig():
    """功法突破
    """
    resultlist = ReadDataFromDB('gamedata_break')
    for _s in resultlist:
        ALL_GONGFA_BREAK[_s['level']] = _s
Example #12
0
def ALLGongfaGrowConfig():
    """功法属性成长
    """
    global ALL_GONGFA_GROW
    resultlist = ReadDataFromDB('gamedata_gongfa')
    ALL_GONGFA_GROW = resultlist[0] if resultlist else {}
Example #13
0
def ALLShareConfig():
    """分享配置
    """
    resultlist = ReadDataFromDB('gamedata_share')
    for _s in resultlist:
        ALL_SHARE_CONFIG[_s['function']] = _s
Example #14
0
def ALLRoadConfig():
    """所有灵路节点配置
    """
    resultlist = ReadDataFromDB('gamedata_road')
    for _r in resultlist:
        ALL_ROAD_CONFIG[_r['node_id']] = _r
Example #15
0
def SceneInfoConfig():
    global ALL_SCENE_INFO
    resultlist = ReadDataFromDB('gamedata_sceneinfo')
    for _scene in resultlist:
        ALL_SCENE_INFO[_scene['scene_id']] = _scene
Example #16
0
def MonsterInfoConfig():
    global ALL_MONSTER_INFO
    resultlist = ReadDataFromDB('gamedata_monsterinfo')
    for _monster in resultlist:
        #         _monster["skills"] = eval("[%s]"%_monster["skills"])
        ALL_MONSTER_INFO[_monster['monster_id']] = _monster
Example #17
0
def EquipAdvanceConfig():
    """获取所有装备进阶信息
    """
    resultlist = ReadDataFromDB('gamedata_equipadvance')
    for _advance in resultlist:
        ALL_EQUIP_ADVANCE_INFO[_advance['source_equipid']] = _advance
Example #18
0
def ApcConfig():
    """获取所有角色装备初始配置
    """
    resultlist = ReadDataFromDB('gamedata_equipmentconfig')
    for _apc in resultlist:
        ALL_APC_TEMPLATE[_apc['apc_id']] = _apc
Example #19
0
def NPCInfoConfig():
    global ALL_NPC_INFO
    resultlist = ReadDataFromDB('gamedata_npcinfo')
    for _npc in resultlist:
        ALL_NPC_INFO[_npc['npc_id']] = _npc
Example #20
0
def SkillInfoConfig():
    global ALL_SKILL_INFO
    resultlist = ReadDataFromDB('gamedata_skillinfo')
    for _skill in resultlist:
        ALL_SKILL_INFO[_skill['skill_id']] = _skill
Example #21
0
def TemplateConfig():
    """获取所有道具配置信息
    """
    resultlist = ReadDataFromDB('gamedata_template')
    for _template in resultlist:
        ALL_TEMPLATE_INFO[_template['template_id']] = _template
Example #22
0
def FightInfoConfig():
    global ALL_FIGHT_INFO
    resultlist = ReadDataFromDB('gamedata_fightinfo')
    for _battle in resultlist:
        ALL_FIGHT_INFO[_battle['fight_id']] = _battle
Example #23
0
def AreaInfoConfig():
    global ALL_AREA_INFO
    resultlist = ReadDataFromDB('gamedata_areainfo')
    for _area in resultlist:
        ALL_AREA_INFO[_area['area_id']] = _area