From c5e11ffc687610ba2d521c92168abf42ec6da74c Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Mon, 28 Dec 2020 20:50:49 +0800 Subject: [PATCH] 解锁条件修改 --- src/actions/HangAction.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/HangAction.lua b/src/actions/HangAction.lua index c712399..107ec41 100644 --- a/src/actions/HangAction.lua +++ b/src/actions/HangAction.lua @@ -560,10 +560,10 @@ function _M.startBonusBattleRpc(agent, data) end if not bonusData then return 3 end - if not role:checkHangPass(bonusData.unlock) then return 4 end + local bonusStar = role:getProperty("bonusStar") + if not bonusStar[bonusData.unlock] or bonusStar[bonusData.unlock] == 0 then return 4 end - local bonusStar = role:getProperty("bonusStar") if bonusStar[id] and bonusStar[id] >= (1 << #bonusData.sweep_condition:toTableArray(true)) - 1 then local bonusC = role.dailyData:getProperty("bonusC") bonusC[bonusData.type] = bonusC[bonusData.type] or {c = 0, b = 0} -- libgit2 0.21.2