符文动效fix、皮肤解锁头像fix
This commit is contained in:
parent
72e966f8c1
commit
c9eecc4f76
@ -109,13 +109,9 @@ function RunesInfoComp:refresh()
|
|||||||
self.baseObject:unscheduleGlobal(self.autoSyncSid)
|
self.baseObject:unscheduleGlobal(self.autoSyncSid)
|
||||||
self.autoSyncSid = nil
|
self.autoSyncSid = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
if ModuleManager.RunesManager:isInAutoQuenching() then
|
if ModuleManager.RunesManager:isInAutoQuenching() then
|
||||||
self:startAutoQuenching()
|
self:startAutoQuenching()
|
||||||
return
|
return
|
||||||
elseif self.isAutoQuenching then
|
|
||||||
-- 结束自动淬炼
|
|
||||||
self:endAutoQuenching()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
self.txCost:setText(GFunc.getRewardNum(self.runesEntity:getMaterialCost()))
|
self.txCost:setText(GFunc.getRewardNum(self.runesEntity:getMaterialCost()))
|
||||||
@ -129,6 +125,11 @@ function RunesInfoComp:refresh()
|
|||||||
self:refreshLevelExp()
|
self:refreshLevelExp()
|
||||||
self:refreshSuit()
|
self:refreshSuit()
|
||||||
self:refreshRunes()
|
self:refreshRunes()
|
||||||
|
|
||||||
|
if self.isAutoQuenching then
|
||||||
|
-- 结束自动淬炼
|
||||||
|
self:endAutoQuenching()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 自动淬炼刷新
|
-- 自动淬炼刷新
|
||||||
@ -190,6 +191,7 @@ function RunesInfoComp:refreshRunes()
|
|||||||
local imgLock = map["img_lock"]
|
local imgLock = map["img_lock"]
|
||||||
local lock = map["lock"]
|
local lock = map["lock"]
|
||||||
local txLock = map["tx_lock"]
|
local txLock = map["tx_lock"]
|
||||||
|
obj:getComponent(GConst.TYPEOF_UNITY_CLASS.ANIMATOR).enabled = false
|
||||||
|
|
||||||
if ModuleManager.RunesManager:isInAutoQuenching() and index <= DataManager.RunesData:getLevelConfig()[self.tempLevel].grid or DataManager.RunesData:isUnlock(index) then
|
if ModuleManager.RunesManager:isInAutoQuenching() and index <= DataManager.RunesData:getLevelConfig()[self.tempLevel].grid or DataManager.RunesData:isUnlock(index) then
|
||||||
lock:setActive(false)
|
lock:setActive(false)
|
||||||
|
|||||||
@ -391,10 +391,14 @@ function PlayerData:getCanUnlockAvatarIds(checkData)
|
|||||||
if type(checkData) == "table" then
|
if type(checkData) == "table" then
|
||||||
-- 判断items解锁
|
-- 判断items解锁
|
||||||
for index, reward in ipairs(checkData) do
|
for index, reward in ipairs(checkData) do
|
||||||
if reward.type == GConst.REWARD_TYPE.ITEM and ConfigManager:getConfig("item")[reward.item.id].type == GConst.ItemConst.ITEM_TYPE.AVATAR then
|
if reward.type == GConst.REWARD_TYPE.ITEM then
|
||||||
for id, data in pairs(ConfigManager:getConfig("avatar")) do
|
local itemCfg = ConfigManager:getConfig("item")[reward.item.id]
|
||||||
if not self:isAvatarUnlock(id) and data.item == reward.item.id then
|
-- 头像道具、皮肤道具可解锁头像
|
||||||
table.insert(ids, id)
|
if itemCfg.type == GConst.ItemConst.ITEM_TYPE.AVATAR or itemCfg.type == GConst.ItemConst.ITEM_TYPE.SKIN then
|
||||||
|
for id, data in pairs(ConfigManager:getConfig("avatar")) do
|
||||||
|
if not self:isAvatarUnlock(id) and data.item == reward.item.id then
|
||||||
|
table.insert(ids, id)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user