mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
Update main.lua
This commit is contained in:
@@ -3,6 +3,7 @@ local base_battery_energy = 5
|
|||||||
local base_battery_flow = 300
|
local base_battery_flow = 300
|
||||||
local base_solar_energy = 60
|
local base_solar_energy = 60
|
||||||
local graphics_location = "__PHI-EN__/graphics/"
|
local graphics_location = "__PHI-EN__/graphics/"
|
||||||
|
local items = {"accumulator", "solar-panel"}
|
||||||
|
|
||||||
-- entity
|
-- entity
|
||||||
local function EE(source, tier)
|
local function EE(source, tier)
|
||||||
@@ -65,7 +66,7 @@ end
|
|||||||
|
|
||||||
-- recipe
|
-- recipe
|
||||||
local function ER(source, tier)
|
local function ER(source, tier)
|
||||||
na = source
|
local na = source
|
||||||
|
|
||||||
if (tier >= 3)
|
if (tier >= 3)
|
||||||
then
|
then
|
||||||
@@ -86,9 +87,9 @@ end
|
|||||||
local function ET(tier)
|
local function ET(tier)
|
||||||
if (tier == 2)
|
if (tier == 2)
|
||||||
then
|
then
|
||||||
prereq = {"solar-energy", "advanced-electronics", "electric-energy-accumulators"}
|
local prereq = {"solar-energy", "advanced-electronics", "electric-energy-accumulators"}
|
||||||
else
|
else
|
||||||
prereq = {"compound-energy-" .. (tier - 2)}
|
local prereq = {"compound-energy-" .. (tier - 2)}
|
||||||
end
|
end
|
||||||
|
|
||||||
data:extend({{
|
data:extend({{
|
||||||
@@ -119,8 +120,6 @@ local function ET(tier)
|
|||||||
}})
|
}})
|
||||||
end
|
end
|
||||||
|
|
||||||
items = {"accumulator", "solar-panel"}
|
|
||||||
|
|
||||||
for i=1, 2, 1 do
|
for i=1, 2, 1 do
|
||||||
for j=2, 8, 1 do
|
for j=2, 8, 1 do
|
||||||
EE(items[i], j)
|
EE(items[i], j)
|
||||||
|
|||||||
Reference in New Issue
Block a user