Modifications

Aller à : navigation, rechercher

Module:Collection/Affichage

1 411 octets ajoutés, 19 janvier 2018 à 13:57
aucun résumé de modification
local p = {}
local Boite = mw.loadData('Module:Collection/Boite')
local Vaisseau = mw.loadData('Module:Collection/Vaisseau')
 
local Faction = {}
Faction["Alliance rebelle"] = {
nom = "Alliance rebelle",
icone = "[[Fichier:Logo_alliance_rebelle.png]]",
}
Faction["Racails et scélérats"] = {
nom = "Racails et scélérats",
icone = "[[Fichier:Logo_empire.png]]",
}
Faction["Racails et scélérats"] = {
nom = "Racails et scélérats",
icone = "[[Fichier:Logo_racaille.png]]",
}
Faction["Racails et scélérats"] = {
nom = "Racails et scélérats",
icone = "[[Fichier:Logo_resistance.png]]",
}
Faction["Racails et scélérats"] = {
nom = "Racails et scélérats",
icone = "[[Fichier:Logo_premier_ordre.png]]",
}
function p.affichageVaisseauListe(vaissCollecTab, affIfZero)
end
end
end
 
return retour
end
 
function p.affichageVaisseauByFaction(vaissCollecTab, affIfZero)
retour = ""
for kFac, vFac in pairs (Faction) do
affLogoFac = false
for kVai, vVai in pairs (vaissCollecTab) do
if ((v ~= 0) or (affIfZero == "true")) and (Vaisseau[k].factiondefaut == vFac.nom) then
if affLogoFac == false then
affLogoFac = true
retour = retour .. vFac.icone .." "
end
if Vaisseau[k] ~= nil then
retour = retour .. Vaisseau[k].icone .. " x " .. v .. " "
end
end
end
retour = retour .. "\n"
end

Menu de navigation