mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-21 11:18:08 +00:00
- Created notifyServerUnlock helper function to DRY up code - Updated lockpicking, key, biometric, bluetooth, and RFID unlocks to call server API - All unlock methods now: 1. Validate unlock client-side (minigame/item check) 2. Notify server to update player_state 3. Receive room/container data in response 4. Pass serverResponse to unlockTarget This ensures: - Server tracks all unlocks in player_state (unlockedRooms/unlockedObjects) - Room endpoint can validate access (403 if not unlocked) - Single API call returns data needed (roomData for doors, contents for containers) - Consistent behavior across all lock types