From 053978b405ca60670f4f5a28eb26cfb48093e568 Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Fri, 24 Jul 2020 11:09:38 +0800 Subject: [PATCH] 剧情领奖 --- src/actions/RoleAction.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 84af0b2..a0fec82 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -577,8 +577,13 @@ function _M.storyBookRewardRpc(agent, data) local storyBookData = csvdb["story_bookCsv"][storyId] if not storyBookData then return end local storyStatus = role:getProperty("storyB") + + if not storyStatus[storyId] or not storyStatus[storyId].s or storyStatus[storyId].s ~= 1 then - return + if storyBookData.unlockType == 1 and role:getProperty("hangInfo").carbonId == tonumber(storyBookData.unlockData) then -- 挂机剧情正在挂机也可以领奖 + else + return + end end -- 获取奖励 storyStatus[storyId].s = -1 -- libgit2 0.21.2