体力不足的时候弹出来购买体力

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

View File

@ -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 = {