%%%------------------------------------------------------------------- %%% @author Administrator %%% @copyright (C) 2024, %%% @doc %%% %%% @end %%%------------------------------------------------------------------- -module(star_card_collect_data). -author("Administrator"). -include("common.hrl"). -include("data_config.hrl"). %% API -export([cfg/0]). cfg() -> #data_cfg{ name = star_card_collect_data ,lua_name = star_card_collect_data ,desc = "星命配置数据" ,source = "star_card_collect_data.xml" ,target = "star_card_collect_data.erl" ,inc = ["common.hrl", "attr.hrl"] ,callback = [ {{get_constant, "undefined"}, cb_fun, handle, {get_tuple, ["常量配置"], code, val}} ,{get_group_data, cb_fun, handle, {get_record, ["点星配置"], group, new_map, all}} ,{get_group_id, cb_fun, handle, {get_tuple, ["点星配置"], camp_id, group}} ,{get_group, cb_fun, handle, {tuple_type, ["卡牌配置"], group, [id, weight, must_not_in_m_times, must]}} ,{get_pos, cb_fun, handle, {get_tuple, ["卡牌配置"], [group, id], position}} ,{get_debris, cb_fun, handle, {get_tuple, ["卡牌配置"], [group, id], debris}} ,{get_rand_group, cb_fun, handle, {tuple_type, ["随机奖励配置"], group, [rewards, weight]}} ,{get_ext_reward, cb_fun, handle, {get_tuple, ["进度奖励"], [group, id], all}} ,{get_fix_reward, cb_fun, handle, {get_tuple, ["固定奖励配置"], [group, id], rewards}} ,{get_ext_reward_list, cb_fun, handle, {tuple_type, ["进度奖励"],group, id }} ,{get_fix_reward_list, cb_fun, handle, {tuple_type, ["固定奖励配置"], group, [id, limit]}} ] ,callback_cli = [ ] ,callback_json = [ {star_const, cb_fun_json, handle, {key_val, [ "常量配置"], [code], all}} ,{explain, cb_fun_json, handle, {key_val, ["活动说明"], [id], all}} ,{star_card, cb_fun_json, handle, {key_val, ["点星配置"], [group], all}} ,{card_info, cb_fun_json, handle, {type_get_val, ["卡牌配置"], [group, id], all}} ,{reward, cb_fun_json, handle, {type_get_val, ["进度奖励"], [group, id], all}} ,{static_reward, cb_fun_json, handle, {type_get_val, ["固定奖励配置"], [group, id], all}} ,{prob_info, cb_fun_json, handle, {key_val, ["概率展示"], [id], all}} ] ,sheet = [ {["常量配置"], [ #f_column{type = atom, name = code, desc = "键", mod = all} ,#f_column{type = term, name = val, desc = "值", mod = all, add_list_sign = false} ,#f_column{type = bstr, name = desc, desc = "描述", mod = all, add_list_sign = false} ]} ,{["点星配置"], [ #f_column{type = int, name = group, desc = "组别", mod = all} ,#f_column{type = bstr, name = cate, desc = "类型", mod = all} ,#f_column{type = term, name = limit, desc = "开启条件", mod = all} ,#f_column{type = term, name = one_loss, desc = "单抽消耗", mod = all} ,#f_column{type = term, name = ten_loss, desc = "10抽消耗", mod = all} ,#f_column{type = bstr, name = str1, val = "", desc = "宣传1", mod = client} ,#f_column{type = bstr, name = partner_model, val = "", desc = "伙伴模型", mod = client} ,#f_column{type = int, name = is_flip, val = "", desc = "是否反转", mod = client} ,#f_column{type = int, name = camp_id, desc = "活动id", mod = all} ,#f_column{type = int, name = shop_id, desc = "商城id", mod = all} ]} ,{["卡牌配置"], [ #f_column{type = int, name = group, desc = "组别", mod = all} ,#f_column{type = int, name = id, desc = "序号", mod = all} ,#f_column{type = bstr, name = cate, desc = "卡牌名称", mod = all} ,#f_column{type = int, name = face_id, desc = "头像id", mod = all} ,#f_column{type = int, name = quality, desc = "品质", mod = all} ,#f_column{type = int, name = weight, desc = "权重", mod = serve} ,#f_column{type = int, name = position, desc = "位置", mod = all} ,#f_column{type = int, name = debris, desc = "分解碎片", mod = all} ,#f_column{desc = "M次以内必不出", type = int, name = must_not_in_m_times, comment = "0表示不限制", val = "0", mod = serve} ,#f_column{type = int, name = must, val = "0", desc = "M次必出", mod = all} ,#f_column{type = int, name = is_show, val = "0", desc = "显示标签", mod = client} ]} ,{["固定奖励配置"], [ #f_column{type = int, name = group, desc = "组别", mod = all} ,#f_column{type = int, name = id, desc = "id", mod = all} ,#f_column{type = bstr, name = name, desc = "奖励名称", mod = all} ,#f_column{type = term, name = rewards, desc = "奖励", val = "[]", mod = all} ,#f_column{type = term, name = limit, desc = "需要激活的卡牌", val = "[]", mod = all} ]} ,{["随机奖励配置"], [ #f_column{type = int, name = group, desc = "组别", mod = all} ,#f_column{type = bstr, name = name, desc = "奖励名称", mod = all} ,#f_column{type = term, name = rewards, desc = "奖励", val = "[]", mod = all} ,#f_column{type = int, name = weight, desc = "权重", mod = all} ]} ,{["进度奖励"], [ #f_column{type = int, name = group, desc = "组别", mod = all} ,#f_column{type = int, name = id, desc = "编号", mod = all} ,#f_column{type = int, name = count, desc = "点星次数",mod = all} ,#f_column{type = term, name = items, desc = "奖励",mod = all} ]} ,{["活动说明"], [ #f_column{type = int, name = id, desc = "标签", primary = true, mod = client} ,#f_column{type = bstr, name = title, desc = "标签名", mod = client} ,#f_column{type = bstr, name = desc, desc = "内容", mod = client} ]} ,{["概率展示"], [ #f_column{type = int, name = id, desc = "id", primary = true, mod = client} ,#f_column{type = bstr, name = name, desc = "名称", mod = client} ,#f_column{type = bstr, name = probability, desc = "概率", mod = client} ]} ] }.