探索提交

dev_chengFeng
jiaoyangna 2021-12-29 13:29:21 +08:00
parent 5c51490cf5
commit a6652757b1
2 changed files with 14 additions and 0 deletions

View File

@ -539,6 +539,7 @@ GameEvent = {
},
Explore = {
UpdateFormation = "Explore.UpdateFormation",
UpdateSingleFormation = "Explore.UpdateSingleFormation",
},
Gem = {
RefreshPanel = "Gem.RefreshPanel",

View File

@ -101,6 +101,7 @@ function this.UpdateFormationData(team)
this.UpdateMapFormationData(team.mapId,team.teamId,1)
end
end
Game.GlobalEvent:DispatchEvent(GameEvent.Explore.UpdateSingleFormation,team.teamId)
else
LogGreen(string.format("%s编队不属于探索玩法",team.teamId))
end
@ -186,6 +187,18 @@ function this.InitMapUserInfosData(data,mapId)
end
end
if not myData then
myData.userName = PlayerManager.nickName
myData.sex = NameManager.roleSex
myData.uid = PlayerManager.uid
myData.userSkin = PlayerManager.designation
myData.userTitle = PlayerManager.skin
myData.userMount = PlayerManager.ride
myData.practiceLevel = 0
myData.lv = PlayerManager.level
myData.formationId = 0
myData.hp = 0
end
for k,v in pairs(this.ExploreMapData[mapId].formations) do
local singleUserData = {}
singleUserData.userName = myData.userName