23 lines
429 B
Python
23 lines
429 B
Python
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
|
|
from entities.entity import Entity
|
|
|
|
|
|
@dataclass(slots=True)
|
|
class Enemy(Entity):
|
|
hp: int
|
|
max_hp: int
|
|
power: int
|
|
armor: int
|
|
accuracy: int
|
|
evasion: int
|
|
crit_chance: float
|
|
speed: int
|
|
behavior: str
|
|
xp_reward: int
|
|
last_known_position: tuple[int, int] | None = None
|
|
ranged_power: int = 0
|
|
has_split: bool = False
|