This commit is contained in:
2023-04-11 00:33:18 +09:00
parent 0b836fdbb5
commit 96e616035b
15 changed files with 1767 additions and 122 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "PHI-EQ",
"version": "1.1.4",
"version": "1.1.5",
"factorio_version": "1.1",
"date": "2023-03-20",
"title": "Phidias Equipment",
@@ -9,7 +9,6 @@
"homepage": "",
"description": "Additional Armor Equipment",
"dependencies": [
"base >= 1.1.0",
"PHI-EN >= 1.1.0"
"base >= 1.1.0"
]
}

View File

@@ -202,52 +202,53 @@ for i=1, 8, 1 do
end
end
table.insert(data.raw.technology['compound-energy-1'].effects, {type='unlock-recipe', recipe='solar-panel-mk2-equipment'})
table.insert(data.raw.technology['compound-energy-1'].effects, {type='unlock-recipe', recipe='night-vision-mk2-equipment'})
table.insert(data.raw.technology['compound-energy-1'].effects, {type='unlock-recipe', recipe='exoskeleton-mk2-equipment'})
table.insert(data.raw.technology['compound-energy-1'].effects, {type='unlock-recipe', recipe='fusion-reactor-mk2-equipment'})
table.insert(data.raw.technology['compound-energy-1'].effects, {type='unlock-recipe', recipe='personal-laser-defense-mk2-equipment'})
table.insert(data.raw.technology['power-armor-mk2'].effects, {type='unlock-recipe', recipe='power-armor-mk3'})
table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='solar-panel-mk3-equipment'})
table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='battery-mk3-equipment'})
table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='fusion-reactor-mk3-equipment'})
table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='personal-laser-defense-mk3-equipment'})
table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='energy-shield-mk3-equipment'})
table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='personal-roboport-mk3-equipment'})
table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='power-armor-mk3'})
table.insert(data.raw.technology['night-vision-equipment'].effects, {type='unlock-recipe', recipe='night-vision-mk2-equipment'})
table.insert(data.raw.technology['compound-energy-3'].effects, {type='unlock-recipe', recipe='solar-panel-mk4-equipment'})
table.insert(data.raw.technology['compound-energy-3'].effects, {type='unlock-recipe', recipe='battery-mk4-equipment'})
table.insert(data.raw.technology['compound-energy-3'].effects, {type='unlock-recipe', recipe='fusion-reactor-mk4-equipment'})
table.insert(data.raw.technology['compound-energy-3'].effects, {type='unlock-recipe', recipe='personal-laser-defense-mk4-equipment'})
table.insert(data.raw.technology['compound-energy-3'].effects, {type='unlock-recipe', recipe='energy-shield-mk4-equipment'})
table.insert(data.raw.technology['compound-energy-3'].effects, {type='unlock-recipe', recipe='personal-roboport-mk4-equipment'})
table.insert(data.raw.technology['exoskeleton-equipment'].effects, {type='unlock-recipe', recipe='exoskeleton-mk2-equipment'})
table.insert(data.raw.technology['compound-energy-4'].effects, {type='unlock-recipe', recipe='battery-mk4-equipment'})
table.insert(data.raw.technology['compound-energy-4'].effects, {type='unlock-recipe', recipe='solar-panel-mk5-equipment'})
table.insert(data.raw.technology['compound-energy-4'].effects, {type='unlock-recipe', recipe='battery-mk5-equipment'})
table.insert(data.raw.technology['compound-energy-4'].effects, {type='unlock-recipe', recipe='fusion-reactor-mk5-equipment'})
table.insert(data.raw.technology['compound-energy-4'].effects, {type='unlock-recipe', recipe='personal-laser-defense-mk5-equipment'})
table.insert(data.raw.technology['compound-energy-4'].effects, {type='unlock-recipe', recipe='energy-shield-mk5-equipment'})
table.insert(data.raw.technology['compound-energy-4'].effects, {type='unlock-recipe', recipe='personal-roboport-mk5-equipment'})
table.insert(data.raw.technology['solar-panel-equipment'].effects, {type='unlock-recipe', recipe='solar-panel-mk2-equipment'})
table.insert(data.raw.technology['solar-panel-equipment'].effects, {type='unlock-recipe', recipe='solar-panel-mk3-equipment'})
table.insert(data.raw.technology['solar-panel-equipment'].effects, {type='unlock-recipe', recipe='solar-panel-mk4-equipment'})
table.insert(data.raw.technology['solar-panel-equipment'].effects, {type='unlock-recipe', recipe='solar-panel-mk5-equipment'})
table.insert(data.raw.technology['solar-panel-equipment'].effects, {type='unlock-recipe', recipe='solar-panel-mk6-equipment'})
table.insert(data.raw.technology['solar-panel-equipment'].effects, {type='unlock-recipe', recipe='solar-panel-mk7-equipment'})
table.insert(data.raw.technology['solar-panel-equipment'].effects, {type='unlock-recipe', recipe='solar-panel-mk8-equipment'})
table.insert(data.raw.technology['compound-energy-5'].effects, {type='unlock-recipe', recipe='solar-panel-mk6-equipment'})
table.insert(data.raw.technology['compound-energy-5'].effects, {type='unlock-recipe', recipe='battery-mk6-equipment'})
table.insert(data.raw.technology['compound-energy-5'].effects, {type='unlock-recipe', recipe='fusion-reactor-mk6-equipment'})
table.insert(data.raw.technology['compound-energy-5'].effects, {type='unlock-recipe', recipe='personal-laser-defense-mk6-equipment'})
table.insert(data.raw.technology['compound-energy-5'].effects, {type='unlock-recipe', recipe='energy-shield-mk6-equipment'})
table.insert(data.raw.technology['compound-energy-5'].effects, {type='unlock-recipe', recipe='personal-roboport-mk6-equipment'})
table.insert(data.raw.technology['fusion-reactor-equipment'].effects, {type='unlock-recipe', recipe='fusion-reactor-mk2-equipment'})
table.insert(data.raw.technology['fusion-reactor-equipment'].effects, {type='unlock-recipe', recipe='fusion-reactor-mk3-equipment'})
table.insert(data.raw.technology['fusion-reactor-equipment'].effects, {type='unlock-recipe', recipe='fusion-reactor-mk4-equipment'})
table.insert(data.raw.technology['fusion-reactor-equipment'].effects, {type='unlock-recipe', recipe='fusion-reactor-mk5-equipment'})
table.insert(data.raw.technology['fusion-reactor-equipment'].effects, {type='unlock-recipe', recipe='fusion-reactor-mk6-equipment'})
table.insert(data.raw.technology['fusion-reactor-equipment'].effects, {type='unlock-recipe', recipe='fusion-reactor-mk7-equipment'})
table.insert(data.raw.technology['fusion-reactor-equipment'].effects, {type='unlock-recipe', recipe='fusion-reactor-mk8-equipment'})
table.insert(data.raw.technology['compound-energy-6'].effects, {type='unlock-recipe', recipe='solar-panel-mk7-equipment'})
table.insert(data.raw.technology['compound-energy-6'].effects, {type='unlock-recipe', recipe='battery-mk7-equipment'})
table.insert(data.raw.technology['compound-energy-6'].effects, {type='unlock-recipe', recipe='fusion-reactor-mk7-equipment'})
table.insert(data.raw.technology['compound-energy-6'].effects, {type='unlock-recipe', recipe='personal-laser-defense-mk7-equipment'})
table.insert(data.raw.technology['compound-energy-6'].effects, {type='unlock-recipe', recipe='energy-shield-mk7-equipment'})
table.insert(data.raw.technology['compound-energy-6'].effects, {type='unlock-recipe', recipe='personal-roboport-mk7-equipment'})
table.insert(data.raw.technology['battery-mk2-equipment'].effects, {type='unlock-recipe', recipe='battery-mk3-equipment'})
table.insert(data.raw.technology['battery-mk2-equipment'].effects, {type='unlock-recipe', recipe='battery-mk4-equipment'})
table.insert(data.raw.technology['battery-mk2-equipment'].effects, {type='unlock-recipe', recipe='battery-mk5-equipment'})
table.insert(data.raw.technology['battery-mk2-equipment'].effects, {type='unlock-recipe', recipe='battery-mk6-equipment'})
table.insert(data.raw.technology['battery-mk2-equipment'].effects, {type='unlock-recipe', recipe='battery-mk7-equipment'})
table.insert(data.raw.technology['battery-mk2-equipment'].effects, {type='unlock-recipe', recipe='battery-mk8-equipment'})
table.insert(data.raw.technology['compound-energy-7'].effects, {type='unlock-recipe', recipe='solar-panel-mk8-equipment'})
table.insert(data.raw.technology['compound-energy-7'].effects, {type='unlock-recipe', recipe='battery-mk8-equipment'})
table.insert(data.raw.technology['compound-energy-7'].effects, {type='unlock-recipe', recipe='fusion-reactor-mk8-equipment'})
table.insert(data.raw.technology['compound-energy-7'].effects, {type='unlock-recipe', recipe='personal-laser-defense-mk8-equipment'})
table.insert(data.raw.technology['compound-energy-7'].effects, {type='unlock-recipe', recipe='energy-shield-mk8-equipment'})
table.insert(data.raw.technology['compound-energy-7'].effects, {type='unlock-recipe', recipe='personal-roboport-mk8-equipment'})
table.insert(data.raw.technology['personal-laser-defense-equipment'].effects, {type='unlock-recipe', recipe='personal-laser-defense-mk2-equipment'})
table.insert(data.raw.technology['personal-laser-defense-equipment'].effects, {type='unlock-recipe', recipe='personal-laser-defense-mk3-equipment'})
table.insert(data.raw.technology['personal-laser-defense-equipment'].effects, {type='unlock-recipe', recipe='personal-laser-defense-mk4-equipment'})
table.insert(data.raw.technology['personal-laser-defense-equipment'].effects, {type='unlock-recipe', recipe='personal-laser-defense-mk5-equipment'})
table.insert(data.raw.technology['personal-laser-defense-equipment'].effects, {type='unlock-recipe', recipe='personal-laser-defense-mk6-equipment'})
table.insert(data.raw.technology['personal-laser-defense-equipment'].effects, {type='unlock-recipe', recipe='personal-laser-defense-mk7-equipment'})
table.insert(data.raw.technology['personal-laser-defense-equipment'].effects, {type='unlock-recipe', recipe='personal-laser-defense-mk8-equipment'})
table.insert(data.raw.technology['energy-shield-mk2-equipment'].effects, {type='unlock-recipe', recipe='energy-shield-mk3-equipment'})
table.insert(data.raw.technology['energy-shield-mk2-equipment'].effects, {type='unlock-recipe', recipe='energy-shield-mk4-equipment'})
table.insert(data.raw.technology['energy-shield-mk2-equipment'].effects, {type='unlock-recipe', recipe='energy-shield-mk5-equipment'})
table.insert(data.raw.technology['energy-shield-mk2-equipment'].effects, {type='unlock-recipe', recipe='energy-shield-mk6-equipment'})
table.insert(data.raw.technology['energy-shield-mk2-equipment'].effects, {type='unlock-recipe', recipe='energy-shield-mk7-equipment'})
table.insert(data.raw.technology['energy-shield-mk2-equipment'].effects, {type='unlock-recipe', recipe='energy-shield-mk8-equipment'})
table.insert(data.raw.technology['personal-roboport-mk2-equipment'].effects, {type='unlock-recipe', recipe='personal-roboport-mk3-equipment'})
table.insert(data.raw.technology['personal-roboport-mk2-equipment'].effects, {type='unlock-recipe', recipe='personal-roboport-mk4-equipment'})
table.insert(data.raw.technology['personal-roboport-mk2-equipment'].effects, {type='unlock-recipe', recipe='personal-roboport-mk5-equipment'})
table.insert(data.raw.technology['personal-roboport-mk2-equipment'].effects, {type='unlock-recipe', recipe='personal-roboport-mk6-equipment'})
table.insert(data.raw.technology['personal-roboport-mk2-equipment'].effects, {type='unlock-recipe', recipe='personal-roboport-mk7-equipment'})
table.insert(data.raw.technology['personal-roboport-mk2-equipment'].effects, {type='unlock-recipe', recipe='personal-roboport-mk8-equipment'})

