This commit is contained in:
chenxi 2023-04-21 21:21:51 +08:00
parent 70058e8cc6
commit b378de406c
2 changed files with 6 additions and 1 deletions

View File

@ -54,7 +54,11 @@ function ChapterManager:endFight(id, combatReport)
DataManager.ChapterData:goNextChapter() DataManager.ChapterData:goNextChapter()
end end
GFunc.addRewards(result.rewards, BIReport.ITEM_GET_TYPE.FIGHT_END) GFunc.addRewards(result.rewards, BIReport.ITEM_GET_TYPE.FIGHT_END)
ModuleManager.BattleManager:showBattleResultUI(result.rewards, combatReport) local newRewards = {}
if result.rewards then
GFunc.mergeRewards2(result.rewards, newRewards)
end
ModuleManager.BattleManager:showBattleResultUI(newRewards, combatReport)
DataManager.ChapterData:init(result.chapterData, true) DataManager.ChapterData:init(result.chapterData, true)
DataManager.ChapterData:setDirty() DataManager.ChapterData:setDirty()
end end

View File

@ -97,6 +97,7 @@ function HeroCell:setGray(isGray)
if self.isGray == isGray then if self.isGray == isGray then
return return
end end
self.isGray = isGray
self.icon:setImageGray(isGray) self.icon:setImageGray(isGray)
self.matchImg:setImageGray(isGray) self.matchImg:setImageGray(isGray)
end end