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