Differenze tra le versioni di "Modulo:AltForms/data"

Moving Gigamax to AltForms, adding Alcremie forms *** sovrascritto il testo esistente ***
(Adding Pokémon revealed a while ago (Kubfu and co.) *** sovrascritto il testo esistente ***)
(Moving Gigamax to AltForms, adding Alcremie forms *** sovrascritto il testo esistente ***)
-- Creates link to alternative forms in list pointing to target instead of
-- "Differenze di forma"
-- abbrs is an optional parameter, if specified this function modifies only the
local makeTargetedLink = function(linkstr, index, target, list)
-- link for base and the specified abbrs
local makeTargetedLink = function(linkstr, index, target, list, abbrs)
linkstr = linkstr:gsub('Differenze di forma', target)
for _, poke in pairs(list) do
t[poke][index] = table.map(t[poke].names, function(formName, formAbbr)
if abbrs and (formAbbr == 'base' or table.search(abbrs, formAbbr)) then
return formName == ''
return formName and== ''
orand string.interp(linkstr, {''
anchor = t[poke].anchor or string.fuinterp(poke)linkstr, {
anchor = t[poke].anchor or string.fu(poke),
formName = formName
formName = formName
})
})
else
return t[poke][index] and t[poke][index][formAbbr]
end
end)
end
return
not table.search({'mega', 'megaxy',
'archeo', 'alola', 'galar', 'gigamax'}, key)
and not table.search(t.mega, key)
and
and not table.search(t.megamegaxy, key)
and not table.search(t.archeo, key)
and
and not table.search(t.megaxyalola, key)
and not table.search(t.galar, key)
and
and not table.search(t.archeogigamax, key)
and
not table.search(t.alola, key)
and
not table.search(t.galar, key)
end)
 
 
-- Link of forms with a dedicated page instead of "Differenze di forma"
makeTargetedLink(link, index, 'Megaevoluzione', table.merge(t.mega, t.megaxy), {"M", "MX", "MY"})
makeTargetedLink(link, index, 'Archeorisveglio', t.archeo, {"A"})
makeTargetedLink(link, index, 'Forma di Alola', t.alola, {"A"})
makeTargetedLink(link, index, 'Forma di Galar', t.galar, {"G"})
makeTargetedLink(link, index, 'Gigamax', t.gigamax, {"Gi"})
end
 
 
t.pikachu = {}
t.meowth = {}
t.slowbro = {}
t.eevee = {}
t.necrozma = {}
t.toxtricity = {}
t.alcremie = {}
t.eiscue = {}
t.indeedee = {}
 
