森罗bug修改

dev_chengFeng
ZhangBiao 2020-08-03 16:59:37 +08:00
parent a9f8f39280
commit 9b28e7c140
8 changed files with 17 additions and 27 deletions

View File

@ -501,7 +501,7 @@ function this.InitQuickFightData(monsterGroupId, eventId, msg)
Game.GlobalEvent:DispatchEvent(GameEvent.Event.PointTriggerEnd)
-- 试炼副本才有的字段
if msg.essenceValue then
LogPink(Language[10294] .. msg.essenceValue)
-- LogPink(Language[10294] .. msg.essenceValue)
-- 判断是否可寻路标志
if msg.essenceValue >= 100 then
@ -511,7 +511,7 @@ function this.InitQuickFightData(monsterGroupId, eventId, msg)
end
-- -1添加Boss点 -2添加传送门点
if MapTrialManager.powerValue >= 100 or MapTrialManager.powerValue == -1 or MapTrialManager.powerValue == -2 then
LogPink(Language[10295])
-- LogPink(Language[10295])
Game.GlobalEvent:DispatchEvent(GameEvent.Map.PointAdd, MapTrialManager.cell.cellId, MapTrialManager.cell.pointId)
end
MapTrialManager.UpdatePowerValue(msg.essenceValue)

View File

@ -111,18 +111,18 @@ function this.InitData(msg)
end
Log(Language[11191] .. this.totalTime)
-- 复活剩余时间]
if msg.reviveTime then
this.deadTime = msg.reviveTime
--Log("死亡剩余时间 " .. this.deadTime)
-- -- 复活剩余时间]
-- if msg.reviveTime then
-- this.deadTime = msg.reviveTime
-- --Log("死亡剩余时间 " .. this.deadTime)
end
-- end
-- 死亡次数
if msg.dieCount then
this.deadCount = msg.dieCount
--Log("在地图里死亡" .. this.deadCount.. "次")
end
-- -- 死亡次数
-- if msg.dieCount then
-- this.deadCount = msg.dieCount
-- --Log("在地图里死亡" .. this.deadCount.. "次")
-- end
local time = msg.leftTime
@ -267,7 +267,7 @@ function this.DeletePos(mapPointId)
for i, v in pairs(MapManager.mapPointList) do
if v then
if v == mapPointId then
Log(Language[11193] .. v .. Language[11194] .. i)
-- Log(Language[11193] .. v .. Language[11194] .. i)
Game.GlobalEvent:DispatchEvent(GameEvent.Map.PointRemove, i)
end
end
@ -483,9 +483,6 @@ end
function this.MapUpdateEvent(pos, func)
NetManager.MapUpdateEvent(pos, function (eventId)
--Log("event.eventId "..eventId)
--Log("point.pos2 "..pos)
-- 试炼召唤Boss需要向服务器同步一次发送-1000 此时不赋值
if pos ~= -1000 then
MapManager.curTriggerPos = pos

View File

@ -610,12 +610,11 @@ function this.TrialChangeFloor(nextMapId, msg)
end
SwitchPanel.OpenPanel(UIName.MapPanel)
MapTrialManager.isChangeLevel = false
if not MapTrialManager.IsFinalLevel() then
if MapTrialManager.curTowerLevel<10000 then
MapTrialManager.curTowerLevel = MapTrialManager.curTowerLevel + 1
end
--设置 进入下一层后领取全部奖励
MissionManager.GetAllRewardTrigger()
LogGreen(MapTrialManager.selectHeroDid)
end)
end

View File

@ -69,7 +69,6 @@ function this:BindEvent()
UIManager.OpenPanel(UIName.BattlePanel,fightData, BATTLE_TYPE.DAILY_CHALLENGE, function()
--更新精气值
LogGreen(Language[12222]..msg.essenceValue)
-- MapTrialManager.UpdatePowerValue(msg.essenceValue)--这句话会调用之后的event导致召唤boss特效播放两次直接把精气值付上就好了
MapTrialManager.powerValue = msg.essenceValue
--召唤Boss
if CarbonManager.difficulty == CARBON_TYPE.TRIAL and MapTrialManager.powerValue >= 100 then

View File

@ -233,7 +233,6 @@ function this.UpdatePowerValue()
end
function this.PlayEffect()
Log(Language[11254])
if MapTrialManager.powerValue == -1 or MapTrialManager.powerValue == 0 then
this.UpdatePowerValue()
else
@ -585,7 +584,6 @@ function this.KillAllBitch()
for i = 1, #pointData do
local mapPointId = pointData[i][1]
if mapPointId then
Log(Language[11266] .. mapPointId)
MapManager.DeletePos(mapPointId)
end
end

View File

@ -397,7 +397,6 @@ function this.OnAddPoint(pos, pointId)
-- LogPink("pointId "..pointId)
if pos and not this.EventPoint[pos] then
local u, v = Map_Pos2UV(pos)
LogPink(u.." "..v)
this.GenEventPoint(u, v, pointId)
-- 在MapManager中添加新增的地图点
-- 如果增加的点是一个需要亮的点
@ -422,10 +421,8 @@ function this.OnAddPoint(pos, pointId)
end
function this.OnRemovePoint(mapPointPos)
Log("removePoint:"..mapPointPos)
local u, v = Map_Pos2UV(mapPointPos) -- 当前位置坐标
local mapPointId = MapManager.mapPointList[mapPointPos]
Log(Language[11323] .. mapPointId)
if MapPointConfig[mapPointId].Style == 8 then
TileMapView.GetTileData(u, v).val = 0
else

View File

@ -395,9 +395,7 @@ function this.MapOutRequest(outType, func, nextMapId)
PlayerManager.curMapId = 0
MapManager.curMapId = 0
MapManager.isInMap = false
-- MapTrialManager.UpdatePowerValue(0)
MapTrialManager.SetBossState(0)
--SubmitExtraData({ type = SDKSubMitType.TYPE_EXIT_COPY })
end)
end

View File

@ -39,6 +39,8 @@ function this:BindEvent()
elseif MapTrialManager.curTowerLevel>10000 then
PopupTipPanel.ShowTip("奖励层不可使用炸弹~")
return
elseif usedNum>=5 then
PopupTipPanel.ShowTip("炸弹使用已达最大次数~")
else
NetManager.RequestUseBomb(function (msg)--请求使用炸弹
parent:ClosePanel()
@ -102,7 +104,7 @@ function this.RefreshPanel()
item:OnOpen(false, {itemId,1}, 1.2,false,false,false,sortingOrder)
item:Reset({itemId,1},ItemType.NoType,{nil,false,nil,false})
this.num.text=Language[11657]..itemNum
this.leftTime.text=Language[11656]..trialSetting[1].PrivilegeReward[2]-usedNum
this.leftTime.text=Language[11656]..(usedNum>=5 and 0 or (trialSetting[1].PrivilegeReward[2]-usedNum))
end
return this