mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-07-26 21:16:23 +09:00
.
This commit is contained in:
@@ -170,8 +170,8 @@ end
|
|||||||
|
|
||||||
-- MIG C 3 BASE MODULE
|
-- MIG C 3 BASE MODULE
|
||||||
if data.raw['module'] then
|
if data.raw['module'] then
|
||||||
for _, v in pairs({1, 2, 3}) do
|
for v = 1, 3 do
|
||||||
local n = 'efficiency-module' .. (v == 1 and '' or ('-' .. v['n']))
|
local n = 'efficiency-module' .. (v == 1 and '' or ('-' .. v))
|
||||||
|
|
||||||
if data.raw['module'][n] and data.raw['module'][n].effect and data.raw['module'][n].effect.consumption then
|
if data.raw['module'][n] and data.raw['module'][n].effect and data.raw['module'][n].effect.consumption then
|
||||||
data.raw['module'][n].effect.consumption = math.min(-0.3 * v, data.raw['module'][n].effect.consumption)
|
data.raw['module'][n].effect.consumption = math.min(-0.3 * v, data.raw['module'][n].effect.consumption)
|
||||||
|
|||||||
Reference in New Issue
Block a user