源战役
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

30 行
1.1 KiB

  1. %%------------------------------------------------------------------------------
  2. %% @Module : title
  3. %% @Author : xiaoxiang
  4. %% @Created : 2016.10.22
  5. %% @Description: 头衔定义
  6. %%------------------------------------------------------------------------------
  7. -define(TITLE_LIMIT_LV, 13).
  8. -record(title, {
  9. title_id = 0, %%头衔序号
  10. title_color = 0, %%头衔颜色,1-6分别对应白绿蓝紫粉橙
  11. require_combat = 0, %%晋升所需战力
  12. require_goods = [], %%晋升消耗物品和数量,[物品ID,物品数量]
  13. get_combat = 0, %%晋升获得战力
  14. get_attribute = [], %%晋升获得属性,[{属性类型,属性值},{属性类型,属性值}]
  15. start_server = 0,
  16. icon_name = "",
  17. name = ""
  18. }).
  19. -define(sql_get_title, <<"select id, title_id from title where id = ~w">>).
  20. -define(sql_insert_title, <<"insert into title set id = ~w, title_id = ~w">>).
  21. -define(sql_update_title, <<"replace into title (id, title_id) values(~w, ~w) ">>).
  22. -record(status_title, {
  23. id = 0,
  24. title_combat = 0,
  25. title_attr = maps:new()
  26. }).