79 548
contributi
(Adding parameters to Movelist-entry to handle special cases *** sovrascritto il testo esistente ***) |
(Fixing problem with uppercase letters, adding multigen to Rotom's types *** sovrascritto il testo esistente ***) |
||
--[[
Parse an argument that should be a Pokémon name or ndex,
If name is a Pokémon name
--]]
f.nameToDataindex = function(name)
local trueName, extform = f.getnameabbr(name)
-- If the name contains uppercase letters it's not recognized by
-- getnameabbr, so this mess is needed
trueName = type(trueName) == 'number' and trueName or (
trueName == '' and name:lower() or trueName:lower())
-- The local variable is needed because global alt can be changed with
-- loadUseless
|