Module:Explorers of Sky Boss Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 23:09, 9 February 2024 by Adkuate (talk | contribs) (Created page with "-------------------------------------------------------------------------------- -- -- Module:Explorers of Sky Boss Data Cell -- -- This module covers a list of bosses in Japanese, their types and their moves -- present in Pokémon Mystery Dungeon: Explorers of Sky. -- -- Parameters -- -- name: Insert the Pokémon's English name there. -- getVar: Picks which key the module should return. -- * ja: Returns the Pokémon's Japanese name. -- * type1: Retur...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Explorers of Sky Boss Data Cell/doc

--------------------------------------------------------------------------------
--
--                     Module:Explorers of Sky Boss Data Cell
--
-- This module covers a list of bosses in Japanese, their types and their moves
-- present in Pokémon Mystery Dungeon: Explorers of Sky.
--
-- Parameters
--
-- name: Insert the Pokémon's English name there.
-- getVar: Picks which key the module should return.
-- * ja: Returns the Pokémon's Japanese name.
-- * type1: Returns the Pokémon's first type.
-- * type2: Returns the Pokémon's second type.
-- * move<n>: Returns the Pokémon's numbered move (up to 9).
-- * recruit: Returns the Pokémon's recruit chance.
--
--------------------------------------------------------------------------------

p = {}

function p.explorersOfSkyBossDataCell(f)
	-- Gets the arguments from #invoke:Explorers of Sky Boss Data Cell|explorersOfSkyBossDataCell
	local args = f.args

	-- List of every boss's Japanese names, types, moves, and recruit chances
	local list = {
		-- Main story
		[""] = { ["ja"] = "", ["type1"] = "", ["type2"] = "", ["move1"] = "", ["move2"] = "", ["move3"] = "", ["move4"] = "", ["move5"] = "", ["move6"] = "", ["move7"] = "", ["move8"] = "", ["move9"] = "" },
		-- Post-credits
	}

	-- Returns the selected boss with the object's specified key value
	return list[args.name][args.getVar]
end

return p