Items and Loadouts¶
-
class
arez.Device[source]¶ Represents a Device - those are usually cards, talents and shop items.
You can find these on the
CacheEntry.devicesattribute.Inherits from
CacheObject.-
type¶ The type of the device.
- Type
-
raw_description¶ The raw device’s description, possibly containting scale placeholder fields.
See also:
description.- Type
-
ability¶ The ability this device affects, or a
CacheObjectwith only the name set, denoting the affected part of the champion.The usual names you can find here are
WeaponandArmor, orUnknownin cases where this information couldn’t be parsed.- Type
Union[Ability, CacheObject]
-
champion¶ The champion this device belongs to.
This is a
CacheObjectwith incomplete cache, andNonefor shop items.- Type
Optional[Union[Champion, CacheObject]]
-
unlocked_at¶ The champion’s mastery level required to unlock this device. Applies only to talents.
0means it’s unlocked by default.- Type
-
-
class
arez.Loadout[source]¶ Represents a Champion’s Loadout.
You can get this from the
PartialPlayer.get_loadoutsmethod.-
player¶ The player this loadout belongs to.
- Type
Union[PartialPlayer, Player]
-
champion¶ The champion this loadout belongs to.
With incomplete cache, this will be a
CacheObjectwith the name and ID set.- Type
Union[Champion, CacheObject]
-
cards¶ A list of loadout cards this loadout consists of.
- Type
List[LoadoutCard]
-
-
class
arez.LoadoutCard[source]¶ Represents a Loadout Card.
-
card¶ The actual card that belongs to this loadout.
CacheObjectwith incomplete cache.- Type
Union[Device, CacheObject]
-
description()[source]¶ The formatted card’s description, based on the points assigned.
If the
cardis aCacheObject, this will be an empty string.- Type
-
-
class
arez.MatchLoadout[source]¶ Represents a loadout used in a match.
-
cards¶ A list of loadout cards used.
Will be empty if the player hasn’t picked a loadout during the match.
- Type
List[LoadoutCard]
-
talent¶ The talent used.
With incomplete cache, this will be a
CacheObjectwith the name and ID set.Nonewhen the player hasn’t picked a talent during the match.- Type
Optional[Union[Device, CacheObject]]
-
passive¶ The passive used. Currently, this only applies to Octavia, but may affect other champions in the future.
- Type
Optional[Passive]
-
-
class
arez.MatchItem[source]¶ Represents an item shop’s purchase.
-
item¶ The purchased item.
CacheObjectwith incomplete cache.- Type
Union[Device, CacheObject]
-
description()[source]¶ The formatted item’s description, based on it’s level.
If the
itemis aCacheObject, this will be an empty string.- Type
-