This commit is contained in:
Fang 2023-09-19 11:21:07 +08:00
parent c03e46432f
commit 930cf8df28
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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)