源战役
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.

34 lines
1.2 KiB

  1. %%%-------------------------------------------------------------------
  2. %%% @doc 刮刮卡头文件
  3. %%% Module : scratch_card.hrl
  4. %%% Created : 2020-10-13
  5. %%% @author :tyl
  6. %%%-------------------------------------------------------------------
  7. -define(SCRATCH_CARD_SCORE, 1). %% 每次刮卡获得积分
  8. -define(SCRATCH_CARD_EXTRA_SCORE, 5). %% 每8次刮卡额外获得积分
  9. -define(SCRATCH_MILL_STONE, 8). %% 刮卡小里程(获得额外积分)
  10. -define(FIX_SCRATCH, 1). %% 刮取固定位置
  11. -define(RAND_SCRATCH, 2). %% 刮取随机位置
  12. -define(ALL_SCRATCH, 3). %% 全部刮取
  13. -define(SCRATCH_OPTIONS, [1,2,3]).
  14. %% 所有刮卡位置
  15. -define(SCRATCH_ALL_POS, [1,2,3,4,5,6,7,8]).
  16. %% 所有抽奖位
  17. -define(ALL_DRAW_POS, 9).
  18. %% 进程字典存储刮奖大奖传闻 [{pos,tv_list}...]
  19. -define(SCRATCH_TV_LIST, scratch_tv).
  20. -record(scratch_card_data, {
  21. card_list = [] %% 已刮的卡[{pos,grade_id}...]
  22. ,draw_list = [] %% 已抽的奖励顺位
  23. ,score = 0 %% 当前拥有积分
  24. ,small_pos = 0 %% 抽奖库最小位置(对应奖励档位)
  25. ,draw_times= 0 %% 抽奖次数
  26. }).