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