Module:Rescue Team Boss Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 19:58, 30 July 2023 by Adkuate (talk | contribs)
Jump to navigation Jump to search

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

--------------------------------------------------------------------------------
--
--                     Module:Rescue Team Boss Data Cell
--
-- This module covers a list of bosses in Japanese, their types and their moves
-- present in Pokémon Mystery Dungeon: Rescue Team.
--
-- 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).
--
--------------------------------------------------------------------------------

p = {}

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

	-- List of every boss's Japanese names, types, and moves
	local list = {
		["Skarmory"] = { ["ja"] = "フシギダネ", ["type1"] = "Grass", ["type2"] = "Poison", ["move1"] = "Sand-Attack", ["move2"] = "Peck", ["move3"] = "Leer" },
		["Gengar"] = { ["ja"] = "ゲンガー", ["type1"] = "Ghost", ["type2"] = "Poison", ["recruit"] = "-99.9%", ["move1"] = "Curse", ["move2"] = "Lick", ["move3"] = "Spite", ["move4"] = "Hypnosis" },
		["Ekans"] = { ["ja"] = "アーボ", ["type1"] = "Poison", ["recruit"] = "12.4%", ["move1"] = "Bite", ["move2"] = "Wrap", ["move3"] = "Leer", ["move4"] = "Poison Sting" },
		["Medicham"] = { ["ja"] = "チャーレム", ["type1"] = "Fighting", ["type2"] = "Psychic", ["move1"] = "Ice Punch", ["move2"] = "Thunderpunch", ["move3"] = "Detect", ["move4"] = "Confusion" },
	}

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

return p