Module:Recipe/SN: Difference between revisions
SlyAceZeta (talk | contribs) (splitting Radiation Suit additionals into their own recipes with an included failsafe parameter for the main function) |
SlyAceZeta (talk | contribs) (seeing if I can call these ingredients in an ordered fashion) |
||
Line 9: | Line 9: | ||
image = "Glass Icon.png", |
image = "Glass Icon.png", |
||
recipe = { |
recipe = { |
||
{ "quartz", 2 } |
|||
} |
} |
||
}, |
}, |
||
Line 25: | Line 25: | ||
image = "Standard O₂ Tank Icon.png", |
image = "Standard O₂ Tank Icon.png", |
||
recipe = { |
recipe = { |
||
{ "titanium" , 3 } |
|||
} |
} |
||
}, |
}, |
||
Line 33: | Line 33: | ||
image = "High Capacity O₂ Tank Icon.png", |
image = "High Capacity O₂ Tank Icon.png", |
||
recipe = { |
recipe = { |
||
{ "tank", 1 }, |
|||
{ "glass", 2 }, |
|||
{ "titanium", 4 }, |
|||
{ "silver", 1 } |
|||
} |
} |
||
}, |
}, |
||
Line 48: | Line 48: | ||
image = "Fiber Mesh Icon.png", |
image = "Fiber Mesh Icon.png", |
||
recipe = { |
recipe = { |
||
{ "creepvinepiece", 2 } |
|||
} |
} |
||
}, |
}, |
||
Line 60: | Line 60: | ||
image = "Radiation Suit.png", |
image = "Radiation Suit.png", |
||
recipe = { |
recipe = { |
||
{ "fibermesh", 2 }, |
|||
{ "lead", 2 } |
|||
}, |
}, |
||
additional = {"radiationhelmet", "radiationgloves"} |
additional = {"radiationhelmet", "radiationgloves"} |
Revision as of 22:54, 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", "radiationgloves"}
},
["radiationhelmet"] = {
name = "Radiation Helmet",
image = "Radiation Helmet.png",
original = "radiationsuit"
},
["radiationgloves"] = {
name = "Radiation Gloves",
image = "Radiation Gloves.png",
original = "radiationsuit"
}
}