This commit is contained in:
xiekaidong 2023-07-24 21:47:45 +08:00
parent 434272d8aa
commit e4647b17dc
2 changed files with 11 additions and 1 deletions

View File

@ -31,6 +31,12 @@ function DungeonArmorManager:reqFight(chapterId)
return
end
-- 判断次数
if armorData:getRemianFarmCount(chapterId) <= 0 then
GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.DAILY_CHALLENGE_DESC_1))
return
end
-- 判断体力
if not DataManager.DungeonData:isEnoughHp(ModuleManager.MODULE_KEY.DUNGEON_ARMOR) then
GFunc.showItemNotEnough(GConst.ItemConst.ITEM_ID_VIT)

View File

@ -91,7 +91,11 @@ function DungeonArmorFightUI:refreshBottom()
GFunc.centerImgAndTx(vitIcon, costVit, 10)
uiMap["dungeon_armor_fight_ui.bg.bg.btn.desc"]:setText(I18N:getGlobalText(I18N.GlobalConst.TASK_CHALLENGE))
uiMap["dungeon_armor_fight_ui.bg.bg.desc_2"]:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_ARMOR_DESC_17, self.armorData:getRemianFarmCount(self.chapterId)))
local str = GConst.EMPTY_STRING
if self.armorData:getStarNum(self.chapterId) > 0 then
str = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_ARMOR_DESC_17, self.armorData:getRemianFarmCount(self.chapterId))
end
uiMap["dungeon_armor_fight_ui.bg.bg.desc_2"]:setText(str)
end
return DungeonArmorFightUI