Differenze tra le versioni di "Modulo:Stats"

Jump to navigation Jump to search
480 byte aggiunti ,  03:00, 23 set 2020
Adding category to Pokémon with all base stats equal *** sovrascritto il testo esistente ***
m (Removed min/max stats from typeAvg (as documented btw). If the Wiki crashes blame @Lucas992, it's him who convinced me to do this edit now)
(Adding category to Pokémon with all base stats equal *** sovrascritto il testo esistente ***)
 
catTotal = '[[Categoria:Pokémon con statistiche base totali di ${tot}|${display}]]',
 
catStatsEqual = '[[Categoria:Pokémon con lo stesso valore in tutte le statistiche base|${display}]]',
 
footer = [=[
table.insert(categories, interpCat(
strings.catStatsChanged, {gen = gendata[gen].ext}))
end
end
 
-- Category for Pokémon with all the base stats equal
do
local firstStat = mg.getGenValue(stats[poke].atk)
local equalFirst = function(val)
return mg.getGenValue(val) == firstStat
end
if table.all(stats[poke], equalFirst) then
table.insert(categories, interpCat(strings.catStatsEqual))
end
end
79 548

contributi

Menu di navigazione