Commit 053978b405ca60670f4f5a28eb26cfb48093e568
1 parent
51ff85e3
剧情领奖
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
src/actions/RoleAction.lua
... | ... | @@ -577,8 +577,13 @@ function _M.storyBookRewardRpc(agent, data) |
577 | 577 | local storyBookData = csvdb["story_bookCsv"][storyId] |
578 | 578 | if not storyBookData then return end |
579 | 579 | local storyStatus = role:getProperty("storyB") |
580 | + | |
581 | + | |
580 | 582 | if not storyStatus[storyId] or not storyStatus[storyId].s or storyStatus[storyId].s ~= 1 then |
581 | - return | |
583 | + if storyBookData.unlockType == 1 and role:getProperty("hangInfo").carbonId == tonumber(storyBookData.unlockData) then -- 挂机剧情正在挂机也可以领奖 | |
584 | + else | |
585 | + return | |
586 | + end | |
582 | 587 | end |
583 | 588 | -- 获取奖励 |
584 | 589 | storyStatus[storyId].s = -1 | ... | ... |