From 7832e0f1d4389edc7e1fc7300cf2d031fcdb75c0 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Fri, 11 Jul 2025 03:52:13 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 43033db..8930a23 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -309,7 +309,12 @@ if settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and set for _, r in pairs(game.forces['player'].research_queue) do if r.name and r.level and r.research_unit_count_formula then - storage.phi_cl.combinator.research_queue_n[n] = ((storage.phi_cl.combinator.research_queue_n[n] and storage.phi_cl.combinator.research_queue_n[n]) or 0) + math.pow(2, n + 8) + if storage.phi_cl.combinator.research_queue_n[n] then + storage.phi_cl.combinator.research_queue_n[n].value = storage.phi_cl.combinator.research_queue_n[n].value + math.pow(2, n + 8) + + else + storage.phi_cl.combinator.research_queue_n[n] = {name = r.name, value = math.pow(2, n + 8)} + end end n = n + 1