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