Skip to content
Snippets Groups Projects
Commit 776852d2 authored by magicfelix's avatar magicfelix
Browse files

Allow categories to have a display name

parent caa8c868
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,8 @@ end
function Game.get_stats(self, target)
local output = self.display_name .. " statistics of " .. target
for i, category in ipairs(self.categories) do
output = output .. "\n" .. category .. ": " .. self:get_stat(target, category)
for c_name, category in pairs(self.categories) do
output = output .. "\n" .. category.display_name .. ": " .. self:get_stat(target, c_name)
end
return true, output
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment