Skip to content

Commit

Permalink
Add flag to query for guild or not
Browse files Browse the repository at this point in the history
  • Loading branch information
n1tr0-5urf3r committed Jun 29, 2022
1 parent 35aa53e commit 5422732
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gw2rpc/character.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,18 @@
71: "Specter",
72: "Untamed"
}
# Images for specter and catalyst are missing


class Character:
def __init__(self, mumble_data):
def __init__(self, mumble_data, query_guild=True):
self.__mumble_data = mumble_data
self.name = mumble_data["name"]
self.race = RACES[mumble_data["race"]]
self.__api_info = None
if api._authenticated:

if query_guild and api._authenticated:
self.__api_info = api.get_character(self.name)

self.profession = self.get_elite_spec()
self.profession_icon = "prof_{}".format(
self.profession.lower().replace(" ", ""))
Expand Down

0 comments on commit 5422732

Please sign in to comment.