四灵修改提交
parent
b904b531af
commit
cb08764083
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue