62 737
modifications
Ajout des interactions. Faire le reste des tests. Voir pour les notes |
Aucun résumé des modifications |
||
Ligne 86 : | Ligne 86 : | ||
description = "Ce personnage est une recrue du tutoriel de ''[[Fallout Tactics]]''." | description = "Ce personnage est une recrue du tutoriel de ''[[Fallout Tactics]]''." | ||
}, | }, | ||
[" | ["médecin"] = { | ||
checkIfYes = true, | checkIfYes = true, | ||
image = "LivingAnatomy.png", | image = "LivingAnatomy.png", | ||
description = "Ce personnage est un | description = "Ce personnage est un médecin.", | ||
note = function(args) | note = function(args) | ||
local note | local note | ||
local services = {} | local services = {} | ||
if args["restaure | if args["restaure la santé"] == OUI then table.insert(services, "Il restaure les points de vie.") end | ||
if args["retire les radiations"] == OUI then table.insert(services, " | if args["retire les radiations"] == OUI then table.insert(services, "Il retire les radiations.") end | ||
if args["soigne les infirmités"] == OUI then table.insert(services, " | if args["soigne les infirmités"] == OUI then table.insert(services, "Il soigne les infirmités.") end | ||
if args["soigne les maladies"] == OUI then table.insert(services, " | if args["soigne les maladies"] == OUI then table.insert(services, "Il soigne les maladies.") end | ||
if args["soigne les mutations"] == OUI then table.insert(services, " | if args["soigne les mutations"] == OUI then table.insert(services, "Il soigne les mutations.") end | ||
if args["reconstruction faciale"] == OUI then table.insert(services, " | if args["reconstruction faciale"] == OUI then table.insert(services, "Il propose une reconstruction faciale.") end | ||
if #services > 0 then | if #services > 0 then | ||
res = mw.html.create( 'ul' ) | res = mw.html.create( 'ul' ) | ||
Ligne 250 : | Ligne 250 : | ||
end | end | ||
description = mw.html.create( 'p' ) | description = mw.html.create( 'p' ) | ||
:wikitext( description ) | :wikitext( description ) | ||
:done() | :done() | ||
Ligne 259 : | Ligne 258 : | ||
note = note(args) | note = note(args) | ||
end | end | ||
end | end | ||
Ligne 268 : | Ligne 263 : | ||
:addClass( 'avt-interactions-row' ) | :addClass( 'avt-interactions-row' ) | ||
:node(image) | :node(image) | ||
:node(description) | :tag( 'div' ) | ||
:addClass( 'avt-interactions-text' ) | |||
:node(description) | |||
:node(note) | |||
:done() | :done() | ||
end | end | ||
Ligne 288 : | Ligne 285 : | ||
for i, key in ipairs(keys) do | for i, key in ipairs(keys) do | ||
local def = data[key:lower()] | local def = data[key:lower()] | ||
if not checkIfYes or args.key:lower() == OUI then | if def and (not checkIfYes or args.key:lower() == OUI) then | ||
isEmpty = false | isEmpty = false | ||
res:node(buildRow(args, def)) | res:node(buildRow(args, def)) |
modifications