fix
This commit is contained in:
parent
c03e46432f
commit
930cf8df28
@ -159,6 +159,8 @@ function RunesInfoComp:autoQuenching()
|
|||||||
if self.tempMaterialCount < self.tempCostNum then
|
if self.tempMaterialCount < self.tempCostNum then
|
||||||
-- 剩余材料不够,结束自动淬炼
|
-- 剩余材料不够,结束自动淬炼
|
||||||
ModuleManager.RunesManager:reqSyncQuenching(true)
|
ModuleManager.RunesManager:reqSyncQuenching(true)
|
||||||
|
else
|
||||||
|
DataManager.RunesData:checkAutoTime()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -302,7 +302,10 @@ end
|
|||||||
function RunesData:onAutoQuenchingOnce()
|
function RunesData:onAutoQuenchingOnce()
|
||||||
self.executedTotalAutoCount = self.executedTotalAutoCount + 1
|
self.executedTotalAutoCount = self.executedTotalAutoCount + 1
|
||||||
self.executedAutoCount = self.executedAutoCount + 1
|
self.executedAutoCount = self.executedAutoCount + 1
|
||||||
|
end
|
||||||
|
|
||||||
|
-- 检查自动次数是否足够
|
||||||
|
function RunesData:checkAutoTime()
|
||||||
if self.executedTotalAutoCount >= self.autoTotalCount then
|
if self.executedTotalAutoCount >= self.autoTotalCount then
|
||||||
-- 剩余自动次数不足,同步并请求数据
|
-- 剩余自动次数不足,同步并请求数据
|
||||||
ModuleManager.RunesManager:reqSyncQuenching(self.isCountEnd)
|
ModuleManager.RunesManager:reqSyncQuenching(self.isCountEnd)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user