Modifications

Aller à : navigation, rechercher

Module:Donnees jeu

965 octets ajoutés, 3 août 2018 à 20:13
aucun résumé de modification
local typeDonnees = trim(frame.args[3]) or "Cout"
if typeDonnees == "Cout" then
if Data[typeCarteStr] == nil then
return typeCarteStr .. " : non défini"
end
if Data[typeCarteStr][nomCarteStr] == nil then
return typeCarteStr .. " - " .. nomCarteStr .. " : non défini"
end
if Data[typeCarteStr][nomCarteStr][typeDonnees] == nil then
return typeCarteStr .. " - " .. nomCarteStr .. " - " .. typeDonnees .. " : non défini"
end
return Data[typeCarteStr][nomCarteStr][typeDonnees]
end
if typeDonnees == "Amelioration" then
retour = "== Améliorations ==\n"
if Data[typeCarteStr] == nil then
return typeCarteStr .. " : non défini"
end
if Data[typeCarteStr][nomCarteStr] == nil then
return typeCarteStr .. " - " .. nomCarteStr .. " : non défini"
end
if Data[typeCarteStr][nomCarteStr][typeDonnees] == nil then
return typeCarteStr .. " - " .. nomCarteStr .. " - " .. typeDonnees .. " : non défini"
end
for k, a in pairs (Data[typeCarteStr][nomCarteStr][typeDonnees]) do
retour = retour .. "* " .. AmeliorationType[k].icone .. " " .. AmeliorationType[k].lien .. " x " .. a .. "\n"
end
if retour == "== Améliorations ==\n" then
retour = retour .. "* Aucune\n"
end
return retour

Menu de navigation