Merge branch 'dev' of http://git.juzugame.com/b6-client/b6-lua into dev
This commit is contained in:
commit
78d37be3d4
@ -938,21 +938,21 @@ end
|
|||||||
|
|
||||||
function BattleController:generateInstructions(skillEntity, elementType, lineCount, influenceElementTypeMap, elementTypeMap)
|
function BattleController:generateInstructions(skillEntity, elementType, lineCount, influenceElementTypeMap, elementTypeMap)
|
||||||
local elementTypeCount = 0
|
local elementTypeCount = 0
|
||||||
local assistingList = nil
|
-- local assistingList = nil
|
||||||
---- 援助
|
---- 援助
|
||||||
for element, count in pairs(elementTypeMap) do
|
for element, count in pairs(elementTypeMap) do
|
||||||
if element == elementType then
|
-- if element == elementType then
|
||||||
elementTypeCount = count
|
elementTypeCount = elementTypeCount + count
|
||||||
else
|
-- else
|
||||||
if assistingList == nil then
|
-- if assistingList == nil then
|
||||||
assistingList = {}
|
-- assistingList = {}
|
||||||
end
|
-- end
|
||||||
local obj = {
|
-- local obj = {
|
||||||
count = count,
|
-- count = count,
|
||||||
skillMatch = element,
|
-- skillMatch = element,
|
||||||
}
|
-- }
|
||||||
table.insert(assistingList, obj)
|
-- table.insert(assistingList, obj)
|
||||||
end
|
-- end
|
||||||
end
|
end
|
||||||
|
|
||||||
---- 技能
|
---- 技能
|
||||||
@ -990,12 +990,12 @@ function BattleController:generateInstructions(skillEntity, elementType, lineCou
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if assistingList then
|
-- if assistingList then
|
||||||
table.insert(self.instructions, {
|
-- table.insert(self.instructions, {
|
||||||
name = BattleConst.INSTRUCTION_NAME.ASSISTING,
|
-- name = BattleConst.INSTRUCTION_NAME.ASSISTING,
|
||||||
assistingList = assistingList,
|
-- assistingList = assistingList,
|
||||||
})
|
-- })
|
||||||
end
|
-- end
|
||||||
|
|
||||||
---- 加buff
|
---- 加buff
|
||||||
if skillEntity then
|
if skillEntity then
|
||||||
|
|||||||
@ -32,7 +32,7 @@ function ServerBaseData:loadLocalData()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ServerBaseData:saveLocalData()
|
function ServerBaseData:saveLocalData()
|
||||||
local str = json.encode(GFunc.getTable(self.data)) or ""
|
local str = json.encode(self.data) or ""
|
||||||
LocalData:setString(self:_getLocalSaveKey(), str)
|
LocalData:setString(self:_getLocalSaveKey(), str)
|
||||||
if EDITOR_MODE then
|
if EDITOR_MODE then
|
||||||
Logger.logHighlight("save data:%s=%s", self:_getLocalSaveKey(), str)
|
Logger.logHighlight("save data:%s=%s", self:_getLocalSaveKey(), str)
|
||||||
|
|||||||
@ -116,7 +116,6 @@ function ServerItemData:recoveryItem(data, maxCount)
|
|||||||
addCount = maxCount - currentCount
|
addCount = maxCount - currentCount
|
||||||
end
|
end
|
||||||
self:_addItem(data.cfg_id, addCount)
|
self:_addItem(data.cfg_id, addCount)
|
||||||
ServerDataManager:saveData()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function ServerItemData:resetVitRecoverTime()
|
function ServerItemData:resetVitRecoverTime()
|
||||||
|
|||||||
@ -82,7 +82,6 @@ function ServerGameData:initData()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
self:setNotNewPlayer()
|
self:setNotNewPlayer()
|
||||||
self:saveData()
|
|
||||||
else
|
else
|
||||||
for k, v in pairs(self.dataMap) do
|
for k, v in pairs(self.dataMap) do
|
||||||
v:loadLocalData()
|
v:loadLocalData()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user