This commit is contained in:
2023-05-09 02:06:28 +09:00
parent 727889a534
commit 79ad7c9f57
3 changed files with 10 additions and 21 deletions

View File

@@ -3,6 +3,7 @@ local items = {
enabled = true,
type = 'solar-panel',
name = 'solar-panel',
ref_name = 'solar-panel',
min = 2,
max = 8,
base = 60
@@ -11,6 +12,7 @@ local items = {
enabled = true,
type = 'accumulator',
name = 'accumulator',
ref_name = 'accumulator',
min = 2,
max = 8,
base = 5
@@ -19,6 +21,7 @@ local items = {
enabled = true,
type = 'boiler',
name = 'boiler',
ref_name = 'boiler',
min = 2,
max = 5
},
@@ -26,6 +29,7 @@ local items = {
enabled = true,
type = 'generator',
name = 'steam-engine',
ref_name = 'steam-engine',
min = 2,
max = 5
}

View File

@@ -54,7 +54,7 @@ end
-- item
local function EI(source, tier)
local item = table.deepcopy(data.raw.item[source.type])
local item = table.deepcopy(data.raw.item[source.ref_name])
item.name = source.name .. '-' .. tier
item.place_result = source.name .. '-' .. tier
item.max_health = 200 * (2 ^ (tier - 1))
@@ -114,7 +114,7 @@ local function ET(source, tier)
if tier <= source.max then
table.insert(item.effects, {
type = 'unlock-recipe',
recipe = source.name .. tier
recipe = source.name .. '-' .. tier
})
end

View File

@@ -11,7 +11,6 @@ local items = {
min = 2,
max = 8,
base = 30,
graphics_source = nil,
graphics_name = 'solar-panel-equipment'
},
['fusion-reactor'] = {
@@ -23,7 +22,6 @@ local items = {
min = 2,
max = 8,
base = 750,
graphics_source = nil,
graphics_name = 'fusion-reactor-equipment'
},
['battery'] = {
@@ -35,8 +33,7 @@ local items = {
min = 3,
max = 8,
base = 100,
graphics_source = nil,
graphics_name = 'battery-equipment'
graphics_name = 'battery-mk2-equipment'
},
['personal-laser-defense'] = {
enabled = true,
@@ -47,7 +44,6 @@ local items = {
min = 2,
max = 8,
base = 3,
graphics_source = nil,
graphics_name = 'personal-laser-defense-equipment'
},
['energy-shield'] = {
@@ -59,8 +55,7 @@ local items = {
min = 3,
max = 8,
base = 150,
graphics_source = nil,
graphics_name = 'energy-shield-equipment'
graphics_name = 'energy-shield-mk2-equipment'
},
['personal-roboport'] = {
enabled = true,
@@ -71,8 +66,7 @@ local items = {
min = 3,
max = 8,
base = 0.5,
graphics_source = nil,
graphics_name = 'personal-roboport-equipment'
graphics_name = 'personal-roboport-mk2-equipment'
},
['night-vision'] = {
enabled = true,
@@ -83,7 +77,6 @@ local items = {
min = 2,
max = 2,
base = 1,
graphics_source = nil,
graphics_name = 'night-vision-equipment'
},
['exoskeleton'] = {
@@ -95,7 +88,6 @@ local items = {
min = 2,
max = 2,
base = 0.6,
graphics_source = nil,
graphics_name = 'exoskeleton-equipment'
}
}
@@ -197,15 +189,8 @@ local function EE(source, tier)
end
item['shape'] = {width = w, height = h, type = 'full'}
item['sprite'] = {filename = '__base__/graphics/equipment/' .. source.graphics_name .. '.png', width = w * 32, height = h * 32, priority = 'medium', hr_version = {filename = '__base__/graphics/equipment/hr-' .. source.graphics_name .. '.png', width = w * 64, height = h *64, priority = 'medium', scale = 0.5}}
--[[
if source.graphics_source == nil then
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
item['sprite'] = {filename = source.graphics_source, width = w * 32, height = h * 32, priority = 'medium'}
end
]]
data:extend({item})
end