This commit is contained in:
2025-11-13 20:53:26 +09:00
parent 67ad785b6b
commit 02554d7f03

View File

@@ -324,10 +324,8 @@ script.on_nth_tick(1800, function(_)
local n = 1
for _, r in pairs(game.forces['player'].research_queue) do
local raw_name = r.name:gsub('-%d+$', '')
if r.name and r.level and r.research_unit_count_formula then
storage.phi_cl.combinator.research_queue[raw_name] = ((storage.phi_cl.combinator.research_queue[raw_name] and storage.phi_cl.combinator.research_queue[raw_name]) or 0) + math.pow(2, n - 1)
storage.phi_cl.combinator.research_queue[r.name] = ((storage.phi_cl.combinator.research_queue[r.name] and storage.phi_cl.combinator.research_queue[r.name]) or 0) + math.pow(2, n - 1)
end
n = n + 1