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:
@@ -1,4 +1,4 @@
|
|||||||
local alpha_order = {"b", "c", "d", "e", "f", "g", "h", "i"}
|
local alpha_order = {"b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m"}
|
||||||
local base_battery_energy = 5
|
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
|
||||||
@@ -85,6 +85,43 @@ local function ER(source, tier)
|
|||||||
}})
|
}})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- technology
|
||||||
|
local function ET(tier)
|
||||||
|
if (tier == 2)
|
||||||
|
then
|
||||||
|
prereq = {"solar-energy", "advanced-electronics", "electric-energy-accumulators"}
|
||||||
|
else
|
||||||
|
prereq = {"compound-energy" .. (tier - 2)}
|
||||||
|
end
|
||||||
|
|
||||||
|
data:extend({{
|
||||||
|
type = "technology",
|
||||||
|
name = "compound-energy-" .. (tier - 1),
|
||||||
|
icon_size = 256,
|
||||||
|
icon = graphics_location .. "solar-energy" .. "-t.png",
|
||||||
|
effects = {
|
||||||
|
{
|
||||||
|
type = "unlock-recipe",
|
||||||
|
recipe = "solar-panel-mk" .. tier
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = "unlock-recipe",
|
||||||
|
recipe = "accumulator-mk" .. tier
|
||||||
|
}
|
||||||
|
},
|
||||||
|
prerequisites = prereq,
|
||||||
|
unit = {
|
||||||
|
count = 200 * (tier - 1),
|
||||||
|
ingredients = {
|
||||||
|
{"automation-science-pack", 1},
|
||||||
|
{"logistic-science-pack", 1}
|
||||||
|
},
|
||||||
|
time = 10 * (tier - 1)
|
||||||
|
},
|
||||||
|
order = "a-h-" .. alpha_order[tier + 1]
|
||||||
|
}})
|
||||||
|
end
|
||||||
|
|
||||||
items = {"accumulator", "solar-panel"}
|
items = {"accumulator", "solar-panel"}
|
||||||
|
|
||||||
for i=1, 2, 1 do
|
for i=1, 2, 1 do
|
||||||
@@ -92,5 +129,6 @@ for i=1, 2, 1 do
|
|||||||
EE(items[i], j)
|
EE(items[i], j)
|
||||||
EI(items[i], j)
|
EI(items[i], j)
|
||||||
ER(items[i], j)
|
ER(items[i], j)
|
||||||
|
ET(j)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user