diff --git a/scripts/exportlegends.lua b/scripts/exportlegends.lua index 25ee48de6..e94b6f392 100644 --- a/scripts/exportlegends.lua +++ b/scripts/exportlegends.lua @@ -26,7 +26,7 @@ local MAPS = { "Diplomacy", } -getItemSubTypeName = function (itemType, subType) +function getItemSubTypeName(itemType, subType) if (dfhack.items.getSubtypeCount(itemType)) <= 0 then return tostring(-1) end @@ -38,7 +38,7 @@ getItemSubTypeName = function (itemType, subType) end end -findEntity = function (id) +function findEntity(id) for k,v in ipairs(df.global.world.entities.all) do if (v.id == id) then return v