体力不足的时候弹出来购买体力
This commit is contained in:
parent
e6acef616d
commit
af59a3f9a2
@ -32,8 +32,9 @@ function ChapterManager:startFight()
|
||||
if cost then
|
||||
vitCostNum = GFunc.getRewardNum(cost)
|
||||
end
|
||||
if vitCostNum > DataManager.BagData.ItemData:getVit() then
|
||||
if vitCostNum > DataManager.BagData.ItemData:getVit() then -- 体力不足
|
||||
GFunc.showItemNotEnough(GConst.ItemConst.ITEM_ID_VIT)
|
||||
ModuleManager.CommerceManager:showBuyVitUI()
|
||||
return
|
||||
end
|
||||
local parmas = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user