Update main.lua

This commit is contained in:
PHIDIAS
2022-12-02 00:02:53 +09:00
parent 72fe1396ff
commit 453095c892

View File

@@ -3,12 +3,15 @@ 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-EQ__/graphics/" local graphics_location = "__PHI-EQ__/graphics/"
local items = {"solar-panel", "battery", "fusion-reactor", "personal-laser-defense", "energy-shield", "personal-roboport", "night-vision", "exoskeleton"}
-- equipment -- equipment
local function EE(source, tier) local function EE(source, tier)
item = {} item = {}
item["name"] = source .. "-mk" .. tier item["name"] = source .. "-mk" .. tier
item["categories"] = armor item["categories"] = armor
local w = 1
local h = 1
if (source == "solar-panel") if (source == "solar-panel")
then then
@@ -117,13 +120,27 @@ local function ET(tier)
}}) }})
end end
items = {"solar-panel", "battery", "fusion-reactor"} for i=1, 8, 1 do
if (i <= 3)
for i=1, 3, 1 do then
for j=2, 8, 1 do for j=2, 8, 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) ET(j)
end
elseif (i == 4)
then
for j=2, 6, 1 do
EE(items[i], j)
end
elseif (i <= 6)
then
for j=3, 6, 1 do
EE(items[i], j)
end
elseif (i <= 8)
then
EE(items[i], 2)
end end
end end