四灵修改提交

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
LogGreen(Language[10741])
elseif result.result == 1 then
LogGreen(tostring(this.fourMonsterData[curType].monsterWave))
this.fourMonsterData[curType].monsterWave = id
this.fourMonsterData[curType].canFightTime = this.fourMonsterData[curType].canFightTime - 1
this.SaveFormation(curType)
-- LogGreen("前:".. this.fourMonsterData[curType].canFightTime)
-- 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()
-- if this.fourMonsterData[curType].openState ~= 0 then
-- UIManager.OpenPanel(UIName.FourElementMonsterCampPanel,curType)

View File

@ -163,12 +163,13 @@ function this.ShowBattleResultByFourElement(drop)
UIManager.OpenPanel(UIName.RewardItemPopup, MonsterCampManager.drop, 1,function(isBackBattle)--isBackBattle true时 为回放不走回调
LogPink("isBackBattle "..tostring(isBackBattle))
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
UIManager.OpenPanel(UIName.FourElementMonsterCampPanel,MonsterCampManager.curType)
else
UIManager.OpenPanel(UIName.MonsterCampMainPanel)
end
if _BattleBestPopup then
_BattleBestPopup:ClosePanel()
end