diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 1a6a45c..0658ae2 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -681,17 +681,18 @@ function _M.storyBookRewardRpc(agent, data) local msg = MsgPack.unpack(data) local storyId = msg.id local storyBookData = csvdb["story_bookCsv"][storyId] - if not storyBookData then return end + if not storyBookData then return 1 end local storyStatus = role:getProperty("storyB") local status = (storyStatus[storyId] or {}).s - if status == -1 then return end + if status == -1 then return 2 end if not status or status ~= 1 then - if storyBookData.unlockType == 1 and (role:getProperty("hangInfo").carbonId == tonumber(storyBookData.unlockData) or storyId == 1 or storyId == 2) then -- 挂机剧情正在挂机也可以领奖 + --if storyBookData.unlockType == 1 and (role:getProperty("hangInfo").carbonId == tonumber(storyBookData.unlockData) or storyId == 1 or storyId == 2) then -- 挂机剧情正在挂机也可以领奖 + if storyBookData.unlockType == 1 then -- 挂机剧情正在挂机也可以领奖 else - return + return 3 end end -- 获取奖励 -- libgit2 0.21.2