判断当前关卡是否有剧情
This commit is contained in:
parent
225ca7c901
commit
a0b3c5ae00
@ -3105,6 +3105,19 @@ function GetRole_Illustration_Info(idx)
|
|||||||
if idx == 6 then pos = Vector2(-15, 11, 0) end
|
if idx == 6 then pos = Vector2(-15, 11, 0) end
|
||||||
|
|
||||||
return pos
|
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
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user