Activity¶
-
class
ourdestiny.d2activity(activity_json, profile_object)¶ Bases:
ourdestiny.common.d2displaypropertiesA class used to represent an activity, selectable from the director
Parameters: - activity_json – The JSON obtained from the database containing information about the activity
- profile_object (ourdestiny.d2profile) – The profile object used to obtain this object
Variables: - name (string) – The name of the activity
- description (string) – The description of the activity
- icon (string) – The URL of the icon for the activity, if it has one
- hash (string) – The hash number of the activity
- is_pvp (bool) – Displays whether or not the activity is a PvP activity
- is_playlist (bool) – Displays whether or not the activity is a playlist
- light_level (integer) – The recommended light level to play this activity
- tier (integer) – The difficulty tier of the activity
- pgcr_image (string) – The URL to the post-game carnage report image for this activity
- rewards (List[List[ourdestiny.d2item]]) – The potential rewards for this activity, split into tiers as given by the API
- modifiers (list[ourdestiny.d2activitymodifier]) – The potential modifiers for this activity
-
class
ourdestiny.d2activitytype(activity_type_json)¶ Bases:
ourdestiny.common.d2displaypropertiesA class used to represent an activity type
Parameters: activity_type_json (dict) – The JSON of the activity type obtained from the database
Variables: - name (string) – The name of the activity type
- description (string) – The description of the activity type
- hash (integer) – The hash of the activity type
- icon (string) – The URL of the icon, if this activity type has one
-
class
ourdestiny.d2activitymodifier(activity_modifier_json)¶ Bases:
ourdestiny.common.d2displaypropertiesA class used to represent a modifier for an activity
Parameters: activity_modifier_json (dict) – The JSON of the activity modifier obtained from the database
Variables: - name (string) – The name of the modifier
- description (string) – The description of the modifier
- icon (string) – The URL of the icon of the modifier
- icon_sequences (list[list[string]]) – A list of lists, each containing URLs of different icons to be used in different contexts
- hash – The hash of the activity type