Module:Rescue Team Boss Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 15:22, 31 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).
-- * 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 = {
		["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"] = "Twister" },
	}

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

return p