Standard function definition syntax

develop
PeridexisErrant 2015-02-13 10:08:44 +11:00
parent 74476bcd95
commit 62bec962f8
1 changed files with 2 additions and 2 deletions

@ -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