From 62bec962f86495575fe1f68e4b6126c8ecbd6096 Mon Sep 17 00:00:00 2001 From: PeridexisErrant Date: Fri, 13 Feb 2015 10:08:44 +1100 Subject: [PATCH] Standard function definition syntax --- scripts/exportlegends.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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