Module:Recipe/SN: Difference between revisions
SlyAceZeta (talk | contribs) (updating to use Spawn IDs as identifiers to link items together, and standardizing the property names) |
SlyAceZeta (talk | contribs) (Adding images; adding all missing dependencies for current items) |
||
Line 1: | Line 1: | ||
return { |
return { |
||
["titanium"] = { |
|||
name = "Titanium", |
|||
image = "Titanium Icon.png" |
|||
}, |
|||
["glass"] = { |
|||
name = "Glass", |
|||
machine = "fabricator", |
|||
image = "Glass Icon.png", |
|||
recipe = { |
|||
["quartz"] = 2 |
|||
} |
|||
}, |
|||
["quartz"] = { |
|||
name = "Quartz", |
|||
image = "Quartz Icon.png" |
|||
}, |
|||
["silver"] = { |
|||
name = "Silver Ore", |
|||
image = "Silver Ore Icon.png" |
|||
}, |
|||
["tank"] = { |
["tank"] = { |
||
name = "Standard O₂ Tank", |
name = "Standard O₂ Tank", |
||
machine = "fabricator", |
machine = "fabricator", |
||
image = "Standard O₂ Tank Icon.png", |
|||
recipe = { |
recipe = { |
||
["titanium"] = 3 |
["titanium"] = 3 |
||
Line 10: | Line 31: | ||
name = "High Capacity O₂ Tank", |
name = "High Capacity O₂ Tank", |
||
machine = "fabricator", |
machine = "fabricator", |
||
image = "High Capacity O₂ Tank Icon.png", |
|||
recipe = { |
recipe = { |
||
["tank"] = 1, |
["tank"] = 1, |
||
Line 16: | Line 38: | ||
["silver"] = 1 |
["silver"] = 1 |
||
} |
} |
||
}, |
|||
["creepvinepiece"] = { |
|||
name = "Creepvine Sample", |
|||
image = "Creepvine Sample Icon.png" |
|||
}, |
|||
["fibermesh"] = { |
|||
name = "Fiber Mesh", |
|||
machine = "fabricator", |
|||
image = "Fiber Mesh Icon.png", |
|||
recipe = { |
|||
["creepvinepiece"] = 2 |
|||
} |
|||
}, |
|||
["lead"] = { |
|||
name = "Lead", |
|||
image = "Lead Icon.png" |
|||
}, |
}, |
||
["radiationsuit"] = { |
["radiationsuit"] = { |
||
name = "Radiation Suit", |
name = "Radiation Suit", |
||
machine = "fabricator", |
machine = "fabricator", |
||
image = "Radiation Suit.png", |
|||
recipe = { |
recipe = { |
||
["fibermesh"] = 2, |
["fibermesh"] = 2, |
||
["lead"] = 2 |
["lead"] = 2 |
||
}, |
}, |
||
additional = { |
additional = { |
||
["radiationhelmet"] = { |
|||
name = "Radiation Helmet", |
|||
image = "Radiation Helmet.png" |
|||
}, |
|||
["radiationgloves"] = { |
|||
name = "Radiation Gloves", |
|||
image = "Radiation Gloves.png" |
|||
} |
|||
} |
|||
} |
} |
||
} |
} |
Revision as of 22:07, 8 June 2022
This module contains all recipe information for every item in Subnautica. This data is used in Module:Recipe to output recipes on pages.
Each in-game item is represented by an Lua table object. The syntax for each object is below. All parameters are optional except name
.
["spawnID"] = {
name = "Item Name", -- the in-game name of the item
energy = #, -- the amount of energy the item adds to the Bioreactor
nuclear = #, -- the amount of energy the item adds to the Nuclear Reactor
icon = {
size = "1x1", -- "1x1", "1x2", "2x2", "3x3", "3x2", "2x3", "4x4"
bg = "default", -- "default", "aquatic plant", "land plant", "prawn arm"
file = "Item Name" -- if the transparent icon is not at "Item Name Icon.png"
},
image = "File Name.png", -- the direct file name if a transparent icon does not exist
machine = "spawnID", -- the machine the item is crafted or obtained through
recipe = {
{ "spawnID", # },
{ "spawnID", # }
},
original = "spawnID", -- if the item is made as part of a different item's recipe
additional = { -- if the item's recipe also makes other items
{ "spawnID", # },
{ "spawnID", # }
},
quantity = # -- if more than one of the item is made at the same time
},
return {
["titanium"] = {
name = "Titanium",
image = "Titanium Icon.png"
},
["glass"] = {
name = "Glass",
machine = "fabricator",
image = "Glass Icon.png",
recipe = {
["quartz"] = 2
}
},
["quartz"] = {
name = "Quartz",
image = "Quartz Icon.png"
},
["silver"] = {
name = "Silver Ore",
image = "Silver Ore Icon.png"
},
["tank"] = {
name = "Standard O₂ Tank",
machine = "fabricator",
image = "Standard O₂ Tank Icon.png",
recipe = {
["titanium"] = 3
}
},
["doubletank"] = {
name = "High Capacity O₂ Tank",
machine = "fabricator",
image = "High Capacity O₂ Tank Icon.png",
recipe = {
["tank"] = 1,
["glass"] = 2,
["titanium"] = 4,
["silver"] = 1
}
},
["creepvinepiece"] = {
name = "Creepvine Sample",
image = "Creepvine Sample Icon.png"
},
["fibermesh"] = {
name = "Fiber Mesh",
machine = "fabricator",
image = "Fiber Mesh Icon.png",
recipe = {
["creepvinepiece"] = 2
}
},
["lead"] = {
name = "Lead",
image = "Lead Icon.png"
},
["radiationsuit"] = {
name = "Radiation Suit",
machine = "fabricator",
image = "Radiation Suit.png",
recipe = {
["fibermesh"] = 2,
["lead"] = 2
},
additional = {
["radiationhelmet"] = {
name = "Radiation Helmet",
image = "Radiation Helmet.png"
},
["radiationgloves"] = {
name = "Radiation Gloves",
image = "Radiation Gloves.png"
}
}
}
}