mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-03-28 12:24:39 +09:00
.
This commit is contained in:
@@ -15,51 +15,51 @@ return {
|
||||
['boiler'] = {
|
||||
type = 'boiler',
|
||||
name = 'boiler',
|
||||
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
|
||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
|
||||
},
|
||||
-- MBE A 4 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||
['steam-engine'] = {
|
||||
type = 'generator',
|
||||
name = 'steam-engine',
|
||||
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
|
||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
|
||||
},
|
||||
-- MBE A 4 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||
['nuclear-reactor'] = {
|
||||
type = 'reactor',
|
||||
name = 'nuclear-reactor',
|
||||
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
|
||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
|
||||
},
|
||||
-- MBE A 4 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||
['heat-pipe'] = {
|
||||
type = 'heat-pipe',
|
||||
name = 'heat-pipe',
|
||||
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
|
||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
|
||||
},
|
||||
-- MBE A 4 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||
['heat-exchanger'] = {
|
||||
type = 'boiler',
|
||||
name = 'heat-exchanger',
|
||||
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
|
||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
|
||||
},
|
||||
-- MBE A 4 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||
['steam-turbine'] = {
|
||||
type = 'generator',
|
||||
name = 'steam-turbine',
|
||||
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
|
||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
|
||||
},
|
||||
-- MBE A 4 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||
['fusion-reactor'] = {
|
||||
mod = 'space-age',
|
||||
type = 'fusion-reactor',
|
||||
name = 'fusion-reactor',
|
||||
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
|
||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
|
||||
},
|
||||
-- MBE A 4 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||
['fusion-generator'] = {
|
||||
mod = 'space-age',
|
||||
type = 'fusion-generator',
|
||||
name = 'fusion-generator',
|
||||
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
|
||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
|
||||
},
|
||||
-- MBE A 4 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||
['heating-tower'] = {
|
||||
@@ -67,6 +67,6 @@ return {
|
||||
type = 'reactor',
|
||||
name = 'heating-tower',
|
||||
tech = 'heating-tower',
|
||||
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
|
||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
|
||||
},
|
||||
}
|
||||
|
||||
74
PHI-CL/data/b/mbq-c.lua
Normal file
74
PHI-CL/data/b/mbq-c.lua
Normal file
@@ -0,0 +1,74 @@
|
||||
return {
|
||||
-- MBM A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||
['battery-equipment'] = {
|
||||
type = 'battery-equipment',
|
||||
name = 'battery',
|
||||
ref_name = 'battery-mk2-equipment',
|
||||
tech = 'battery-mk2-equipment',
|
||||
min = 3,
|
||||
max = settings.startup['PHI-MB-EQUIPMENT-TIER'].value
|
||||
},
|
||||
['discharge-defense-equipment'] = {
|
||||
type = 'active-defense-equipment',
|
||||
name = 'discharge-defense',
|
||||
ref_name = 'discharge-defense-equipment',
|
||||
tech = 'discharge-defense-equipment',
|
||||
max = settings.startup['PHI-MB-EQUIPMENT-TIER'].value
|
||||
},
|
||||
['energy-shield-equipment'] = {
|
||||
type = 'energy-shield-equipment',
|
||||
name = 'energy-shield',
|
||||
ref_name = 'energy-shield-mk2-equipment',
|
||||
tech = 'energy-shield-mk2-equipment',
|
||||
min = 3,
|
||||
max = settings.startup['PHI-MB-EQUIPMENT-TIER'].value
|
||||
},
|
||||
['exoskeleton-equipment'] = {
|
||||
type = 'movement-bonus-equipment',
|
||||
name = 'exoskeleton',
|
||||
ref_name = 'exoskeleton-equipment',
|
||||
tech = 'exoskeleton-equipment',
|
||||
max = math.min(tonumber(settings.startup['PHI-MB-EQUIPMENT-TIER'].value) or 1, 2)
|
||||
},
|
||||
['fission-reactor-equipment'] = {
|
||||
type = 'generator-equipment',
|
||||
name = 'fission-reactor',
|
||||
ref_name = 'fission-reactor-equipment',
|
||||
tech = 'fission-reactor-equipment',
|
||||
max = settings.startup['PHI-MB-EQUIPMENT-TIER'].value
|
||||
},
|
||||
['night-vision-equipment'] = {
|
||||
type = 'night-vision-equipment',
|
||||
name = 'night-vision',
|
||||
ref_name = 'night-vision-equipment',
|
||||
tech = 'night-vision-equipment',
|
||||
max = math.min(tonumber(settings.startup['PHI-MB-EQUIPMENT-TIER'].value) or 1, 2)
|
||||
},
|
||||
['personal-laser-defense-equipment'] = {
|
||||
mod = 'base',
|
||||
type = 'active-defense-equipment',
|
||||
name = 'personal-laser-defense',
|
||||
ref_name = 'personal-laser-defense-equipment',
|
||||
tech = 'personal-laser-defense-equipment',
|
||||
max = settings.startup['PHI-MB-EQUIPMENT-TIER'].value
|
||||
},
|
||||
['personal-roboport-equipment'] = {
|
||||
mod = 'base',
|
||||
type = 'roboport-equipment',
|
||||
name = 'personal-roboport',
|
||||
ref_name = 'personal-roboport-mk2-equipment',
|
||||
tech = 'personal-roboport-mk2-equipment',
|
||||
min = 3,
|
||||
max = settings.startup['PHI-MB-EQUIPMENT-TIER'].value
|
||||
},
|
||||
['solar-panel-equipment'] = {
|
||||
mod = 'base',
|
||||
type = 'solar-panel-equipment',
|
||||
name = 'solar-panel',
|
||||
ref_name = 'solar-panel-equipment',
|
||||
tech = 'solar-panel-equipment',
|
||||
max = settings.startup['PHI-MB-EQUIPMENT-TIER'].value,
|
||||
base = 30,
|
||||
graphics_name = 'solar-panel-equipment'
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
local items = require 'config'
|
||||
local param = require 'config'
|
||||
local main = require 'main'
|
||||
local items = require 'mbq-c'
|
||||
|
||||
if settings.startup['PHI-MB-EQUIPMENT-ARMOR'].value then
|
||||
-- MBQ A 1 ARMOR_GRID
|
||||
@@ -11,7 +13,7 @@ if settings.startup['PHI-MB-EQUIPMENT-ARMOR'].value then
|
||||
-- MBQ A 1 ARMOR
|
||||
local armor = table.deepcopy(data.raw['armor']['power-armor-mk2'])
|
||||
armor.name = 'power-armor-mk3'
|
||||
armor.icons = {{icon = armor.icon, tint = items['tint'][2], icon_size = armor.icon_size}}
|
||||
armor.icons = {{icon = armor.icon, tint = param['tint'][2], icon_size = armor.icon_size}}
|
||||
armor.icon = nil
|
||||
armor.icon_size = nil
|
||||
|
||||
@@ -52,7 +54,7 @@ if settings.startup['PHI-MB-EQUIPMENT-ARMOR'].value then
|
||||
-- MBQ A 1 ARMOR
|
||||
armor = table.deepcopy(data.raw['armor']['mech-armor'])
|
||||
armor.name = 'mech-armor-mk2'
|
||||
armor.icons = {{icon = armor.icon, tint = items['tint'][2], icon_size = armor.icon_size}}
|
||||
armor.icons = {{icon = armor.icon, tint = param['tint'][2], icon_size = armor.icon_size}}
|
||||
armor.icon = nil
|
||||
armor.icon_size = nil
|
||||
|
||||
@@ -96,3 +98,19 @@ if settings.startup['PHI-MB-EQUIPMENT-ARMOR'].value then
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
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'
|
||||
|
||||
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
|
||||
|
||||
0
PHI-CL/data/u/mbq-c.lua
Normal file
0
PHI-CL/data/u/mbq-c.lua
Normal file
Reference in New Issue
Block a user