19 lines
361 B
Python
19 lines
361 B
Python
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
|
|
from entities.entity import Entity
|
|
|
|
|
|
@dataclass(slots=True)
|
|
class Item(Entity):
|
|
category: str
|
|
power_bonus: int = 0
|
|
armor_bonus: int = 0
|
|
crit_bonus: float = 0.0
|
|
evasion_bonus: float = 0.0
|
|
effect: str = ""
|
|
amount: int = 0
|
|
duration: int = 0
|
|
radius: int = 0
|