Update item-trigger.lua

added proper indentation
develop
AtomicChicken 2016-04-20 11:08:49 +02:00
parent 9319ebfba0
commit 0d8a80c2ec
1 changed files with 6 additions and 5 deletions

@ -65,11 +65,12 @@ function processTrigger(command)
end end
function getitemType(item) function getitemType(item)
if item:getSubtype() ~= -1 then if item:getSubtype() ~= -1 then
itemType = dfhack.items.getSubtypeDef(item:getType(),item:getSubtype()).id itemType = dfhack.items.getSubtypeDef(item:getType(),item:getSubtype()).id
else itemType = df.item_type[item:getType()] else
end itemType = df.item_type[item:getType()]
return itemType end
return itemType
end end
function handler(table) function handler(table)