体力不足得时候弹出来购买体力界面

This commit is contained in:
chenxi 2023-05-19 17:08:19 +08:00
parent af59a3f9a2
commit 502f35bf2e

View File

@ -45,6 +45,9 @@ function IdleManager:getIdleQuickRewrad(isAd)
local costId = GFunc.getRewardId(cost) local costId = GFunc.getRewardId(cost)
local costNum = GFunc.getRewardNum(cost) local costNum = GFunc.getRewardNum(cost)
if not GFunc.checkCost(costId, costNum, true) then if not GFunc.checkCost(costId, costNum, true) then
if costId == GConst.ItemConst.ITEM_ID_VIT then
ModuleManager.CommerceManager:showBuyVitUI()
end
return return
end end
local args = { local args = {