Content added Content deleted
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
p.getLootTable = function(frame) |
p.getLootTable = function(frame) |
||
for index, data in pairs(people) do |
|||
return lootTable[2] |
|||
for key, value in pairs(data) do |
|||
return value |
|||
end |
|||
end |
|||
end |
end |
||
return p |
return p |
Revision as of 21:54, 27 November 2021
This module retrieves data from the "Loot tables.json" template according to the {{PAGENAME}} (usually, an NPC name) provided as an argument value.