Module:Rescue Team Boss Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 21:07, 1 August 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).
-- * recruit: Returns the Pokémon's recruit chance.
--
--------------------------------------------------------------------------------

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, moves, and recruit chances
	local list = {
		-- Main story
		["Skarmory"] = { ["move1"] = "Sand-Attack", ["move2"] = "Peck", ["move3"] = "Leer" },
		["Gengar"] = { ["move1"] = "Curse", ["move2"] = "Lick", ["move3"] = "Spite", ["move4"] = "Hypnosis" },
		["Ekans"] = { ["move1"] = "Bite", ["move2"] = "Wrap", ["move3"] = "Leer", ["move4"] = "Poison Sting" },
		["Medicham"] = { ["move1"] = "Ice Punch", ["move2"] = "Thunderpunch", ["move3"] = "Detect", ["move4"] = "Confusion" },
		["Zapdos"] = { ["move1"] = "Agility", ["move2"] = "Peck", ["move3"] = "Thundershock", ["move4"] = "Thunder Wave" },
		["Mankey"] = { ["move1"] = "Karate Chop", ["move2"] = "Low Kick", ["move3"] = "Leer", ["move4"] = "Scratch" },
		["Moltres"] = { ["move1"] = "Agility", ["move2"] = "Wing Attack", ["move3"] = "Ember", ["move4"] = "Fire Spin" },
		["Articuno"] = { ["move1"] = "Gust", ["move2"] = "Agility", ["move3"] = "Powder Snow", ["move4"] = "Mist" },
		["Groudon"] = { ["move1"] = "Slash", ["move2"] = "Ancientpower", ["move3"] = "Scary Face", ["move4"] = "Mud Shot" },
		["Rayquaza"] = { ["move1"] = "Crunch", ["move2"] = "Ancientpower", ["move3"] = "Scary Face", ["move4"] = "Fly", ["move5"] = "Twister", ["move6"] = "Dragon Claw", ["move7"] = "Dragon Dance" },
		-- Post-credits
		["Zapdos (boss - post-credits)"] = { ["move1"] = "Thundershock", ["move2"] = "Detect", ["move3"] = "Drill Peck", ["move4"] = "Thunder" },
		["Moltres (boss - post-credits)"] = { ["move1"] = "Flamethrower", ["move2"] = "Agility", ["move3"] = "Endure", ["move4"] = "Wing Attack", ["move5"] = "Ember", ["move6"] = "Fire Spin" },
		["Articuno (boss - post-credits)"] = { ["move1"] = "Gust", ["move2"] = "Agility", ["move3"] = "Mind Reader", ["move4"] = "Powder Snow", ["move5"] = "Mist", ["move6"] = "Ice Beam" },
		["Groudon (boss - post-credits)"] = { ["move1"] = "Slash", ["move2"] = "Ancientpower", ["move3"] = "Scary Face", ["move4"] = "Earthquake", ["move5"] = "Bulk Up", ["move6"] = "Mud Shot" },
		["Deoxys"] = { ["move1"] = "", ["move2"] = "", ["move3"] = "", ["move4"] = "" },
		["Entei"] = { ["move1"] = "", ["move2"] = "", ["move3"] = "", ["move4"] = "" },
		["Ho-Oh"] = { ["move1"] = "", ["move2"] = "", ["move3"] = "", ["move4"] = "" },
		["Jirachi"] = { ["move1"] = "", ["move2"] = "", ["move3"] = "", ["move4"] = "" },
		["Kyogre"] = { ["move1"] = "", ["move2"] = "", ["move3"] = "", ["move4"] = "" },
		["Latios"] = { ["move1"] = "", ["move2"] = "", ["move3"] = "", ["move4"] = "" },
		["Lugia"] = { ["move1"] = "", ["move2"] = "", ["move3"] = "", ["move4"] = "" },
		["Mewtwo"] = { ["move1"] = "", ["move2"] = "", ["move3"] = "", ["move4"] = "" },
		["Raikou"] = { ["move1"] = "", ["move2"] = "", ["move3"] = "", ["move4"] = "" },
		["Regice"] = { ["move1"] = "", ["move2"] = "", ["move3"] = "", ["move4"] = "" },
		["Regirock"] = { ["move1"] = "", ["move2"] = "", ["move3"] = "", ["move4"] = "" },
		["Registeel"] = { ["move1"] = "", ["move2"] = "", ["move3"] = "", ["move4"] = "" },
		["Suicune"] = { ["move1"] = "", ["move2"] = "", ["move3"] = "", ["move4"] = "" }
	}

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

return p