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.devices
attribute.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
CacheObject
with only the name set, denoting the affected part of the champion.The usual names you can find here are
Weapon
andArmor
, orUnknown
in cases where this information couldn’t be parsed.- Type
Union[Ability, CacheObject]
-
champion
¶ The champion this device belongs to.
This is a
CacheObject
with incomplete cache, andNone
for shop items.- Type
Optional[Union[Champion, CacheObject]]
-
unlocked_at
¶ The champion’s mastery level required to unlock this device. Applies only to talents.
0
means it’s unlocked by default.- Type
-
-
class
arez.
Loadout
[source]¶ Represents a Champion’s Loadout.
You can get this from the
PartialPlayer.get_loadouts
method.-
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
CacheObject
with 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.
CacheObject
with incomplete cache.- Type
Union[Device, CacheObject]
-
description
()[source]¶ The formatted card’s description, based on the points assigned.
If the
card
is 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
CacheObject
with the name and ID set.None
when 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.
CacheObject
with incomplete cache.- Type
Union[Device, CacheObject]
-
description
()[source]¶ The formatted item’s description, based on it’s level.
If the
item
is aCacheObject
, this will be an empty string.- Type
-