diff --git a/Assets/ManagedResources/~Lua/Common/GlobalDefine.lua b/Assets/ManagedResources/~Lua/Common/GlobalDefine.lua index 20404b10f2..ab1db95825 100644 --- a/Assets/ManagedResources/~Lua/Common/GlobalDefine.lua +++ b/Assets/ManagedResources/~Lua/Common/GlobalDefine.lua @@ -1358,6 +1358,7 @@ FUNCTION_OPEN_TYPE = { HongMengZhen = 86, -- 鸿蒙阵 hunyin = 87, -- 魂印 tianshumijuan = 88,--天书秘卷 + guajigongneng = 89,--挂机多人 } TaskGetBtnIconDef = { diff --git a/Assets/ManagedResources/~Lua/Modules/Fight/View/FightPointMapView.lua b/Assets/ManagedResources/~Lua/Modules/Fight/View/FightPointMapView.lua index e1cf951fb6..2d314f9072 100644 --- a/Assets/ManagedResources/~Lua/Modules/Fight/View/FightPointMapView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Fight/View/FightPointMapView.lua @@ -115,20 +115,24 @@ function this:Init() local tempconfig = ConfigManager.GetConfigData(ConfigName.ChallengeMapConfig,m_curMapId) if not this.playerViews[0] then --LogGreen(m_curMapId) - local randomNum = math.random(2, 4) - PlayerManager.GetFightMapPlayerNPCData(randomNum,function(NPCList) - --LogGreen("NPCList:"..LengthOfTable(NPCList)) - local index = 1 - for k,v in pairs(NPCList) do - local index1 = math.random(6,12) - local index2 = math.random(19,38) - local index3 = math.random(1,2) - local index4 = math.random(2,19) - this.playerViews[index] = SubUIManager.Open(SubUIConfig.SingleFightPlayerView,this.mapRoot.transform,this) - this.playerViews[index]:SetData((index3 == 1 and index1 or index2),index4,false,v) - index = index + 1 - end - end) + if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.guajigongneng) then + iconNum = 9 + local randomNum = math.random(2, 4) + PlayerManager.GetFightMapPlayerNPCData(randomNum,function(NPCList) + --LogGreen("NPCList:"..LengthOfTable(NPCList)) + local index = 1 + for k,v in pairs(NPCList) do + local index1 = math.random(6,12) + local index2 = math.random(19,38) + local index3 = math.random(1,2) + local index4 = math.random(2,19) + this.playerViews[index] = SubUIManager.Open(SubUIConfig.SingleFightPlayerView,this.mapRoot.transform,this) + this.playerViews[index]:SetData((index3 == 1 and index1 or index2),index4,false,v) + index = index + 1 + end + end) + end + iconNum = 4 this.playerViews[0] = SubUIManager.Open(SubUIConfig.SingleFightPlayerView,this.mapRoot.transform,this) this.playerViews[0]:SetData(startUV[m_curMapId].u,startUV[m_curMapId].v,true) end