Commit 6dc64b07b031bbee0ecd773119d52e3dc9e01bed

Authored by liuzujun
1 parent e7102d73

剧情领奖bug

Showing 1 changed file with 5 additions and 4 deletions   Show diff stats
src/actions/RoleAction.lua
... ... @@ -681,17 +681,18 @@ function _M.storyBookRewardRpc(agent, data)
681 681 local msg = MsgPack.unpack(data)
682 682 local storyId = msg.id
683 683 local storyBookData = csvdb["story_bookCsv"][storyId]
684   - if not storyBookData then return end
  684 + if not storyBookData then return 1 end
685 685 local storyStatus = role:getProperty("storyB")
686 686  
687 687 local status = (storyStatus[storyId] or {}).s
688 688  
689   - if status == -1 then return end
  689 + if status == -1 then return 2 end
690 690  
691 691 if not status or status ~= 1 then
692   - if storyBookData.unlockType == 1 and (role:getProperty("hangInfo").carbonId == tonumber(storyBookData.unlockData) or storyId == 1 or storyId == 2) then -- 挂机剧情正在挂机也可以领奖
  692 + --if storyBookData.unlockType == 1 and (role:getProperty("hangInfo").carbonId == tonumber(storyBookData.unlockData) or storyId == 1 or storyId == 2) then -- 挂机剧情正在挂机也可以领奖
  693 + if storyBookData.unlockType == 1 then -- 挂机剧情正在挂机也可以领奖
693 694 else
694   - return
  695 + return 3
695 696 end
696 697 end
697 698 -- 获取奖励
... ...