源战役
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 line
1.1 KiB

  1. %%%--------------------------------------
  2. %%% @Author : zmh
  3. %%% @Created : 20201020
  4. %%% @Description: 魂力系统/铀能
  5. %%%--------------------------------------
  6. % -define(SQL_ROLE_URANIUM_GET, <<"SELECT `grade`,`lv`,`init_time`,`start_time`,`quick_time` FROM `role_uranium` where rid=~p">>).
  7. -define(SQL_ROLE_URANIUM_GET, <<"SELECT `grade`,`lv`,`have_energy` FROM `role_uranium` where rid=~p">>).
  8. % -define(SQL_ROLE_URANIUM_REPLACE,<<"replace into `role_uranium` (`rid`,`grade`,`lv`,`init_time`,`start_time`,`quick_time`) VALUES (~p,~p,~p,~p,~p,~p)">>).
  9. -define(SQL_ROLE_URANIUM_REPLACE,<<"replace into `role_uranium` (`rid`,`grade`,`lv`,`have_energy`) VALUES (~p,~p,~p,~p)">>).
  10. %%铀能
  11. -record(role_uranium, {
  12. grade = 1,
  13. lv = 0,
  14. power = 0,
  15. % init_time = 0, %%初始时间
  16. % start_time = 0, %%时间头
  17. % quick_time = 0,
  18. have_energy = 0%当前等级已经拥有的能量
  19. }).
  20. -record(base_uranium_lv, {
  21. grade = 0,
  22. lv = 0,
  23. % need = 0,
  24. % total = 0,
  25. attrs = [],
  26. energy = 0
  27. }).
  28. -record(base_uranium_grade, {
  29. grade = 0,
  30. name = "",
  31. skills = [],
  32. condition = []
  33. }).
  34. % -record(base_uranium_good,{
  35. % goodtypeid_and_power = []
  36. % % description
  37. % }).