探索地图修改提交

dev_chengFeng
jiaoyangna 2021-12-29 16:21:59 +08:00
parent 89c298f593
commit 657574b61a
4 changed files with 2 additions and 6 deletions

View File

@ -77,7 +77,6 @@ end
--刷新编队
function this.UpdateFormationData(team)
LogGreen("team.teamId:"..team.teamId.." team.hp:"..team.hp)
if this.FormationData[team.teamId] then
this.FormationData[team.teamId].hp = team.hp
this.FormationData[team.teamId].exploreTime = team.exploreTime
@ -102,7 +101,6 @@ function this.UpdateFormationData(team)
this.UpdateMapFormationData(team.mapId,team.teamId,1)
end
end
LogGreen("this.FormationData[team.teamId].hp:"..this.FormationData[team.teamId].hp)
Game.GlobalEvent:DispatchEvent(GameEvent.Explore.UpdateSingleFormation,team.teamId)
else
LogGreen(string.format("%s编队不属于探索玩法",team.teamId))

View File

@ -90,10 +90,10 @@ function this:RemoveListener()
end
function this.Refresh(teamId)
LogGreen("teamId:"..teamId)
this.playerViews[teamId]:RefreshHp()
if ExploreManager.FormationData[teamId].state < 1 then
SubUIManager.Close(this.playerViews[this.playerViews[teamId].formationId])
SubUIManager.Close(this.playerViews[teamId])
this.playerViews[teamId] = nil
if this.playerViews[0].formationId == teamId then
this.playerViews[0] = nil
this.playerViews[this.playerViews[0].formationId] = nil

View File

@ -1090,7 +1090,6 @@ function this.ExplorerMapIndicationResponse(buffer)
local data = buffer:DataByte()
local msg = PlayerInfoProto_pb.ExplorerMapIndicationResponse()
msg:ParseFromString(data)
LogGreen("收到了刷新探索编队的indication")
ExploreManager.UpdateFormationData(msg.exploreInfo)
Game.GlobalEvent:DispatchEvent(GameEvent.Explore.UpdateFormation)
end

View File

@ -301,7 +301,6 @@ end
-- 随机一个位置给大爷走走
function SingleExplorePlayerView:SetRoleHitTarget()
LogGreen("self.activeState:"..self.activeState)
if self.activeState == 0 then
return
end