Differenze tra le versioni di "Modulo:PokémonData"

Jump to navigation Jump to search
m
I really do hate to upload this module from the local repo to PCW
(Preparing for multigen in Poké/data *** sovrascritto il testo esistente ***)
m (I really do hate to upload this module from the local repo to PCW)
if not tab then
local loadFunction = useRequire and require or mw.loadData
return loadFunction(moduleName) --loadFunction('Modulo:' .. moduleName)
end
return tab
 
b.getNdex = function(frame)
pokes = loadData(pokes, 'Poké-/data')
return string.tf(pokes[formlib.nameToDataindex(frame.args[1])].ndex)
end
 
b.getName = function(frame)
pokes = loadData(pokes, 'Poké-/data')
return pokes[formlib.nameToDataindex(frame.args[1])].name
end
 
local getAbil = function(name, abilityNumber, gen)
abils = loadData(abils, 'PokéAbil-/data')
return multigen.getGenValue(
abils[formlib.nameToDataindex(name)]['ability' .. abilityNumber] or '',
 
local getType = function(name, typeNumber, gen)
pokes = loadData(pokes, 'Poké-/data')
return string.fu(multigen.getGenValue(
pokes[formlib.nameToDataindex(name)]['type' .. typeNumber],
 
b.ifTwoTypes = function(frame)
pokes = loadData(pokes, 'Poké-/data')
local poke = pokes[formlib.nameToDataindex(frame.args[1])]
local isDualType = poke.type1 == poke.type2

Menu di navigazione