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