item ==== .. py:module:: wow.models.item .. autoapi-nested-parse:: Models for the Item, Item Class and Item Set APIs. .. py:class:: ItemClassIndex Bases: :py:obj:`wow.models._common.Document` Every item class, such as Weapon or Consumable. .. py:attribute:: item_classes :type: tuple[wow.models._common.Ref, ...] .. py:class:: ItemClass Bases: :py:obj:`wow.models._common.Document` An item class with its subclasses. A class with no subclasses, such as WoW Token, lists none. .. py:attribute:: id :type: int .. py:attribute:: name :type: str .. py:attribute:: item_subclasses :type: tuple[wow.models._common.Ref, ...] :value: () .. py:class:: ItemSetIndex Bases: :py:obj:`wow.models._common.Document` Every item set. .. py:attribute:: item_sets :type: tuple[wow.models._common.Ref, ...] .. py:class:: ItemSetEffect Bases: :py:obj:`wow.models._common.Model` One bonus an item set grants at a piece-count threshold. ``is_active`` is set only in a character's equipment, when the character wears enough pieces for the bonus. .. py:attribute:: display_string :type: str .. py:attribute:: required_count :type: int .. py:attribute:: is_active :type: bool :value: False .. py:class:: ItemSet Bases: :py:obj:`wow.models._common.Document` An equipment set and the bonuses wearing pieces of it grants. .. py:attribute:: id :type: int .. py:attribute:: name :type: str .. py:attribute:: items :type: tuple[wow.models._common.Ref, ...] .. py:attribute:: effects :type: tuple[ItemSetEffect, ...] :value: () .. py:class:: ItemDisplayValue Bases: :py:obj:`wow.models._common.Model` An integer value with its rendered tooltip label, such as durability, item level or weapon speed. .. py:attribute:: display_string :type: str .. py:attribute:: value :type: int .. py:class:: ItemDps Bases: :py:obj:`wow.models._common.Model` A weapon's damage-per-second rating with its rendered tooltip label. .. py:attribute:: display_string :type: str .. py:attribute:: value :type: float .. py:class:: ItemPlayableRequirement Bases: :py:obj:`wow.models._common.Model` The classes, or the races, that can use an item. .. py:attribute:: display_string :type: str .. py:attribute:: links :type: tuple[wow.models._common.Ref, ...] .. py:class:: ItemReputationRequirement Bases: :py:obj:`wow.models._common.Model` The reputation standing an item needs. ``min_reputation_level`` counts tiers up from Hated, which is 0. .. py:attribute:: faction :type: wow.models._common.Ref .. py:attribute:: min_reputation_level :type: int .. py:attribute:: display_string :type: str .. py:class:: ItemAbilityRequirement Bases: :py:obj:`wow.models._common.Model` A spell a character must know before using an item, such as a riding skill. .. py:attribute:: spell :type: wow.models._common.Ref .. py:attribute:: display_string :type: str .. py:class:: ItemFactionRequirement Bases: :py:obj:`wow.models._common.Model` The one faction, Horde or Alliance, that can use an item. .. py:attribute:: value :type: wow.models._common.TypedName .. py:attribute:: display_string :type: str .. py:class:: ItemHolidayRequirement Bases: :py:obj:`wow.models._common.Model` The world event an item needs, such as Love is in the Air. .. py:attribute:: display_string :type: str .. py:class:: ItemRequirements Bases: :py:obj:`wow.models._common.Model` What a character needs before equipping an item. .. py:attribute:: level :type: ItemDisplayValue | None :value: None .. py:attribute:: playable_classes :type: ItemPlayableRequirement | None :value: None .. py:attribute:: playable_races :type: ItemPlayableRequirement | None :value: None .. py:attribute:: reputation :type: ItemReputationRequirement | None :value: None .. py:attribute:: skill :type: ItemSkillRequirement | None :value: None .. py:attribute:: ability :type: ItemAbilityRequirement | None :value: None .. py:attribute:: faction :type: ItemFactionRequirement | None :value: None .. py:attribute:: holiday :type: ItemHolidayRequirement | None :value: None .. py:class:: ItemPreviewSpell Bases: :py:obj:`wow.models._common.Model` A spell an item grants or procs, with the tooltip text describing it. .. py:attribute:: spell :type: wow.models._common.Ref .. py:attribute:: description :type: str .. py:attribute:: display_color :type: ItemStatColor | None :value: None .. py:class:: ItemStatColor Bases: :py:obj:`wow.models._common.Model` The RGBA color the tooltip renders a stat line in. .. py:attribute:: r :type: int .. py:attribute:: g :type: int .. py:attribute:: b :type: int .. py:attribute:: a :type: float .. py:class:: ItemStatDisplay Bases: :py:obj:`wow.models._common.Model` A stat's rendered label and tooltip color. .. py:attribute:: display_string :type: str .. py:attribute:: color :type: ItemStatColor .. py:class:: ItemStat Bases: :py:obj:`wow.models._common.Model` One stat line on an item's tooltip, such as ``+5 Agility``. A few lines, such as resistances, have only text. .. py:attribute:: display :type: ItemStatDisplay .. py:attribute:: type :type: wow.models._common.TypedName | None :value: None .. py:attribute:: value :type: int | None :value: None .. py:attribute:: is_equip_bonus :type: bool :value: False .. py:attribute:: is_hidden :type: bool :value: False .. py:class:: ItemArmor Bases: :py:obj:`wow.models._common.Model` An armor or a block value line on an item's tooltip. .. py:attribute:: value :type: int .. py:attribute:: display :type: ItemStatDisplay .. py:class:: ItemSellPriceStrings Bases: :py:obj:`wow.models._common.Model` A sell price split into the coins the tooltip shows. .. py:attribute:: header :type: str .. py:attribute:: gold :type: str .. py:attribute:: silver :type: str .. py:attribute:: copper :type: str .. py:class:: ItemSellPrice Bases: :py:obj:`wow.models._common.Model` What a vendor pays for an item, in copper, with its tooltip text. .. py:attribute:: value :type: int .. py:attribute:: display_strings :type: ItemSellPriceStrings .. py:class:: ItemSkillRequirement Bases: :py:obj:`wow.models._common.Model` A profession skill level, such as Tailoring 300. .. py:attribute:: profession :type: wow.models._common.Ref .. py:attribute:: level :type: int .. py:attribute:: display_string :type: str .. py:class:: ItemSetRequirements Bases: :py:obj:`wow.models._common.Model` What a character needs before an item set's bonuses apply. .. py:attribute:: skill :type: ItemSkillRequirement .. py:class:: ItemPreviewSetItem Bases: :py:obj:`wow.models._common.Model` One piece of an item set, as an item's tooltip lists it. ``is_equipped`` is set only in a character's equipment, for the pieces the character wears. .. py:attribute:: item :type: wow.models._common.Ref .. py:attribute:: is_equipped :type: bool :value: False .. py:class:: ItemPreviewSet Bases: :py:obj:`wow.models._common.Model` The item set an item belongs to, as its tooltip shows it. In a character's equipment, ``display_string`` counts the pieces worn, such as ``Rotmender's Raiment (4/5)``. .. py:attribute:: item_set :type: wow.models._common.Ref .. py:attribute:: items :type: tuple[ItemPreviewSetItem, ...] .. py:attribute:: display_string :type: str .. py:attribute:: effects :type: tuple[ItemSetEffect, ...] :value: () .. py:attribute:: requirements :type: ItemSetRequirements | None :value: None .. py:class:: ItemWeaponDamage Bases: :py:obj:`wow.models._common.Model` A weapon's damage range. .. py:attribute:: min_value :type: int .. py:attribute:: max_value :type: int .. py:attribute:: display_string :type: str .. py:attribute:: damage_class :type: wow.models._common.TypedName .. py:class:: ItemWeapon Bases: :py:obj:`wow.models._common.Model` Weapon-specific tooltip data: speed, damage range and resulting DPS. Some weapons show only their damage. .. py:attribute:: damage :type: ItemWeaponDamage .. py:attribute:: attack_speed :type: ItemDisplayValue | None :value: None .. py:attribute:: dps :type: ItemDps | None :value: None .. py:class:: ItemStartsQuest Bases: :py:obj:`wow.models._common.Model` The quest that an item starts when a character uses it. .. py:attribute:: quest :type: wow.models._common.Ref .. py:attribute:: display_string :type: str .. py:class:: ItemReagent Bases: :py:obj:`wow.models._common.Model` One reagent that a recipe uses, and how many. .. py:attribute:: reagent :type: wow.models._common.Ref .. py:attribute:: quantity :type: int .. py:class:: ItemRecipe Bases: :py:obj:`wow.models._common.Model` What a recipe item makes, and the reagents it uses. .. py:attribute:: item :type: ItemPreview .. py:attribute:: reagents :type: tuple[ItemReagent, ...] .. py:attribute:: reagents_display_string :type: str .. py:class:: ItemPreview Bases: :py:obj:`wow.models._common.Model` The rendered tooltip for an item: everything the game client shows on hover. .. py:attribute:: item :type: wow.models._common.IdRef .. py:attribute:: quality :type: wow.models._common.TypedName .. py:attribute:: name :type: str .. py:attribute:: media :type: wow.models._common.IdRef .. py:attribute:: item_class :type: wow.models._common.Ref .. py:attribute:: item_subclass :type: wow.models._common.Ref .. py:attribute:: inventory_type :type: wow.models._common.TypedName .. py:attribute:: binding :type: wow.models._common.TypedName | None :value: None .. py:attribute:: unique_equipped :type: str | None :value: None .. py:attribute:: limit_category :type: str | None :value: None .. py:attribute:: name_description :type: ItemStatDisplay | None :value: None .. py:attribute:: description :type: str | None :value: None .. py:attribute:: armor :type: ItemArmor | None :value: None .. py:attribute:: shield_block :type: ItemArmor | None :value: None .. py:attribute:: weapon :type: ItemWeapon | None :value: None .. py:attribute:: stats :type: tuple[ItemStat, ...] :value: () .. py:attribute:: spells :type: tuple[ItemPreviewSpell, ...] :value: () .. py:attribute:: requirements :type: ItemRequirements | None :value: None .. py:attribute:: durability :type: ItemDisplayValue | None :value: None .. py:attribute:: charges :type: ItemDisplayValue | None :value: None .. py:attribute:: container_slots :type: ItemDisplayValue | None :value: None .. py:attribute:: expiration_time_left :type: ItemDisplayValue | None :value: None .. py:attribute:: level :type: ItemDisplayValue | None :value: None .. py:attribute:: sell_price :type: ItemSellPrice | None :value: None .. py:attribute:: set_ :type: ItemPreviewSet | None .. py:attribute:: recipe :type: ItemRecipe | None :value: None .. py:attribute:: item_starts_quest :type: ItemStartsQuest | None :value: None .. py:attribute:: crafting_reagent :type: str | None :value: None .. py:attribute:: toy :type: str | None :value: None .. py:attribute:: bonus_list :type: tuple[int, ...] :value: () .. py:attribute:: context :type: int | None :value: None .. py:attribute:: is_subclass_hidden :type: bool :value: False .. py:class:: Item Bases: :py:obj:`wow.models._common.Document` An item, Thunderfury included. .. py:attribute:: id :type: int .. py:attribute:: name :type: str .. py:attribute:: quality :type: wow.models._common.TypedName .. py:attribute:: level :type: int .. py:attribute:: required_level :type: int .. py:attribute:: media :type: wow.models._common.IdRef .. py:attribute:: item_class :type: wow.models._common.Ref .. py:attribute:: item_subclass :type: wow.models._common.Ref .. py:attribute:: inventory_type :type: wow.models._common.TypedName .. py:attribute:: is_equippable :type: bool .. py:attribute:: is_stackable :type: bool .. py:attribute:: max_count :type: int .. py:attribute:: purchase_price :type: int .. py:attribute:: purchase_quantity :type: int .. py:attribute:: sell_price :type: int .. py:attribute:: preview_item :type: ItemPreview .. py:attribute:: description :type: str | None :value: None .. py:attribute:: appearances :type: tuple[wow.models._common.IdRef, ...] :value: () .. py:class:: ItemSearchData Bases: :py:obj:`wow.models._common.Model` One item as indexed for search: every locale's name at once, no ``_links``. .. py:attribute:: id :type: int .. py:attribute:: name :type: wow.models._common.LocalizedString .. py:attribute:: quality :type: _ItemSearchLocalizedType .. py:attribute:: level :type: int .. py:attribute:: required_level :type: int .. py:attribute:: media :type: _ItemSearchIdOnly .. py:attribute:: item_class :type: _ItemSearchLocalizedRef .. py:attribute:: item_subclass :type: _ItemSearchLocalizedRef .. py:attribute:: inventory_type :type: _ItemSearchLocalizedType .. py:attribute:: is_equippable :type: bool .. py:attribute:: is_stackable :type: bool .. py:attribute:: max_count :type: int .. py:attribute:: purchase_price :type: int .. py:attribute:: purchase_quantity :type: int .. py:attribute:: sell_price :type: int .. py:attribute:: appearances :type: tuple[_ItemSearchIdOnly, ...] :value: ()