Update
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user