|
|
@@ -75,6 +75,13 @@ local function checkRed(human,orderType)
|
|
|
maxFinishIdx = lv
|
|
|
end
|
|
|
end
|
|
|
+ local maxUpgradeFinishIdx = 0
|
|
|
+ for lv in ipairs(orderData.upgradeFinish) do
|
|
|
+ if maxUpgradeFinishIdx <= lv then
|
|
|
+ maxUpgradeFinishIdx = lv
|
|
|
+ end
|
|
|
+ end
|
|
|
+ local maxFinishIdx = (maxFinishIdx > maxUpgradeFinishIdx) and maxUpgradeFinishIdx or maxFinishIdx
|
|
|
local maxExpIdx = 0
|
|
|
for _,cfg in pairs(cfg) do
|
|
|
if cfg.process <= exp and maxExpIdx <= cfg.idx then
|