View File

@@ -2,93 +2,105 @@ for index, force in pairs(game.forces) do
local technologies = force.technologies
local recipes = force.recipes
if technologies['compound-energy-1'].researched then
recipes['solar-panel-mk2-equipment'].enabled = true
recipes['solar-panel-mk2-equipment'].reload()
if technologies['power-armor-mk2'].researched then
recipes['power-armor-mk3'].enabled = true
recipes['power-armor-mk3'].reload()
elseif technologies['night-vision-equipment'].researched then
recipes['night-vision-mk2-equipment'].enabled = true
recipes['night-vision-mk2-equipment'].reload()
elseif technologies['exoskeleton-equipment'].researched then
recipes['exoskeleton-mk2-equipment'].enabled = true
recipes['exoskeleton-mk2-equipment'].reload()
recipes['fusion-reactor-mk2-equipment'].enabled = true
recipes['fusion-reactor-mk2-equipment'].reload()
recipes['personal-laser-defense-mk2-equipment'].enabled = true
recipes['personal-laser-defense-mk2-equipment'].reload()
elseif technologies['compound-energy-2'].researched then
elseif technologies['solar-panel-equipment'].researched then
recipes['solar-panel-mk2-equipment'].enabled = true
recipes['solar-panel-mk2-equipment'].reload()
recipes['solar-panel-mk3-equipment'].enabled = true
recipes['solar-panel-mk3-equipment'].reload()
recipes['battery-mk3-equipment'].enabled = true
recipes['battery-mk3-equipment'].reload()
recipes['fusion-reactor-mk3-equipment'].enabled = true
recipes['fusion-reactor-mk3-equipment'].reload()
recipes['personal-laser-defense-mk3-equipment'].enabled = true
recipes['personal-laser-defense-mk3-equipment'].reload()
recipes['energy-shield-mk3-equipment'].enabled = true
recipes['energy-shield-mk3-equipment'].reload()
recipes['personal-roboport-mk3-equipment'].enabled = true
recipes['personal-roboport-mk3-equipment'].reload()
elseif technologies['compound-energy-3'].researched then
recipes['solar-panel-mk4-equipment'].enabled = true
recipes['solar-panel-mk4-equipment'].reload()
recipes['battery-mk4-equipment'].enabled = true
recipes['battery-mk4-equipment'].reload()
recipes['fusion-reactor-mk4-equipment'].enabled = true
recipes['fusion-reactor-mk4-equipment'].reload()
recipes['personal-laser-defense-mk4-equipment'].enabled = true
recipes['personal-laser-defense-mk4-equipment'].reload()
recipes['energy-shield-mk4-equipment'].enabled = true
recipes['energy-shield-mk4-equipment'].reload()
recipes['personal-roboport-mk4-equipment'].enabled = true
recipes['personal-roboport-mk4-equipment'].reload()
elseif technologies['compound-energy-4'].researched then
recipes['solar-panel-mk5-equipment'].enabled = true
recipes['solar-panel-mk5-equipment'].reload()
recipes['battery-mk5-equipment'].enabled = true
recipes['battery-mk5-equipment'].reload()
recipes['fusion-reactor-mk5-equipment'].enabled = true
recipes['fusion-reactor-mk5-equipment'].reload()
recipes['personal-laser-defense-mk5-equipment'].enabled = true
recipes['personal-laser-defense-mk5-equipment'].reload()
recipes['energy-shield-mk5-equipment'].enabled = true
recipes['energy-shield-mk5-equipment'].reload()
recipes['personal-roboport-mk5-equipment'].enabled = true
recipes['personal-roboport-mk5-equipment'].reload()
elseif technologies['compound-energy-5'].researched then
recipes['solar-panel-mk6-equipment'].enabled = true
recipes['solar-panel-mk6-equipment'].reload()
recipes['battery-mk6-equipment'].enabled = true
recipes['battery-mk6-equipment'].reload()
recipes['fusion-reactor-mk6-equipment'].enabled = true
recipes['fusion-reactor-mk6-equipment'].reload()
recipes['personal-laser-defense-mk6-equipment'].enabled = true
recipes['personal-laser-defense-mk6-equipment'].reload()
recipes['energy-shield-mk6-equipment'].enabled = true
recipes['energy-shield-mk6-equipment'].reload()
recipes['personal-roboport-mk6-equipment'].enabled = true
recipes['personal-roboport-mk6-equipment'].reload()
elseif technologies['compound-energy-6'].researched then
recipes['solar-panel-mk7-equipment'].enabled = true
recipes['solar-panel-mk7-equipment'].reload()
recipes['battery-mk7-equipment'].enabled = true
recipes['battery-mk7-equipment'].reload()
recipes['fusion-reactor-mk7-equipment'].enabled = true
recipes['fusion-reactor-mk7-equipment'].reload()
recipes['personal-laser-defense-mk7-equipment'].enabled = true
recipes['personal-laser-defense-mk7-equipment'].reload()
recipes['energy-shield-mk7-equipment'].enabled = true
recipes['energy-shield-mk7-equipment'].reload()
recipes['personal-roboport-mk7-equipment'].enabled = true
recipes['personal-roboport-mk7-equipment'].reload()
elseif technologies['compound-energy-7'].researched then
recipes['solar-panel-mk8-equipment'].enabled = true
recipes['solar-panel-mk8-equipment'].reload()
recipes['battery-mk8-equipment'].enabled = true
recipes['battery-mk8-equipment'].reload()
elseif technologies['fusion-reactor-equipment'].researched then
recipes['fusion-reactor-mk2-equipment'].enabled = true
recipes['fusion-reactor-mk2-equipment'].reload()
recipes['fusion-reactor-mk3-equipment'].enabled = true
recipes['fusion-reactor-mk3-equipment'].reload()
recipes['fusion-reactor-mk4-equipment'].enabled = true
recipes['fusion-reactor-mk4-equipment'].reload()
recipes['fusion-reactor-mk5-equipment'].enabled = true
recipes['fusion-reactor-mk5-equipment'].reload()
recipes['fusion-reactor-mk6-equipment'].enabled = true
recipes['fusion-reactor-mk6-equipment'].reload()
recipes['fusion-reactor-mk7-equipment'].enabled = true
recipes['fusion-reactor-mk7-equipment'].reload()
recipes['fusion-reactor-mk8-equipment'].enabled = true
recipes['fusion-reactor-mk8-equipment'].reload()
elseif technologies['battery-mk2-equipment'].researched then
recipes['battery-mk3-equipment'].enabled = true
recipes['battery-mk3-equipment'].reload()
recipes['battery-mk4-equipment'].enabled = true
recipes['battery-mk4-equipment'].reload()
recipes['battery-mk5-equipment'].enabled = true
recipes['battery-mk5-equipment'].reload()
recipes['battery-mk6-equipment'].enabled = true
recipes['battery-mk6-equipment'].reload()
recipes['battery-mk7-equipment'].enabled = true
recipes['battery-mk7-equipment'].reload()
recipes['battery-mk8-equipment'].enabled = true
recipes['battery-mk8-equipment'].reload()
elseif technologies['personal-laser-defense-equipment'].researched then
recipes['personal-laser-defense-mk2-equipment'].enabled = true
recipes['personal-laser-defense-mk2-equipment'].reload()
recipes['personal-laser-defense-mk3-equipment'].enabled = true
recipes['personal-laser-defense-mk3-equipment'].reload()
recipes['personal-laser-defense-mk4-equipment'].enabled = true
recipes['personal-laser-defense-mk4-equipment'].reload()
recipes['personal-laser-defense-mk5-equipment'].enabled = true
recipes['personal-laser-defense-mk5-equipment'].reload()
recipes['personal-laser-defense-mk6-equipment'].enabled = true
recipes['personal-laser-defense-mk6-equipment'].reload()
recipes['personal-laser-defense-mk7-equipment'].enabled = true
recipes['personal-laser-defense-mk7-equipment'].reload()
recipes['personal-laser-defense-mk8-equipment'].enabled = true
recipes['personal-laser-defense-mk8-equipment'].reload()
elseif technologies['energy-shield-mk2-equipment'].researched then
recipes['energy-shield-mk3-equipment'].enabled = true
recipes['energy-shield-mk3-equipment'].reload()
recipes['energy-shield-mk4-equipment'].enabled = true
recipes['energy-shield-mk4-equipment'].reload()
recipes['energy-shield-mk5-equipment'].enabled = true
recipes['energy-shield-mk5-equipment'].reload()
recipes['energy-shield-mk6-equipment'].enabled = true
recipes['energy-shield-mk6-equipment'].reload()
recipes['energy-shield-mk7-equipment'].enabled = true
recipes['energy-shield-mk7-equipment'].reload()
recipes['energy-shield-mk8-equipment'].enabled = true
recipes['energy-shield-mk8-equipment'].reload()
elseif technologies['personal-roboport-mk2-equipment'].researched then
recipes['personal-roboport-mk3-equipment'].enabled = true
recipes['personal-roboport-mk3-equipment'].reload()
recipes['personal-roboport-mk4-equipment'].enabled = true
recipes['personal-roboport-mk4-equipment'].reload()
recipes['personal-roboport-mk5-equipment'].enabled = true
recipes['personal-roboport-mk5-equipment'].reload()
recipes['personal-roboport-mk6-equipment'].enabled = true
recipes['personal-roboport-mk6-equipment'].reload()
recipes['personal-roboport-mk7-equipment'].enabled = true
recipes['personal-roboport-mk7-equipment'].reload()
recipes['personal-roboport-mk8-equipment'].enabled = true
recipes['personal-roboport-mk8-equipment'].reload()
end