|
|
@ -26,7 +26,7 @@ local MAPS = {
|
|
|
|
"Diplomacy",
|
|
|
|
"Diplomacy",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
getItemSubTypeName = function (itemType, subType)
|
|
|
|
function getItemSubTypeName(itemType, subType)
|
|
|
|
if (dfhack.items.getSubtypeCount(itemType)) <= 0 then
|
|
|
|
if (dfhack.items.getSubtypeCount(itemType)) <= 0 then
|
|
|
|
return tostring(-1)
|
|
|
|
return tostring(-1)
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -38,7 +38,7 @@ getItemSubTypeName = function (itemType, subType)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
findEntity = function (id)
|
|
|
|
function findEntity(id)
|
|
|
|
for k,v in ipairs(df.global.world.entities.all) do
|
|
|
|
for k,v in ipairs(df.global.world.entities.all) do
|
|
|
|
if (v.id == id) then
|
|
|
|
if (v.id == id) then
|
|
|
|
return v
|
|
|
|
return v
|
|
|
|