Skip to content

Commit

Permalink
Merge pull request #9 from davidmc24/unobtainable-tooltip
Browse files Browse the repository at this point in the history
Display "Unobtainable" in tooltip for unobtainable pets, rather than Collected: 0/3
  • Loading branch information
GurliGebis authored Apr 12, 2024
2 parents b8f5129 + 634e7fa commit cf7269f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions BattlePetCount.lua
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,10 @@ function addon:CollectedOlderText(speciesID)
end

function addon:CollectedText(speciesID)
if not addon:CanObtainSpecies(speciesID) then
return L["UNOBTAINABLE"]
end

if self.db.profile.useOlderText then
return self:CollectedOlderText(speciesID)
end
Expand Down
1 change: 1 addition & 0 deletions Locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ L["ALSO_OWN_COLON"] = "Also Own: "
L["UPGRADE"] = "Upgrade"
L["OWNED"] = "Owned"
L["UNOWNED"] = "Unowned"
L["UNOBTAINABLE"] = "Unobtainable"
L["OPT_HEADER_BATTLE"] = "Battle"
L["OPT_HEADER_WORLD"] = "World"
L["OPT_HEADER_ITEMS"] = "Items"
Expand Down

0 comments on commit cf7269f

Please sign in to comment.