Skip to content

Commit

Permalink
[WarcraftLogs] Add Phase 4 + Zul'Gurub
Browse files Browse the repository at this point in the history
  • Loading branch information
aikaterna authored Apr 22, 2020
1 parent c8886e2 commit 909d28f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions warcraftlogs/warcraftlogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, bot):
self.bot = bot
self.config = Config.get_conf(self, 2713931001, force_registration=True)
self.session = aiohttp.ClientSession()
self.zones = [1002, 1001, 1000]
self.zones = [1003, 1002, 1001, 1000]
self.partitions = [2, 1]

default_user = {
Expand Down Expand Up @@ -280,8 +280,10 @@ def get_zone(zone):
zone_name = "MoltenCore"
elif zone == 1001:
zone_name = "Onyxia"
else:
elif zone == 1002:
zone_name = "BWL"
else:
zone_name = "ZG"
return zone_name

@staticmethod
Expand All @@ -294,13 +296,15 @@ def clean_name(zone_and_phase):
zone_name = "Molten Core"
elif zone_name == "BWL":
zone_name = "Blackwing Lair"
elif zone_name == "ZG":
zone_name = "Zul'Gurub"
else:
zone_name = zone_name

if phase_num == "1":
phase_num = "Phase 1 & 2"
else:
phase_num = "Phase 3"
phase_num = "Phase 3 & 4"
return zone_name, phase_num

@staticmethod
Expand Down

0 comments on commit 909d28f

Please sign in to comment.