t.mega = {'venusaur', 'blastoise', 'beedrill', 'pidgeot', 'alakazam',
'gengar', 'kangaskhanslowbro', 'pinsirkangaskhan', 'gyaradospinsir', 'aerodactylgyarados', 'ampharosaerodactyl',
'ampharos',
'steelix', 'scizor', 'heracross', 'houndoom', 'tyranitar', 'sceptile',
'blaziken', 'swampert', 'gardevoir', 'sableye', 'mawile', 'aggron',
-- per efficienza, alcuni sono alla fine del modulo
 
t.alola = {'rattata', 'raichu', 'sandshrew', 'vulpix', 'diglett', 'persianmeowth',
'persian', 'geodude', 'grimer', 'exeggutor', 'marowak'}
 
-- Tabella contenente i Pokémon che hanno una forma di Galar:
-- per efficienza, alcuni sono alla fine del modulo
 
t.galar = {'meowth', 'ponyta', 'slowpoke', "farfetch'd", 'weezing', 'mr. mime',
'slowking', 'corsola', 'zigzagoon', 'darumaka', 'yamask', 'stunfisk'}
 
-- Table with Pokémon with a Gigamax
 
t.gigamax = {'venusaur', 'charizard', 'blastoise', 'butterfree', 'meowth',
'machamp', 'gengar', 'kingler', 'lapras', 'eevee', 'snorlax', 'garbodor',
'melmetal', 'rillaboom', 'cinderace', 'inteleon', 'corviknight', 'orbeetle',
'drednaw', 'coalossal', 'flapple', 'appletun', 'sandaconda', 'centiskorch',
'hatterene', 'grimmsnarl', 'alcremie', 'copperajah', 'duraludon'}
 
 
--[[
D = 'Pikachu damigella', Cn = 'Pikachu confetto',
S = 'Pikachu scienziata', W = 'Pikachu wrestler', Cm = 'Compagno',
Gi = 'Pikachu Gigamax', base = ''}
t.meowthslowbro.names = {A = 'Forma di Alola', G = 'Forma di Galar', base = ''}
t.slowbro.names = {M = 'MegaSlowbro', G = 'Forma di Galar', base = ''}
t.eevee.names = {Cm = 'Compagno', base = ''}
t.castform.names = {S = 'Forma Sole', P = 'Forma Pioggia',
t.necrozma.names = {V = 'Necrozma Criniera del Vespro', A = "Necrozma Ali dell'Aurora",
U = 'UltraNecrozma', base = ''}
t.toxtricity.names = {B = 'Forma Basso', Gi = "Toxtricity Gigamax", base = 'Forma Melodia'}
t.alcremie.names = {base = "Lattevaniglia Bonbonfragola"}
t.eiscue.names = {L = "Liquefaccia", base = "Gelofaccia"}
t.indeedee.names = t.meowstic.names
t.zamazenta.names = {R = 'Re degli Scudi', base = 'Eroe di Mille Lotte'}
t.eternatus.names = {D = 'Dynamax Infinito', base = ''}
t.urshifu.names = {P = 'Stile Pluricolpo', baseGi = 'Urshifu Gigamax (Stile Singolcolpo)'},
PGi = 'Urshifu Gigamax (Stile Pluricolpo)', base = 'Stile Singolcolpo'}
for _, v in pairs(t.mega) do
if not t[v] then
local fu = string.fu(v)
t[v] = { names = {base = ''} }
end
t[v].names = {M = 'Mega' .. fu, base = ''}
t[v].names.M = 'Mega' .. string.fu(v)
end
for _, v in pairs(t.megaxy) do
if not t[v] then
t[v] = { names = {base = ''} }
end
local fu = string.fu(v)
t[v].names.MX = table.concat{'Mega', fu, ' X'}
t[v].names = {MX.MY = table.concat{'Mega', fu, ' XY'},
MY = table.concat{'Mega', fu, ' Y'}, base = ''}
end
for _, v in pairs(t.archeo) do
if not t[v] = {}then
t[v].names = {A names = 'Archeorisveglio', {base = ''} }
end
t[v].names.A = 'Archeorisveglio'
end
for _, v in pairs(t.alola) do
if not t[v] = {}then
t[v].names = {A names = 'Forma di Alola', {base = ''} }
end
t[v].names.A = 'Forma di Alola'
end
for _, v in pairs(t.galar) do
if not t[v] = {}then
t[v].names = {G names = 'Forma di Galar', {base = ''} }
end
t[v].names.G = 'Forma di Galar'
end
for _, v in pairs(t.gigamax) do
if not t[v] then
t[v] = { names = {base = ''} }
end
t[v].names.Gi = string.fu(v) .. " Gigamax"
end
 
 
t.pikachu.ext = {cosplay = 'Cs', rockstar = 'R', damigella = 'D',
confetto = 'Cn', scienziata = 'S', wrestler = 'W', compagno = 'Cm'},
gigamax = 'Gi'}
t.meowth.ext = {alola = 'A', galar = 'G'}
-- t.slowbromeowth.ext = {galaralola = 'GA', megagalar = 'MG'}
-- t.slowbro.ext = {galar = 'G', mega = 'M'}
t.eevee.ext = {compagno = 'Cm'}
t.castform.ext = {sole = 'S', pioggia = 'P', neve = 'N'}
t.minior.ext = {nucleo = 'R', meteora = 'base'}
t.necrozma.ext = {vespro = 'V', aurora = 'A', ultra = 'U', necrozma = 'base'}
t.toxtricity.ext = {basso = 'B', gigamax = 'Gi', melodia = 'base'}
t.alcremie.ext = {lattevaniglia = 'base'}
t.eiscue.ext = {liquefaccia = 'L', gelofaccia = 'base'}
t.indeedee.ext = t.meowstic.ext
t.zamazenta.ext = t.zacian.ext
t.eternatus.ext = {dynamax = 'D'}
t.urshifu.ext = {pluricolpo = 'P', gigamax = "Gi", singolcolpo = 'base'}
for _, v in pairs(t.mega) do
t[v].ext = {megat[v].ext =or 'M'{}
t[v].ext.mega = 'M'
end
for _, v in pairs(t.megaxy) do
t[v].ext = {megaxt[v].ext =or 'MX', megay = 'MY'{}
t[v].ext.megax = 'MX'
t[v].ext.megay = 'MY'
end
for _, v in pairs(t.archeo) do
t[v].ext = {archeot[v].ext =or 'A'{}
t[v].ext.archeo = 'A'
end
for _, v in pairs(t.alola) do
t[v].ext = {alolat[v].ext =or 'A'{}
t[v].ext.alola = 'A'
end
for _, v in pairs(t.galar) do
t[v].ext = {galart[v].ext =or 'G'{}
t[v].ext.galar = 'G'
end
for _, v in pairs(t.gigamax) do
t[v].ext = t[v].ext or {}
t[v].ext.gigamax = "Gi"
end
 
--]]
 
t.pikachuvenusaur.gamesOrder = {'base', 'CsM', 'R', 'D', 'Cn', 'S', 'W', 'CmGi'}
t.meowthcharizard.gamesOrder = {'base', 'AMX', 'GMY', 'Gi'}
t.blastoise.gamesOrder = {'base', 'M', 'Gi'}
t.pikachu.gamesOrder = {'base', 'Cs', 'R', 'D', 'Cn', 'S', 'W', 'Cm', 'Gi'}
t.meowth.gamesOrder = {'base', 'A', 'G', 'Gi'}
t.gengar.gamesOrder = {'base', 'M', 'Gi'}
t.slowbro.gamesOrder = {'base', 'M', 'G'}
t.eevee.gamesOrder = {'base', 'Cm', 'Gi'}
t.castform.gamesOrder = {'base', 'S', 'P', 'N'}
t.deoxys.gamesOrder = {'base', 'A', 'D', 'V'}
t.minior.gamesOrder = {'base', 'R'}
t.necrozma.gamesOrder = {'base', 'V', 'A', 'U'}
t.toxtricity.gamesOrder = {'base', 'B', 'Gi'}
t.eiscue.gamesOrder = {'base', 'L'}
t.indeedee.gamesOrder = t.meowstic.gamesOrder
t.zamazenta.gamesOrder = t.zacian.gamesOrder
t.eternatus.gamesOrder = {'base', 'D'}
t.urshifu.gamesOrder = {'base', 'Gi', 'P', 'PGi'}
table.remove(t.silvally.gamesOrder)
for _, v in pairs(t.mega) do
t[v].gamesOrder = t[v].gamesOrder or {'base', 'M'}
end
for _, v in pairs(t.megaxy) do
t[v].gamesOrder = t[v].gamesOrder or {'base', 'MX', 'MY'}
end
for _, v in pairs(t.archeo) do
t[v].gamesOrder = t[v].gamesOrder or {'base', 'A'}
end
for _, v in pairs(t.alola) do
t[v].gamesOrder = t[v].gamesOrder or {'base', 'A'}
end
for _, v in pairs(t.galar) do
t[v].gamesOrder = t[v].gamesOrder or {'base', 'G'}
end
for _, v in pairs(t.gigamax) do
t[v].gamesOrder = t[v].gamesOrder or {"base", "Gi"}
end
 
t.rattata.since = {A = 'sl', base = 'rb'}
t.pikachu.since = {Cs = 'roza', R = 'roza', D = 'roza',
Cn = 'roza', S = 'roza', W = 'roza', Cm = 'lgpe', base = 'rb'}
Gi = 'spsc', base = 'rb'}
t.raichu.since = {A = 'sl', base = 'rb'}
t.sandshrew.since = {A = 'sl', base = 'rb'}
t.vulpix.since = {A = 'sl', base = 'rb'}
t.diglett.since = {A = 'sl', base = 'rb'}
t.meowth.since = {A = 'sl', G = 'spsc', Gi = 'spsc', base = 'rb'}
t.persian.since = {A = 'sl', base = 'rb'}
t.geodude.since = {A = 'sl', base = 'rb'}
t.weezing.since = {G = 'spsc', base = 'rb'}
t['mr. mime'].since = {G = 'spsc', base = 'rb'}
t.eevee.since = {Cm = 'lgpe', Gi = 'spsc', base = 'rb'}
t.slowking.since = {G = 'spsc', base = 'oa'}
t.corsola.since = {G = 'spsc', base = 'rz'}
t.minior.since = {base = 'sl', R = 'sl'}
t.necrozma.since = {base = 'sl', V = 'usul', A = 'usul', U = 'usul'}
t.toxtricity.since = {B = 'spsc', Gi = 'spsc', base = 'spsc'}
t.eiscue.since = {L = 'spsc', base = 'spsc'}
t.indeedee.since = {F = 'spsc', base = 'spsc'}
t.zamazenta.since = {R = 'spsc', base = 'spsc'}
t.eternatus.since = {D = 'spsc', base = 'spsc'}
t.urshifu.since = {P = 'spsc', Gi = 'spsc', PGi = 'spsc', base = 'spsc'}
t.venusaur.since = {M = 'xy', Gi = 'spsc', base = 'rb'}
t.blastoise.since = {M = 'xy', Gi = 'spsc', base = 'rb'}
t.beedrill.since = {M = 'roza', base = 'rb'}
t.pidgeot.since = {M = 'roza', base = 'rb'}
t.alakazam.since = {M = 'xy', base = 'rb'}
t.gengar.since = {M = 'xy', Gi = 'spsc', base = 'rb'}
t.kangaskhan.since = {M = 'xy', base = 'rb'}
t.pinsir.since = {M = 'xy', base = 'rb'}
t.audino.since = {M = 'roza', base = 'nb'}
t.diancie.since = {M = 'roza', base = 'xy'}
t.charizard.since = {MX = 'xy', MY = 'xy', Gi = 'spsc', base = 'rb'}
t.mewtwo.since = {MX = 'xy', MY = 'xy', base = 'rb'}
t.groudon.since = {A = 'roza', base = 'rz'}
t.kyogre.since = {A = 'roza', base = 'rz'}
t.butterfree.since = {base = 'rb', Gi = 'spsc'}
t.machamp.since = {base = 'rb', Gi = 'spsc'}
t.kingler.since = {base = 'rb', Gi = 'spsc'}
t.lapras.since = {base = 'rb', Gi = 'spsc'}
t.snorlax.since = {base = 'rb', Gi = 'spsc'}
t.garbodor.since = {base = 'nb', Gi = 'spsc'}
t.melmetal.since = {base = 'lgpe', Gi = 'spsc'}
t.rillaboom.since = {base = 'spsc', Gi = 'spsc'}
t.cinderace.since = {base = 'spsc', Gi = 'spsc'}
t.inteleon.since = {base = 'spsc', Gi = 'spsc'}
t.corviknight.since = {base = 'spsc', Gi = 'spsc'}
t.orbeetle.since = {base = 'spsc', Gi = 'spsc'}
t.drednaw.since = {base = 'spsc', Gi = 'spsc'}
t.coalossal.since = {base = 'spsc', Gi = 'spsc'}
t.flapple.since = {base = 'spsc', Gi = 'spsc'}
t.appletun.since = {base = 'spsc', Gi = 'spsc'}
t.sandaconda.since = {base = 'spsc', Gi = 'spsc'}
t.centiskorch.since = {base = 'spsc', Gi = 'spsc'}
t.hatterene.since = {base = 'spsc', Gi = 'spsc'}
t.grimmsnarl.since = {base = 'spsc', Gi = 'spsc'}
t.alcremie.since = {base = 'spsc', Gi = 'spsc'}
t.copperajah.since = {base = 'spsc', Gi = 'spsc'}
t.duraludon.since = {base = 'spsc', Gi = 'spsc'}
 
--[[
 
-- Other Galar forms
table.insert(t.galar, 'meowth')
table.insert(t.galar, 'rapidash')
table.insert(t.galar, 'slowbro')
 
-- Insert Slowbro between megas
-- table.insert(t.mega, 'slowbro')
 
-- Other Gigamax forms
table.insert(t.gigamax, 'pikachu')
table.insert(t.gigamax, 'toxtricity')
table.insert(t.gigamax, 'urshifu')
 
-- Alias, messi qui per evitare inutili iterazioni dei cicli precedenti
t[800] = t.necrozma
t[849] = t.toxtricity
t[869] = t.alcremie
t[875] = t.eiscue
t[876] = t.indeedee
t[382] = t.kyogre
t[383] = t.groudon
t[12] = t.butterfree
t[68] = t.machamp
t[99] = t.kingler
t[131] = t.lapras
t[143] = t.snorlax
t[569] = t.garbodor
t[809] = t.melmetal
t[812] = t.rillaboom
t[815] = t.cinderace
t[818] = t.inteleon
t[823] = t.corviknight
t[826] = t.orbeetle
t[834] = t.drednaw
t[839] = t.coalossal
t[841] = t.flapple
t[842] = t.appletun
t[844] = t.sandaconda
t[849] = t.toxtricity
t[851] = t.centiskorch
t[858] = t.hatterene
t[861] = t.grimmsnarl
t[869] = t.alcremie
t[879] = t.copperajah
t[884] = t.duraludon
 
return t
79 548

contributi