体力上限显示

This commit is contained in:
chenxi 2023-04-26 15:26:16 +08:00
parent cb87e896e6
commit 01f34843e8

View File

@ -72,7 +72,7 @@ function ResourceCell:refreshTextRightNow()
local count = obj:getNum() local count = obj:getNum()
if count < 0 then if count < 0 then
self.numTx:setText("0") self.numTx:setText("0")
elseif obj:getItemType() == GConst.ItemConst.ITEM_ID_VIT then elseif obj:getId() == GConst.ItemConst.ITEM_ID_VIT then
self.numTx:setText(GFunc.num2Str(count) .. "/" .. DataManager.PlayerData:getMaxVit()) self.numTx:setText(GFunc.num2Str(count) .. "/" .. DataManager.PlayerData:getMaxVit())
else else
self.numTx:setText(GFunc.num2Str(count)) self.numTx:setText(GFunc.num2Str(count))