Module:Fiche de créature/Fallout 76
Ce module contient la structure du modèle {{Fiche de créature de Fallout 76}}.
local localdata = require( 'Module:Infobox/Localdata' )
--[[local tooltip = require( 'Module:Infobulle' )
agressivite_lookup = {
['0'] = { tag = "Non agressif", label = "N'engage pas les affrontements." },
['1'] = { tag = "Agressif", label = "Attaque les ennemis à vue." },
['2'] = { tag = "Très agressif", label = "Attaque les ennemis et les créatures neutres à vue." },
['3'] = { tag = "Frénétique", label = "Attaque n'importe qui à vue." }
}
assurance_lookup = {
['0'] = { tag = "Lâche", label = "Fuit ou évite les affrontements." },
['1'] = { tag = "Prudent", label = "Fuit ou évite les menaces plus faibles que lui." },
['2'] = { tag = "Normal", label = "Fuit ou évite les menaces plus fortes que lui." },
['3'] = { tag = "Courageux", label = "Fuit ou évite les affrontements s'il est sévèrement dépassé." },
['4'] = { tag = "Téméraire", label = "Ne fuit ou n'évite jamais les affrontements." }
}
assistance_lookup = {
['0'] = { tag = "N'aide personne", label = "N'aide personne lors des affrontements." },
['1'] = { tag = "Aide les alliés", label = "Aide les alliés lors des affrontements." },
['2'] = { tag = "Aide les amis", label = "Aide les amis et les alliés lors des affrontements." }
}
function formatcomportement(localdata, setting, lookup)
local comportement = localdata[setting] or '0'
comportement = lookup[agressivite] or lookup['0']
return tooltip._build({ comportement.tag, comportement.label })
end]]
return {
parts = {
{ type = "table", rows = {
{ type = "row", label = "Nom", icon = "sic", value = "nom" },
{ type = "row", label = "[[Form ID|Base ID]]", icon = "réparation", value = "baseid" },
{ type = "row", label = "[[Editor ID]]", icon = "réparation", value = "editorid" },
}},
--{ type = "table", title = "[[Attributs de l'IA Gamebryo|Comportement]]", rows = {
-- { type = "row", label = "Agressivité", icon = "poing", value = function(localdata) return agressivite(localdata) end },
-- { type = "row", label = "Assurance", icon = "confiance", value = function(localdata) return assurance(localdata) end },
-- { type = "row", label = "Assistance", icon = "groupe", value = function(localdata) return assistance(localdata) end }
--}},
{ type = "list", title = "Attaques", items = "attaque", max = 10 },
{ type = "list", title = "Capacités", items = "capacité", max = 10 },
{ type = "list", title = "Objets", prefix = "objet", max = 15 }
}
}