Fix GameTooltip blocking issue and translate Found string
This commit is contained in:
@@ -442,7 +442,7 @@ async def get_current_location(request: Request, current_user: dict = Depends(ge
|
||||
"id": action.id,
|
||||
"name": action.label,
|
||||
"stamina_cost": action.stamina_cost,
|
||||
"description": f"Costs {action.stamina_cost} stamina",
|
||||
"description": get_game_message('costs_stamina', locale, cost=action.stamina_cost),
|
||||
"on_cooldown": is_on_cooldown,
|
||||
"cooldown_remaining": remaining_cooldown
|
||||
})
|
||||
@@ -1053,7 +1053,7 @@ async def interact(
|
||||
"instance_id": interact_req.interactable_id,
|
||||
"action_id": interact_req.action_id,
|
||||
"cooldown_remaining": cooldown_remaining,
|
||||
"message": f"{current_user['name']} used {get_locale_string(action_display, locale)} on {get_locale_string(interactable_name, locale)}"
|
||||
"message": get_game_message('interactable_cooldown', locale, user=current_user, interactable=get_locale_string(interactable_name, locale), action=get_locale_string(action_display, locale)),
|
||||
},
|
||||
"timestamp": datetime.utcnow().isoformat()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user