UIBattle: 显示任务信息

This commit is contained in:
fatiao 2025-12-29 18:07:37 +08:00
parent 24604e7b0c
commit 4f2fa6080d
2 changed files with 2 additions and 3 deletions

View File

@ -182,7 +182,7 @@ function UIBattleView:RefreshStoryTaskInfo()
table.sort(keys)
for _, k in ipairs(keys) do
local v = storyCfgV2[k]
if mapLevel >= v.MapLevel and v.MapLevel > tmpMapLevel then
if mapLevel > v.MapLevel and v.MapLevel > tmpMapLevel then
currStoryId = v.StoryId
tmpMapLevel = v.MapLevel
end
@ -1246,7 +1246,6 @@ function UIBattleView:OnBattleWin()
self.HeadsBoxPart:Hide()
self.StatisticsPart:Hide()
self.rageBoxGo:SetActive(false)
self:RefreshStoryTaskInfo()
end
function UIBattleView:OnBattleFailed(killboss, isPlayRecord)

View File

@ -11,7 +11,7 @@ function UIPlayStoryCtr:SetData(data)
local storyData = self.data
local storyId = storyData.StoryId
local storyIntro = storyData.StoryIntro
local storyIntro = storyData.StoryIntro or {}
local storyPerforms = ManagerContainer.CfgMgr:GetStoryPerformDataById(storyId)
local cfgs = {}