数据修改文件默认beam文件+erl源文件+xml文件
-module(classes_modify_data).
-export([
get_cost_price/3
,get_colddown/1
,get_wing_skill/1
,get_item_convert/1
]).
-include("common.hrl").
%% ----------------------------------------------------
%% 外部接口
%% ----------------------------------------------------
%% 获取翅膀
{{get_cost_rate}}
get_cost_rate(_, _) -> 1000.
{{get_price}}
get_price(_, _) -> false.
{{get_colddown}}
get_colddown(_) -> 2592000.
{{get_wing_skill}}
get_wing_skill(_) -> false.
{{get_item_convert}}
get_item_convert(_) -> false.
get_cost_price(Classes, Times, Rate) ->
case get_price(Classes, Times) of
{Price, Min, Max, Gold, GoldBind, GoldBindDeposit} ->
Ratio = case Rate =:= 1001 of
true -> 1000;
false ->
get_cost_rate(Classes, Rate)
end,
NewPrice = max(min(Max, round(Ratio * Price / 1000)), Min),
{round(NewPrice * Gold / 1000), round(NewPrice * GoldBind / 1000), round(NewPrice * GoldBindDeposit / 1000)};
false -> false
end.
下载地址:
链接: https://pan.baidu.com/s/1N3QzHyLOinf0UKZM7uw3gQ?pwd=w9d8 提取码: w9d8