%%---------------------------------------------------- %% 冒险矿战 %% @author yzq %%---------------------------------------------------- -module(adventure_mine_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = adventure_mine_data ,lua_name = adventure_mine_data ,desc = "冒险矿战" ,source = "adventure_mine_data.xml" ,target = "adventure_mine_data.erl" ,inc = ["common.hrl"] ,callback = [ {{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}} ,{floor_list, cb_fun, handle, {list, ["冒险层数据"]}} ,{get_floor_mine, cb_fun, handle, {get_tuple, ["冒险层数据"], floor, mine_list}} ,{get_mine_hole, cb_fun, handle, {get_tuple, ["矿脉数据"], id, [pos, units, robot_lev, robot_name]}} ,{{get_hole_base_items, "[]"}, cb_fun, handle, {get_tuple, ["矿脉数据"], id, base_items}} ,{get_max_time, cb_fun, handle, {get_tuple, ["矿脉数据"], id, max_time}} ,{{get_hole_hook_items, "[]"}, cb_fun, handle, {get_tuple, ["矿脉数据"], id, hook_items}} ,{get_primary_loss, cb_fun, handle, {get_tuple, ["矿脉数据"], id, primary_loss}} ,{get_senior_loss, cb_fun, handle, {get_tuple, ["矿脉数据"], id, senior_loss}} ,{{get_box_reward, "[]"}, cb_fun, handle, {get_tuple, ["宝箱奖励"], num, items}} ,{{get_dec_rate, "0"},[{data_reverse, 1}], cb_fun, handle, {get_fun, ["奖励衰减"], "get_dec_rate(Dis) when Dis >= ~ts -> ~ts;", [dis, dec_rate]}} ,{{get_plunder_reward, "0"},[{data_reverse, 1}], cb_fun, handle, {get_fun, ["奖励衰减"], "get_plunder_reward(Dis) when Dis >= ~ts -> ~ts;", [dis, plunder_reward]}} ,{{get_plunder_loss, "0"},[{data_reverse, 1}], cb_fun, handle, {get_fun, ["奖励衰减"], "get_plunder_loss(Dis) when Dis >= ~ts -> ~ts;", [dis, plunder_loss]}} ,{floor_cond, cb_fun, handle, {tuple_list, ["矿脉解锁"], [id, open_cond]}} ] ,callback_cli = [ {const, cb_fun_lua, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{floor_data, cb_fun_lua, handle, {key_val, ["冒险层数据"], floor, all}} ,{mine_data, cb_fun_lua, handle, {val_str, ["矿脉数据"], id, all}} ,{box_reward, cb_fun_lua, handle, {list_val, ["宝箱奖励"], all}} ,{attenuation_reward, cb_fun_lua, handle, {key_val, [ "奖励衰减"], [dis], [dec_rate]}} ,{mine_unlock_info, cb_fun_lua, handle, {key_val, [ "矿脉解锁"], [id], all}} ,{explain, cb_fun_lua, handle, {key_val, ["玩法说明"], [id], all}} ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{floor_data, cb_fun_json, handle, {key_val, ["冒险层数据"], floor, all}} ,{mine_data, cb_fun_json, handle, {val_str, ["矿脉数据"], id, all}} ,{box_reward, cb_fun_json, handle, {list_val, ["宝箱奖励"], all}} ,{attenuation_reward, cb_fun_json, handle, {key_val, [ "奖励衰减"], [dis], [dec_rate]}} ,{mine_unlock_info, cb_fun_json, handle, {key_val, [ "矿脉解锁"], [id], all}} ,{explain, cb_fun_json, handle, {key_val, ["玩法说明"], [id], all}} ] ,sheet = [ {["常量配置"],[ #f_column{type = term, name = key, desc = "常量标识", add_list_sign = false,mod = all} ,#f_column{type = term, name = val, desc = "常量值", add_list_sign = false,mod= all} ,#f_column{type = bstr, name = desc, desc = "描述", mod = client} ]} ,{["冒险层数据"], [ #f_column{type = int, name = floor, desc = "层数", mod = all} ,#f_column{type = bstr, name = name, desc = "名称", mod = client} ,#f_column{type = term, name = mine_list, desc = "矿脉列表"} ,#f_column{type = term, name = min_produce, desc = "最低产出显示", mod = client} ]} ,{["矿脉数据"], [ #f_column{type = int, name = id, desc = "ID", mod = all} ,#f_column{type = bstr, name = name, desc = "名称", mod = client} ,#f_column{type = int, name = star, desc = "星级", mod = client} ,#f_column{type = term, name = pos, desc = "出现位置", mod = all} ,#f_column{type = term, name = base_items, desc = "固定奖励", mod = all} ,#f_column{type = term, name = hook_items, desc = "产出奖励", mod = all} ,#f_column{type = int, name = robot_power, desc = "机器人战力", mod = all} ,#f_column{type = term, name = units, desc = "机器人列表", mod = all} ,#f_column{type = term, name = robot_power_repair, desc = "机器人属性修正", mod = all} ,#f_column{type = term, name = robot_lev, desc = "机器人角色等级", mod = all} ,#f_column{type = bstr, name = robot_name, desc = "机器人名称", mod = all} ,#f_column{type = int, name = max_time, desc = "可占领时间(分钟)", mod = all} ,#f_column{type = term, name = primary_loss, desc = "初级矿工消耗", mod = all} ,#f_column{type = term, name = senior_loss, desc = "高级矿工消耗", mod = all} ,#f_column{type = bstr, name = res_id, desc = "资源ID", mod = client} ]} ,{["宝箱奖励"], [ #f_column{type = int, name = num, desc = "挑战次数", mod = all} ,#f_column{type = term, name = items, desc = "奖励", mod = all} ,#f_column{type = int, name = effect_id, desc = "宝箱资源id", mod = client} ]} ,{["奖励衰减"], [ #f_column{type = int, name = dis, desc = "距离", mod = all} ,#f_column{type = int, name = dec_rate, desc = "产出衰减", mod = all} ,#f_column{type = int, name = plunder_reward, desc = "掠夺奖励", mod = all} ,#f_column{type = int, name = plunder_loss, desc = "掠夺损失", mod = all} ]} ,{["矿脉解锁"], [ #f_column{type = int, name = id, desc = "矿脉", mod = all} ,#f_column{type = term, name = open_cond, desc = "解锁条件", val = "[]", mod = all} ]} ,{["玩法说明"], [ #f_column{type = int, name = id, desc = "标签", primary = true, mod = client} ,#f_column{type = str, name = title, desc = "标签名", mod = client} ,#f_column{type = str, name = desc, desc = "内容", mod = client} ]} ] }.