Day 10 — Drop/Pickup Completion & Inventory Model Redesign
Context
With the refactor complete, today focused on finishing the Drop/Pickup milestone and stabilizing the inventory architecture.
Drop & Pickup Completion
- I implemented the full priority-based tile selection for dropping items. If no valid adjacent tile is available, the system now displays a toast message to the player. Items can also be picked up and placed into the correct inventory slot.
Inventory Model Redesign
- I refactored the inventory data model to use explicit slot-based storage rather than a virtual stack count. Each slot now stores both an Item ID and Quantity. This ensures the UI, logic, and persistence layers stay tightly aligned.

Summary
What I accomplished:
- Completed the Drop/Pickup milestone.
- Rebuilt the inventory model using explicit slot-based storage.
- Added toast notifications for invalid drop attempts.
What I learned:
- Clear data ownership prevents subtle bugs.
- User feedback (like toasts) matters even in early builds.



