Hey there,
could GetCollectibleNickname(collectibleId) return nil instead of an empty string, or would that break the UI?
it's far more convenient to write
Lua Code:
local name = GetCollectibleNickname(collectibleId) or GetCollectibleName(collectibleId)
instead of
Lua Code:
local name = GetCollectibleNickname(collectibleId)
if name == "" then GetCollectibleName(collectibleId) end