gw2-api / issues

14 stars 0 forks source link

Missing `upgrade_slot_indices` in v2/characters equipment #77

Open sliekens opened 5 months ago

sliekens commented 5 months ago

Current Behavior

Currently, there is a discrepancy between two-handed items in inventory and equipped two-handed items:

Expected Behavior

Equipped two-handed items should also have upgrade_slot_indices to indicate which slots of a two-handed weapon are occupied.

Steps To Reproduce

You need a two-handed weapon with a single sigil in the second upgrade slot.

Response from /characters/:id/inventory when the item is in your inventory:

{
  "id": 29139,
  "count": 1,
  "upgrades": [
    24613
  ],
  "upgrade_slot_indices": [
    1
  ],
  "binding": "Account"
}

Response from /characters/:id/equipmenttabs/active when the item is equipped:

(The upgrade is correct but it's impossible to know which slot is occupied.)

{
  "id": 29139,
  "slot": "WeaponA1",
  "upgrades": [
    24613
  ],
  "binding": "Account",
  "location": "Equipped"
}

Happening since

No response

Anything else?

The game client itself shows the wrong slot in the item tooltip:

image

The item customization panel (right click -> Customize) does however show the correct slot:

image