mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-03-28 12:24:39 +09:00
.
This commit is contained in:
@@ -370,30 +370,6 @@ local items = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if mods and mods['space-age'] then
|
if mods and mods['space-age'] then
|
||||||
items['equipment']['fusion-reactor-equipment'] = {
|
|
||||||
enabled = settings.startup['PHI-MB-EQUIPMENT'].value,
|
|
||||||
stage = 1,
|
|
||||||
mod = 'space-age',
|
|
||||||
type = 'generator-equipment',
|
|
||||||
name = 'fusion-reactor',
|
|
||||||
ref_name = 'fusion-reactor-equipment',
|
|
||||||
tech = 'fusion-reactor-equipment',
|
|
||||||
min = 2,
|
|
||||||
max = settings.startup['PHI-MB-EQUIPMENT-TIER'].value
|
|
||||||
}
|
|
||||||
|
|
||||||
items['equipment']['toolbelt-equipment'] = {
|
|
||||||
enabled = settings.startup['PHI-MB-EQUIPMENT'].value,
|
|
||||||
stage = 1,
|
|
||||||
mod = 'space-age',
|
|
||||||
type = 'inventory-bonus-equipment',
|
|
||||||
name = 'toolbelt',
|
|
||||||
ref_name = 'toolbelt-equipment',
|
|
||||||
tech = 'toolbelt-equipment',
|
|
||||||
min = 2,
|
|
||||||
max = math.min(tonumber(settings.startup['PHI-MB-EQUIPMENT-TIER'].value) or 1, 2)
|
|
||||||
}
|
|
||||||
|
|
||||||
items['equipment']['battery-equipment'].ref_name = 'battery-mk3-equipment'
|
items['equipment']['battery-equipment'].ref_name = 'battery-mk3-equipment'
|
||||||
items['equipment']['battery-equipment'].tech = 'battery-mk3-equipment'
|
items['equipment']['battery-equipment'].tech = 'battery-mk3-equipment'
|
||||||
items['equipment']['battery-equipment'].min = 4
|
items['equipment']['battery-equipment'].min = 4
|
||||||
|
|||||||
@@ -69,5 +69,21 @@ return {
|
|||||||
max = settings.startup['PHI-MB-EQUIPMENT-TIER'].value,
|
max = settings.startup['PHI-MB-EQUIPMENT-TIER'].value,
|
||||||
base = 30,
|
base = 30,
|
||||||
graphics_name = 'solar-panel-equipment'
|
graphics_name = 'solar-panel-equipment'
|
||||||
|
},
|
||||||
|
-- MBQ A 7 SPACE_AGE ARMOR_EQUIPMENT,RECIPE,RESEARCH_EFFECT
|
||||||
|
['fusion-reactor-equipment'] = {
|
||||||
|
mod = 'space-age',
|
||||||
|
type = 'generator-equipment',
|
||||||
|
name = 'fusion-reactor',
|
||||||
|
tech = 'fusion-reactor-equipment',
|
||||||
|
max = settings.startup['PHI-MB-EQUIPMENT-TIER'].value
|
||||||
|
},
|
||||||
|
-- MBQ A 1 SPACE_AGE ARMOR_EQUIPMENT,RECIPE,RESEARCH_EFFECT
|
||||||
|
['toolbelt-equipment'] = {
|
||||||
|
mod = 'space-age',
|
||||||
|
type = 'inventory-bonus-equipment',
|
||||||
|
name = 'toolbelt',
|
||||||
|
tech = 'toolbelt-equipment',
|
||||||
|
max = math.min(tonumber(settings.startup['PHI-MB-EQUIPMENT-TIER'].value) or 1, 2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ if settings.startup['PHI-MB-EQUIPMENT-ARMOR'].value then
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- MBQ A 48 BASE ARMOR_EQUIPMENT,RECIPE,RESEARCH_EFFECT
|
-- MBQ A 48 BASE ARMOR_EQUIPMENT,RECIPE,RESEARCH_EFFECT
|
||||||
|
-- MBQ A 8 SPACE_AGE ARMOR_EQUIPMENT,RECIPE,RESEARCH_EFFECT
|
||||||
for _, v in pairs(items) do
|
for _, v in pairs(items) do
|
||||||
v.mod = v.mod or 'base'
|
v.mod = v.mod or 'base'
|
||||||
v.min = v.min or 2
|
v.min = v.min or 2
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
return {
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
local main = require 'main'
|
||||||
|
local items = require 'mbq-c'
|
||||||
|
|
||||||
|
-- MBQ A 48 BASE ARMOR_EQUIPMENT,RECIPE,RESEARCH_EFFECT
|
||||||
|
for _, v in pairs(items) do
|
||||||
|
v.mod = v.mod or 'base'
|
||||||
|
v.min = v.min or 2
|
||||||
|
|
||||||
|
if v.enabled and (v.mod and mods[v.mod]) and (v.max >= v.min) then
|
||||||
|
v.category = 'equipment'
|
||||||
|
v.ref_name = v.ref_name or v.name .. '-equipment'
|
||||||
|
|
||||||
|
for j=v.min, v.max, 1 do
|
||||||
|
main.EEQ(v, j)
|
||||||
|
main.EI(v, j)
|
||||||
|
main.ER(v, j)
|
||||||
|
main.ET(v, j)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user