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