This commit is contained in:
2026-06-19 23:26:21 +09:00
parent 7337e15e7d
commit 139415f1c5
+1 -3
View File
@@ -182,7 +182,7 @@ function main_item(source, tier)
end end
function main_recipe(source, tier) function main_recipe(source, tier)
local result_name = source.name .. ((source.category == 'equipment' and ('-mk' .. tier .. '-equipment')) or ('-' .. tier)) local result_name = source.name .. '-mk' .. tier .. '-equipment'
data:extend({{ data:extend({{
type = 'recipe', type = 'recipe',
@@ -218,8 +218,6 @@ for _, v in pairs(items) do
v.ref_name = v.ref_name or v.name .. '-equipment' v.ref_name = v.ref_name or v.name .. '-equipment'
if (v.mod and mods[v.mod]) and (v.max >= v.min) and data.raw[v.type] and data.raw[v.type][v.ref_name] and not data.raw[v.type][v.ref_name].hidden then if (v.mod and mods[v.mod]) and (v.max >= v.min) and data.raw[v.type] and data.raw[v.type][v.ref_name] and not data.raw[v.type][v.ref_name].hidden then
v.category = 'equipment'
for j=v.min, v.max, 1 do for j=v.min, v.max, 1 do
main_equipment(v, j) main_equipment(v, j)
main_item(v, j) main_item(v, j)