Faction¶
-
class
ourdestiny.d2faction(faction_request_json, faction_data_json, character_object)¶ Bases:
ourdestiny.common.d2displaypropertiesThe object that represents an in-game faction, and contains all of the data about both that faction and your relationship with them.
Parameters: - faction_request_json (dict) – The JSON obtained from the API containing live data about the character’s status with the faction
- faction_data_json (dict) – The JSON obtained from the faction hash given by the API.
- character_object (ourdestiny.d2character) – The d2character object which this object represents the relationship of.
Variables: - name (string) – The name of the faction - this might not always be what you associate the faction with (e.g Brother Vance’s faction is “Followers of Osiris”)
- description (string) – The description of the faction
- icon (string) – The link to the faction’s icon
- level (integer) – The character’s current level with this faction
- level_cap (integer) – The level cap of the faction
- next_level_at (integer) – The amount of reputation needed to get to the next level
- current_progress (integer) – The character’s current reputation progress with this faction
- daily_progress (integer) – The current daily progress with this faction
- daily_limit (integer) – The daily limit of progress with this faction
- weekly_progress (integer) – The current weekly progress with this faction
- weekly_limit (integer) – The weekly limit of progress with this faction
- progression (ourdestiny.d2progression) – The progression object for this faction’s ranks
- character_object (ourdestiny.d2character) – The d2character object that relates to this faction