Modification de Module:Réactions
La modification peut être annulée. Veuillez vérifier les différences ci-dessous pour voir si c’est bien ce que vous voulez faire, puis publier ces changements pour finaliser l’annulation de cette modification.
Version actuelle | Votre texte | ||
Ligne 60 : | Ligne 60 : | ||
local row = '<tr><td>' .. event .. '</td>' | local row = '<tr><td>' .. event .. '</td>' | ||
for i, v in ipairs(_NPC) do | for i, v in ipairs(_NPC) do | ||
npc_reaction = args[v] | npc_reaction = args[v] | ||
reaction = _REACTIONS[npc_reaction] | if not npc_reaction then | ||
npc_reaction = 'indifférent' | |||
end | |||
reaction = _REACTIONS[npc_reaction] | |||
if not reaction then | |||
error('Réaction inconnu : ' .. npc_reaction, 0) | |||
end | |||
row = row .. '<td>' .. reaction .. '</td>' | row = row .. '<td>' .. reaction .. '</td>' | ||
end | end |