This commit is contained in:
Joan
2026-02-23 15:42:21 +01:00
parent a725ae5836
commit d38d4cc288
102 changed files with 4511 additions and 4454 deletions

View File

@@ -502,6 +502,10 @@ async def get_current_location(request: Request, current_user: dict = Depends(ge
# Format interactables for response with cooldown info
interactables_data = []
for interactable in location.interactables:
# Check if locked
if getattr(interactable, 'locked', False):
continue
actions_data = []
for action in interactable.actions:
# Check cooldown status for this specific action
@@ -556,6 +560,10 @@ async def get_current_location(request: Request, current_user: dict = Depends(ge
destination_id = location.exits[direction]
destination_loc = LOCATIONS.get(destination_id)
# Check if destination is locked
if destination_loc and getattr(destination_loc, 'locked', False):
continue
if destination_loc:
# Calculate real distance using coordinates
distance = calculate_distance(