判断当前关卡是否有剧情

This commit is contained in:
fatiao 2026-02-06 14:34:45 +08:00
parent 225ca7c901
commit a0b3c5ae00

View File

@ -3105,6 +3105,19 @@ function GetRole_Illustration_Info(idx)
if idx == 6 then pos = Vector2(-15, 11, 0) end
return pos
end
function CurrLevelHasStory()
local mapLevel = ManagerContainer.LuaBattleMgr:GetCurLevelUniqueId()
local mapLevelData = ManagerContainer.CfgMgr:GetLevelDataById(mapLevel)
local dlgId = mapLevelData["DlgId"]
local forceGuideGroup = mapLevelData["ForceGuideGroup"]
local storyId = dlgId
local storyCfg = ManagerContainer.CfgMgr:GetStoryDataById(storyId)
if storyCfg then
return true
else
return false
end
end