四灵修改提交

dev_chengFeng
jiaoyangna 2021-03-09 16:48:05 +08:00
parent b904b531af
commit cb08764083
2 changed files with 8 additions and 6 deletions

View File

@ -181,10 +181,11 @@ function this.StraightBattle(id,type,func,curType)
if result.result == 0 then if result.result == 0 then
LogGreen(Language[10741]) LogGreen(Language[10741])
elseif result.result == 1 then elseif result.result == 1 then
LogGreen(tostring(this.fourMonsterData[curType].monsterWave))
this.fourMonsterData[curType].monsterWave = id this.fourMonsterData[curType].monsterWave = id
this.fourMonsterData[curType].canFightTime = this.fourMonsterData[curType].canFightTime - 1 -- LogGreen("前:".. this.fourMonsterData[curType].canFightTime)
this.SaveFormation(curType) -- this.fourMonsterData[curType].canFightTime = this.fourMonsterData[curType].canFightTime - 1
-- LogGreen("后:".. this.fourMonsterData[curType].canFightTime)
-- this.SaveFormation(curType)
-- UIManager.OpenPanel(UIName.BattleWinPopup, nil, false, BATTLE_TYPE.MONSTER_CAMP, result, true, true,function() -- UIManager.OpenPanel(UIName.BattleWinPopup, nil, false, BATTLE_TYPE.MONSTER_CAMP, result, true, true,function()
-- if this.fourMonsterData[curType].openState ~= 0 then -- if this.fourMonsterData[curType].openState ~= 0 then
-- UIManager.OpenPanel(UIName.FourElementMonsterCampPanel,curType) -- UIManager.OpenPanel(UIName.FourElementMonsterCampPanel,curType)

View File

@ -162,13 +162,14 @@ function this.ShowBattleResultByFourElement(drop)
-- 打开关卡奖励界面 -- 打开关卡奖励界面
UIManager.OpenPanel(UIName.RewardItemPopup, MonsterCampManager.drop, 1,function(isBackBattle)--isBackBattle true时 为回放不走回调 UIManager.OpenPanel(UIName.RewardItemPopup, MonsterCampManager.drop, 1,function(isBackBattle)--isBackBattle true时 为回放不走回调
LogPink("isBackBattle "..tostring(isBackBattle)) LogPink("isBackBattle "..tostring(isBackBattle))
if not isBackBattle then if not isBackBattle then
MonsterCampManager.fourMonsterData[MonsterCampManager.curType].canFightTime = MonsterCampManager.fourMonsterData[MonsterCampManager.curType].canFightTime - 1
MonsterCampManager.SaveFormation(MonsterCampManager.curType)
if MonsterCampManager.fourMonsterData[MonsterCampManager.curType].openState ~= 0 then if MonsterCampManager.fourMonsterData[MonsterCampManager.curType].openState ~= 0 then
UIManager.OpenPanel(UIName.FourElementMonsterCampPanel,MonsterCampManager.curType) UIManager.OpenPanel(UIName.FourElementMonsterCampPanel,MonsterCampManager.curType)
else else
UIManager.OpenPanel(UIName.MonsterCampMainPanel) UIManager.OpenPanel(UIName.MonsterCampMainPanel)
end end
if _BattleBestPopup then if _BattleBestPopup then
_BattleBestPopup:ClosePanel() _BattleBestPopup:ClosePanel()
end end