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