Skip to content

feat: add native inventory upgrade support#30

Open
TckTcm wants to merge 1 commit into
apoguita:mainfrom
TckTcm:main
Open

feat: add native inventory upgrade support#30
TckTcm wants to merge 1 commit into
apoguita:mainfrom
TckTcm:main

Conversation

@TckTcm

@TckTcm TckTcm commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds native inventory upgrade support required by the Python inventory widgets.

This exposes the native Guild Wars item-upgrade flow to Python so widgets can select a hero inventory target and apply armor/weapon upgrades without mouse-click emulation.

Changes

  • Added native inventory upgrade bindings:
    • GetInventoryIDFromAgent
    • IsInventoryIDValid
    • GetEquippedItemID
    • GetUpgradeSlot
    • ValidateUpgrade
    • ApplyUpgrade
  • Added party bindings for the inventory equipment panel:
    • GetInventorySelectedAgentID
    • GetInventoryEquipmentFrameID
  • Resolved the required native client functions for:
    • upgrade validation
    • upgrade begin/add/end order flow
    • agent-to-inventory lookup
    • equipped item lookup
    • inventory table validation
  • Added guards to prevent stale upgrade UI messages after native upgrade requests.
  • Added safety checks before accessing equipped inventory data.
  • Hardened MoveItem by verifying that the source item is still in its source bag before issuing the native move.
  • Fixed item interaction precedence for storage-backed items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant