mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-02-10 10:02:11 +09:00
.
This commit is contained in:
@@ -3,7 +3,7 @@ Version: 3.0.133
|
|||||||
Date: 2026-01-18
|
Date: 2026-01-18
|
||||||
|
|
||||||
Changes:
|
Changes:
|
||||||
- [GM] Some changes in code layout.
|
- [GM] Fixed an issue with setting the research in queue.
|
||||||
|
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 3.0.132
|
Version: 3.0.132
|
||||||
|
|||||||
@@ -393,10 +393,10 @@ local function handle_research_queue(entity, combinator)
|
|||||||
end
|
end
|
||||||
|
|
||||||
for _, ss in pairs(s) do
|
for _, ss in pairs(s) do
|
||||||
if ss.signal and ss.signal.type == 'virtual' and ss.signal.quality == 'normal' and ss.count > 0 then
|
if ss.signal and (ss.signal.type and ss.signal.type == 'virtual') and (not ss.signal.quality or ss.signal.quality == 'normal') and ss.count > 0 then
|
||||||
local tn = ss.signal.name:gsub('signal-', '')
|
local tn = ss.signal.name:sub(8)
|
||||||
|
|
||||||
if prototypes.technology[tn] and prototypes.technology[tn].enabled and prototypes.technology[tn].research_unit_count_formula then
|
if prototypes.technology[tn] and prototypes.technology[tn].enabled and prototypes.technology[tn].max_level then
|
||||||
for i=1, 7 do
|
for i=1, 7 do
|
||||||
if math.floor(ss.count / (2 ^ (7 + i))) % 2 == 1 then
|
if math.floor(ss.count / (2 ^ (7 + i))) % 2 == 1 then
|
||||||
storage.phi_cl.combinator.research_queue_set[i] = tn
|
storage.phi_cl.combinator.research_queue_set[i] = tn
|
||||||
|
|||||||
Reference in New Issue
Block a user