What a mess

This commit is contained in:
Joan
2025-11-07 15:27:13 +01:00
parent 0b79b3ae59
commit 33cc9586c2
130 changed files with 29819 additions and 1175 deletions

View File

@@ -52,13 +52,13 @@ async def can_add_item_to_inventory(user_id: int, item_id: str, quantity: int) -
Check if an item can be added to the player's inventory.
Returns (can_add, reason_if_not)
"""
from . import database
from .api_client import api_client
player = await database.get_player(user_id)
player = await api_client.get_player(user_id)
if not player:
return False, "Player not found."
inventory = await database.get_inventory(user_id)
inventory = await api_client.get_inventory(user_id)
item_def = ITEMS.get(item_id)
if not item_def: