This commit is contained in:
2023-04-18 14:30:02 +09:00
parent a548906cc4
commit ce9cfcdf85
3 changed files with 34 additions and 3 deletions

View File

@@ -5,6 +5,29 @@ local base_solar_energy = 60
local graphics_location = '__PHI-EN__/graphics/'
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
local function EE(source, tier)
local item = table.deepcopy(data.raw[source][source])

View File

@@ -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
Date: 2022-12-01

View File

@@ -87,6 +87,7 @@ local items = {
if mods['space-exploration'] then
items['solar-panel'].base = 40
items['fusion-reactor'].name = 'se-rtg-equipment'
items['fusion-reactor'].tech = 'se-rtg-equipment'
items['fusion-reactor'].base = 800
@@ -166,7 +167,7 @@ local function EE(source, tier)
elseif (source.type == 'battery') then
h = 2
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
w = 4
h = 4
@@ -230,7 +231,7 @@ local function EE(source, tier)
item['shape'] = {width = w, height = h, type = 'full'}
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
item['sprite'] = {filename = source.graphics_source, width = w * 32, height = h * 32, priority = 'medium'}
end
@@ -246,7 +247,7 @@ local function EI(source, tier)
item.subgroup = 'equipment'
item.stack_size = 20
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
item.order = 'a[energy-source]-a' .. alpha_order[tier - 1] .. '[' .. source.name .. '-mk' .. tier .. ']'