局内升级
This commit is contained in:
parent
4ea4989c85
commit
65f695030e
@ -635,11 +635,9 @@ function BattleController:fillBoard()
|
|||||||
self:onFillBoardOver()
|
self:onFillBoardOver()
|
||||||
self.battleUI:enableUITouch()
|
self.battleUI:enableUITouch()
|
||||||
|
|
||||||
---- 临时
|
if self.battleData:useAddlvCount() then
|
||||||
-- local list = {BattleConst.GRID_TYPE.SNOW_BOX, BattleConst.GRID_TYPE.SOLID_SNOW, BattleConst.GRID_TYPE.VINES, BattleConst.GRID_TYPE.ICE}
|
ModuleManager.BattleManager:showSelectSkillUI(self:getRandomSkillList())
|
||||||
-- local gridType = list[math.random(1, 4)]
|
end
|
||||||
-- self:generateGridType(gridType)
|
|
||||||
-- ModuleManager.BattleManager:showSelectSkillUI(self:getRandomSkillList())
|
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -1097,6 +1095,10 @@ end
|
|||||||
function BattleController:onSelectSkill(skillId)
|
function BattleController:onSelectSkill(skillId)
|
||||||
self.battleData:addSkillCount(skillId)
|
self.battleData:addSkillCount(skillId)
|
||||||
BATTLE_ROGUE_SKILL_HANDLE.takeEffect(skillId, self.battleData, self)
|
BATTLE_ROGUE_SKILL_HANDLE.takeEffect(skillId, self.battleData, self)
|
||||||
|
|
||||||
|
if self.battleData:useAddlvCount() then
|
||||||
|
ModuleManager.BattleManager:showSelectSkillUI(self:getRandomSkillList())
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function BattleController:changeElementType(count, elementType)
|
function BattleController:changeElementType(count, elementType)
|
||||||
@ -1220,10 +1222,12 @@ local function _addCurRoundAttr(self, instruction, callback)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function _assisting(self, instruction, callback)
|
local function _assisting(self, instruction, callback)
|
||||||
|
self:addBattleExp(instruction.count)
|
||||||
callback()
|
callback()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function _generalAttack(self, instruction, callback)
|
local function _generalAttack(self, instruction, callback)
|
||||||
|
self:addBattleExp(instruction.count) -- 先直接加
|
||||||
self.atkTeam:useNormalSkill(instruction.skillMatch, instruction.count, callback)
|
self.atkTeam:useNormalSkill(instruction.skillMatch, instruction.count, callback)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,7 @@ end
|
|||||||
function BattleUI:onLoadRootComplete()
|
function BattleUI:onLoadRootComplete()
|
||||||
self:_display()
|
self:_display()
|
||||||
self:_addListeners()
|
self:_addListeners()
|
||||||
|
self:_bind()
|
||||||
end
|
end
|
||||||
|
|
||||||
function BattleUI:_display()
|
function BattleUI:_display()
|
||||||
|
|||||||
@ -340,6 +340,7 @@ function BattleData:useAddlvCount()
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
self.addLvCount = self.addLvCount - 1
|
self.addLvCount = self.addLvCount - 1
|
||||||
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
function BattleData:initTeam(side)
|
function BattleData:initTeam(side)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user