Commit 69525ba2ca90b36eaae57a1c12585bafa3f83333

Authored by zhangqijia
1 parent be5f29fa

feat: 每次抽卡获得对应货币

活动 烟火女王/肃正之刃 8.12号开启
Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
src/actions/HeroAction.lua
... ... @@ -1089,6 +1089,16 @@ function _M.drawHeroRpc(agent, data)
1089 1089 end
1090 1090 role:finishGuide(8)
1091 1091  
  1092 + --每次抽卡获得对应货币,可在招募商城购买道具
  1093 + if buildTypeData["draw_type_item"] ~= 0 then
  1094 + local drawTypeItem = {}
  1095 + for id, count in pairs(buildTypeData["draw_type_item"]:toNumMap()) do
  1096 + drawTypeItem[id] = count * drawCount[drawType]
  1097 + drawAddReward[id] = drawTypeItem[id]
  1098 + end
  1099 + role:award(drawTypeItem, {log = {desc = "drawHero", int1 = btype}})
  1100 + end
  1101 +
1092 1102 role:log("gacha", {
1093 1103 gacha_id = poolId, -- 卡池ID
1094 1104 gacha_type = btype, -- 卡池类型
... ...