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
function getitemType(item)
if item:getSubtype() ~= -1 then
itemType = dfhack.items.getSubtypeDef(item:getType(),item:getSubtype()).id
else itemType = df.item_type[item:getType()]
end
return itemType
if item:getSubtype() ~= -1 then
itemType = dfhack.items.getSubtypeDef(item:getType(),item:getSubtype()).id
else
itemType = df.item_type[item:getType()]
end
return itemType
end
function handler(table)