diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index 5ebf76e..6e0b392 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -1089,6 +1089,16 @@ function _M.drawHeroRpc(agent, data) end role:finishGuide(8) + --每次抽卡获得对应货币,可在招募商城购买道具 + if buildTypeData["draw_type_item"] ~= 0 then + local drawTypeItem = {} + for id, count in pairs(buildTypeData["draw_type_item"]:toNumMap()) do + drawTypeItem[id] = count * drawCount[drawType] + drawAddReward[id] = drawTypeItem[id] + end + role:award(drawTypeItem, {log = {desc = "drawHero", int1 = btype}}) + end + role:log("gacha", { gacha_id = poolId, -- 卡池ID gacha_type = btype, -- 卡池类型 -- libgit2 0.21.2