Clean up most modern GUID usage.

This commit is contained in:
andrew6180
2024-05-20 13:13:52 -07:00
parent bd68720db3
commit 90a085acf0
5 changed files with 56 additions and 71 deletions
+1 -6
View File
@@ -1501,12 +1501,7 @@ end
---@param GUID string
---@return number
function DF:GetNpcIdFromGuid(GUID)
local npcId = select(6, strsplit("-", GUID ))
if (npcId) then
npcId = tonumber(npcId)
return npcId or 0
end
return 0
return GetCreatureIDFromGUID(GUID) or 0
end
function DF.SortOrder1(t1, t2)