"""Item entity: identity + effect/equipment payload. Matches the tests/smoke.py contract: x, y, kind, name, category, stats(dict). ``blocks`` defaults False because items share the floor's entity list with enemies, and the AI blocker check treats a missing ``blocks`` as True — an item without this field would wrongly block movement. """ from __future__ import annotations from dataclasses import dataclass, field @dataclass(slots=True) class Item: x: int = 0 y: int = 0 kind: str = "" name: str = "" category: str = "" stats: dict = field(default_factory=dict) sprite_key: str = "" blocks: bool = False