View source for Module:Item recipe
From Space Station 14 Wiki
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
-- Contains utilities for working with in-game item recipes.
-- todo: material sorting. based on alphabetical sorting? maybe at .json generation step, convert materials to an array?
local p = {} --p stands for package
local getArgs = require('Module:Arguments').getArgs
local itemModule = require('Module:Item')
local yesNo = require('Module:Yesno')
-- An array of recipe groups.
-- Recipes are grouped by `method`.
-- Note that the order matters for perfomance - the recipe lookup happens from top to bottom.
local recipe_groups = {
{ method = "autolathe", recipes = mw.loadJsonData("Module:Item recipe/recipes by lathe/autolathe.json") },
{ method = "protolathe", recipes = mw.loadJsonData("Module:Item recipe/recipes by lathe/protolathe.json") },
}
-- A table mapping overriding some recipes' products.
-- Keys are the recipe products, values are the new products for these recipes.
-- It's advised to use item IDs for values, as they offer much more perfomance.
--
-- Used for recipes which use separate items for produced items,
000
1:0
Templates used on this page:
- Template:Add categories if not on page or subpage (view source)
- Template:Callout (view source)
- Template:Callout/styles.css (view source)
- Template:Clear (view source)
- Template:Colored text (view source)
- Template:Kbd (view source)
- Template:Module docs (view source)
- Template:Module documentation (view source)
- Template:T (view source)
- Template:Template link (view source)
- Template:Uses json data (view source)
- Module:Arguments (view source) (protected)
- Module:Callout (view source)
- Module:Item (view source)
- Module:Item/item ids by item lowercase names.json (view source)
- Module:Item/item ids by item lowercase names overrides.json (view source)
- Module:Item/item image files by item id.json (view source)
- Module:Item/item names by item ids.json (view source)
- Module:Item/item page links by item ids.json (view source)
- Module:Item/sizes.json (view source)
- Module:Item recipe/doc (view source)
- Module:Params (view source)
- Module:String (view source)
- Module:Yesno (view source) (protected)
Return to Module:Item recipe.