Module:Rescue Team DX Move Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 22:04, 10 October 2023 by Adkuate (talk | contribs)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Rescue Team DX Move Data Cell/doc

--------------------------------------------------------------------------------
--
--                     Module:Rescue Team DX Move Data Cell
--
-- This module covers a list of moves in Japanese and their types present in
-- Pokémon Mystery Dungeon: Rescue Team DX.
--
-- Parameters
--
-- name: Insert the move's English name there.
-- getVar: Picks which key the module should return.
-- * ja: Returns the move's Japanese name.
-- * type: Returns the move's type.
--
--------------------------------------------------------------------------------

p = {}

function p.rescueTeamDXMoveDataCell(f)
	-- Gets the arguments from #invoke:Rescue Team DX Move Data Cell|rescueTeamDXMoveDataCell
	local args = f.args

	-- List of every moves' Japanese names and their types
	local list = {
		[""] = { ["ja"] = "", ["type"] = "" },
		["Tackle"] = { ["ja"] = "", ["type"] = "Normal" }
	}

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

return p