Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Smelting

From Mine in Abyss

This module implements {{smelting}}.

Dependencies

See also


cs:Modul:Smelting de:Modul:Ofenrezept es:Módulo:Smelting fr:Module:Cuisson it:Modulo:Cottura ja:モジュール:Smelting ko:모듈:Smelting lzh:模組:Smelting pt:Módulo:Smelting ru:Модуль:Обжиг th:มอดูล:Smelting uk:Модуль:Виплавка zh:模块:Smelting



local p = {}

local i18n = {
	defaultFuel = 'Any fuel',
	moduleArgs = [[Module:ProcessArgs]],
	moduleRecipe = [[Module:Recipe table]],
	type = 'Smelting',
}
p.i18n = i18n

local recipeTable = require( i18n.moduleRecipe ).table

function p.table( f )
	local args = f
	if f == mw.getCurrentFrame() then
		args = require( i18n.moduleArgs ).merge( true )
	else
		f = mw.getCurrentFrame()
	end
	
	args.Input = args[1]
	args.Output = args[2]
	args.Experience = args[3]
	args.Fuel = args.fuel or i18n.defaultFuel
	
	local out = recipeTable( args, {
		uiFunc = 'furnace',
		type = i18n.type,
		ingredientArgs = { 'Input', 'Fuel' },
		outputArgs = { 'Output' },
	} )
	
	local title = mw.title.getCurrentTitle()
	
	return out, category
end

return p