mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
Update
This commit is contained in:
@@ -10,7 +10,8 @@ local items = {
|
|||||||
min = 2,
|
min = 2,
|
||||||
max = 8,
|
max = 8,
|
||||||
base = 30,
|
base = 30,
|
||||||
graphics_source = nil
|
graphics_source = nil,
|
||||||
|
graphics_name = 'solar-panel-equipment'
|
||||||
},
|
},
|
||||||
['fusion-reactor'] = {
|
['fusion-reactor'] = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
@@ -20,7 +21,8 @@ local items = {
|
|||||||
min = 2,
|
min = 2,
|
||||||
max = 8,
|
max = 8,
|
||||||
base = 750,
|
base = 750,
|
||||||
graphics_source = nil
|
graphics_source = nil,
|
||||||
|
graphics_name = 'fusion-reactor-equipment'
|
||||||
},
|
},
|
||||||
['battery'] = {
|
['battery'] = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
@@ -30,7 +32,8 @@ local items = {
|
|||||||
min = 3,
|
min = 3,
|
||||||
max = 8,
|
max = 8,
|
||||||
base = 100,
|
base = 100,
|
||||||
graphics_source = nil
|
graphics_source = nil,
|
||||||
|
graphics_name = 'battery-equipment'
|
||||||
},
|
},
|
||||||
['personal-laser-defense'] = {
|
['personal-laser-defense'] = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
@@ -40,7 +43,8 @@ local items = {
|
|||||||
min = 2,
|
min = 2,
|
||||||
max = 8,
|
max = 8,
|
||||||
base = 3,
|
base = 3,
|
||||||
graphics_source = nil
|
graphics_source = nil,
|
||||||
|
graphics_name = 'personal-laser-defense-equipment'
|
||||||
},
|
},
|
||||||
['energy-shield'] = {
|
['energy-shield'] = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
@@ -50,7 +54,8 @@ local items = {
|
|||||||
min = 3,
|
min = 3,
|
||||||
max = 8,
|
max = 8,
|
||||||
base = 150,
|
base = 150,
|
||||||
graphics_source = nil
|
graphics_source = nil,
|
||||||
|
graphics_name = 'energy-shield-equipment'
|
||||||
},
|
},
|
||||||
['personal-roboport'] = {
|
['personal-roboport'] = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
@@ -60,7 +65,8 @@ local items = {
|
|||||||
min = 3,
|
min = 3,
|
||||||
max = 8,
|
max = 8,
|
||||||
base = 0.5,
|
base = 0.5,
|
||||||
graphics_source = nil
|
graphics_source = nil,
|
||||||
|
graphics_name = 'personal-roboport-equipment'
|
||||||
},
|
},
|
||||||
['night-vision'] = {
|
['night-vision'] = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
@@ -70,7 +76,8 @@ local items = {
|
|||||||
min = 2,
|
min = 2,
|
||||||
max = 2,
|
max = 2,
|
||||||
base = 1,
|
base = 1,
|
||||||
graphics_source = nil
|
graphics_source = nil,
|
||||||
|
graphics_name = 'night-vision-equipment'
|
||||||
},
|
},
|
||||||
['exoskeleton'] = {
|
['exoskeleton'] = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
@@ -80,7 +87,8 @@ local items = {
|
|||||||
min = 2,
|
min = 2,
|
||||||
max = 2,
|
max = 2,
|
||||||
base = 0.6,
|
base = 0.6,
|
||||||
graphics_source = nil
|
graphics_source = nil,
|
||||||
|
graphics_name = 'exoskeleton-equipment'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,15 +98,17 @@ if mods['space-exploration'] then
|
|||||||
items['fusion-reactor'].tech = 'se-rtg-equipment'
|
items['fusion-reactor'].tech = 'se-rtg-equipment'
|
||||||
items['fusion-reactor'].base = 800
|
items['fusion-reactor'].base = 800
|
||||||
|
|
||||||
items['night-vision'].enabled = false
|
|
||||||
items['exoskeleton'].enabled = false
|
|
||||||
|
|
||||||
items['battery'].tech = 'battery-equipment'
|
items['battery'].tech = 'battery-equipment'
|
||||||
items['battery'].base = 25
|
items['battery'].min = 2
|
||||||
|
items['battery'].base = 100
|
||||||
|
|
||||||
items['energy-shield'].tech = 'energy-shield-equipment'
|
items['energy-shield'].tech = 'energy-shield-equipment'
|
||||||
|
items['energy-shield'].min = 2
|
||||||
|
items['energy-shield'].base = 250
|
||||||
|
|
||||||
items['personal-roboport'].tech = 'personal-roboport-equipment'
|
items['personal-roboport'].tech = 'personal-roboport-equipment'
|
||||||
|
items['personal-roboport'].min = 2
|
||||||
|
items['personal-roboport'].base = 0.25
|
||||||
else
|
else
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
@@ -230,7 +240,7 @@ local function EE(source, tier)
|
|||||||
item['shape'] = {width = w, height = h, type = 'full'}
|
item['shape'] = {width = w, height = h, type = 'full'}
|
||||||
|
|
||||||
if source.graphics_source == nil then
|
if source.graphics_source == nil then
|
||||||
item['sprite'] = {filename = graphics_location .. source.name .. '-equipment-e.png', width = w * 32, height = h * 32, priority = 'medium', hr_version = {filename = graphics_location .. source.name .. '-equipment-eh.png', width = w * 64, height = h *64, priority = 'medium', scale = 0.5}}
|
item['sprite'] = {filename = graphics_location .. source.graphics_name .. '-e.png', width = w * 32, height = h * 32, priority = 'medium', hr_version = {filename = graphics_location .. source.graphics_name .. '-eh.png', width = w * 64, height = h *64, priority = 'medium', scale = 0.5}}
|
||||||
else
|
else
|
||||||
item['sprite'] = {filename = source.graphics_source, width = w * 32, height = h * 32, priority = 'medium'}
|
item['sprite'] = {filename = source.graphics_source, width = w * 32, height = h * 32, priority = 'medium'}
|
||||||
end
|
end
|
||||||
@@ -246,7 +256,7 @@ local function EI(source, tier)
|
|||||||
item.subgroup = 'equipment'
|
item.subgroup = 'equipment'
|
||||||
item.stack_size = 20
|
item.stack_size = 20
|
||||||
item.default_request_amount = 5
|
item.default_request_amount = 5
|
||||||
item.icons = {{icon = graphics_location .. source.name .. '-equipment-i.png', icon_mipmaps = 4, icon_size = 64}}
|
item.icons = {{icon = graphics_location .. source.graphics_name .. '-i.png', icon_mipmaps = 4, icon_size = 64}}
|
||||||
|
|
||||||
if (source.type == 'solar-panel') then
|
if (source.type == 'solar-panel') then
|
||||||
item.order = 'a[energy-source]-a' .. alpha_order[tier - 1] .. '[' .. source.name .. '-mk' .. tier .. ']'
|
item.order = 'a[energy-source]-a' .. alpha_order[tier - 1] .. '[' .. source.name .. '-mk' .. tier .. ']'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "PHI-EQ",
|
"name": "PHI-EQ",
|
||||||
"version": "1.1.7",
|
"version": "1.1.8",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"date": "2023-04-18",
|
"date": "2023-04-18",
|
||||||
"title": "Phidias Equipment",
|
"title": "Phidias Equipment",
|
||||||
|
|||||||
Reference in New Issue
Block a user