Skip to content

Commit

Permalink
fix kyurem, no hatched egg icons, update aiomysql
Browse files Browse the repository at this point in the history
  • Loading branch information
ccev committed Dec 24, 2021
1 parent 865fd4f commit 6bee7f6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
aiomysql==0.0.21
aiomysql==0.0.22
arrow==1.1.0
dateparser==1.0.0
fuzzywuzzy==0.18.0
Expand Down
2 changes: 1 addition & 1 deletion taubsi/core/pogo.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import arrow
import discord
from PIL import Image, ImageDraw
from pogodata.objects import Move

from taubsi.pogodata import Move
from taubsi.utils.utils import asyncget, calculate_cp
from taubsi.core.logging import log
from taubsi.pogodata import Pokemon
Expand Down
4 changes: 2 additions & 2 deletions taubsi/core/uicons.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def pokemon(self, pokemon: Pokemon, shiny: bool = False, iconset: Optional[IconS

def egg(self, raid: Raid, iconset: Optional[IconSet] = None) -> str:
args = [("", raid.level)]
if raid.has_hatched:
args.append(("h", ""))
# if raid.has_hatched:
# args.append(("h", ""))
return self.get(UIconCategory.RAID_EGG, iconset, args)

def raid(self, raid: Raid, shiny_chance: int = 0, iconset: Optional[IconSet] = None) -> str:
Expand Down
4 changes: 4 additions & 0 deletions taubsi/pogodata/pokemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ def __bool__(self):

@property
def name(self):
# Niantic kinda messed up Kyurem form names
if self.id == 646:
return self.form_name

if not self.form_name:
return self.mon_name
else:
Expand Down

0 comments on commit 6bee7f6

Please sign in to comment.