Isak Åslund

  • # Solo Developer

UX

  • Doubleclick / Rightclick - Equip or Unequip depending on item state.
  • Drag and Drop - Try switch if slot is occupied else move.
  • Auto-Equip - If item is picked up and correct slot is empty.
  • Auto-Pickup - if there is room in inventory.

The core of the inventory is multiple helper functions that returns a boolean to be able to chain the logic. If success returns true if fail returns false. Depending on this it can select the correct behaviour. Here is the outer most layer of this logic: