« Module:Infobox/Consommable » : différence entre les versions

Kharmitch (discussion | contributions)
mAucun résumé des modifications
Kharmitch (discussion | contributions)
mAucun résumé des modifications
Ligne 8 : Ligne 8 :
if perkLink and perkEffect then
if perkLink and perkEffect then
row = { type = 'row', label = function(localdata) return perkLink end, value = 'effets aptitude' .. index }
row = {
type = 'row',
label = function(localdata) return localdata['aptitude' .. index] end,
value = function(localdata) return localdata['effets aptitude' .. index] end
}
end
end
Ligne 26 : Ligne 30 :
{ type = 'row', label = 'Radiation', value = 'radiation' },
{ type = 'row', label = 'Radiation', value = 'radiation' },
{ type = 'row', label = 'Soif', value = 'soif' }
{ type = 'row', label = 'Soif', value = 'soif' }
}},
{ type = 'table', title = 'Effets des aptitudes', collapseparameters = { collapsible = true, collapsed = true }, rows = {
{ type = 'row', label = 'Mutation', value = 'mutation' },
buildPerkRow(localdata, 1),
buildPerkRow(localdata, 2),
buildPerkRow(localdata, 3),
buildPerkRow(localdata, 4),
buildPerkRow(localdata, 5)
}},
}},
{ type = 'table', title = 'Artisanat', rows = {
{ type = 'table', title = 'Artisanat', rows = {
Ligne 40 : Ligne 52 :
{ type = 'row', label = 'Se détériore en', value = 'détériore' },
{ type = 'row', label = 'Se détériore en', value = 'détériore' },
{ type = 'row', label = 'Recette', value = 'recette' }
{ type = 'row', label = 'Recette', value = 'recette' }
}},
{ type = 'table', title = 'Effets des aptitudes', collapseparameters = { collapsible = true, collapsed = true }, rows = {
{ type = 'row', label = 'Mutation', value = 'mutation' },
buildPerkRow(localdata, 1),
buildPerkRow(localdata, 2),
buildPerkRow(localdata, 3),
buildPerkRow(localdata, 4),
buildPerkRow(localdata, 5)
}},
}},
{ type = 'table', title = 'Technique', rows = {
{ type = 'table', title = 'Technique', rows = {