mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-30 20:01:40 +09:00
Update
This commit is contained in:
@@ -5,6 +5,29 @@ local base_solar_energy = 60
|
|||||||
local graphics_location = '__PHI-EN__/graphics/'
|
local graphics_location = '__PHI-EN__/graphics/'
|
||||||
local items = {'accumulator', 'solar-panel'}
|
local items = {'accumulator', 'solar-panel'}
|
||||||
|
|
||||||
|
local items = {
|
||||||
|
['solar-panel'] = {
|
||||||
|
enabled = true,
|
||||||
|
type = 'solar-panel',
|
||||||
|
name = 'solar-panel',
|
||||||
|
tech = 'solar-panel-equipment',
|
||||||
|
min = 2,
|
||||||
|
max = 8,
|
||||||
|
base = 30,
|
||||||
|
graphics_source = nil
|
||||||
|
},
|
||||||
|
['accumulator'] = {
|
||||||
|
enabled = true,
|
||||||
|
type = 'solar-panel',
|
||||||
|
name = 'solar-panel',
|
||||||
|
tech = 'solar-panel-equipment',
|
||||||
|
min = 2,
|
||||||
|
max = 8,
|
||||||
|
base = 30,
|
||||||
|
graphics_source = nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
-- entity
|
-- entity
|
||||||
local function EE(source, tier)
|
local function EE(source, tier)
|
||||||
local item = table.deepcopy(data.raw[source][source])
|
local item = table.deepcopy(data.raw[source][source])
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 1.1.7
|
||||||
|
Date: 2023-04-18
|
||||||
|
|
||||||
|
Changed:
|
||||||
|
- Space Exploration will be using RTG Geneartor instead
|
||||||
|
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
Date: 2022-12-01
|
Date: 2022-12-01
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ local items = {
|
|||||||
if mods['space-exploration'] then
|
if mods['space-exploration'] then
|
||||||
items['solar-panel'].base = 40
|
items['solar-panel'].base = 40
|
||||||
|
|
||||||
|
items['fusion-reactor'].name = 'se-rtg-equipment'
|
||||||
items['fusion-reactor'].tech = 'se-rtg-equipment'
|
items['fusion-reactor'].tech = 'se-rtg-equipment'
|
||||||
items['fusion-reactor'].base = 800
|
items['fusion-reactor'].base = 800
|
||||||
|
|
||||||
@@ -166,7 +167,7 @@ local function EE(source, tier)
|
|||||||
elseif (source.type == 'battery') then
|
elseif (source.type == 'battery') then
|
||||||
h = 2
|
h = 2
|
||||||
item['type'] = 'battery-equipment'
|
item['type'] = 'battery-equipment'
|
||||||
item['energy_source'] = {type = 'electric', usage_priority = 'tertiary', buffer_capacity= (base * (2 ^ (tier - 2))) .. 'MJ'}
|
item['energy_source'] = {type = 'electric', usage_priority = 'tertiary', buffer_capacity= (source.base * (2 ^ (tier - 2))) .. 'MJ'}
|
||||||
elseif (source.type == 'fusion-reactor') then
|
elseif (source.type == 'fusion-reactor') then
|
||||||
w = 4
|
w = 4
|
||||||
h = 4
|
h = 4
|
||||||
@@ -230,7 +231,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.type .. '-equipment-e.png', width = w * 32, height = h * 32, priority = 'medium', hr_version = {filename = graphics_location .. source.type .. '-equipment-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 +247,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.type .. '-equipment-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 .. ']'
|
||||||
|
|||||||
Reference in New Issue
Block a user