体力不足得时候弹出来购买体力界面
This commit is contained in:
parent
af59a3f9a2
commit
502f35bf2e
@ -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 = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user