enemy: add alert memory; vision variance based on type

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I2f5c7cac72c8772e5871b99026d106b46a6a6964
This commit is contained in:
raf 2026-04-09 12:31:52 +03:00
commit 71343311eb
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
3 changed files with 90 additions and 3 deletions

View file

@ -104,6 +104,11 @@ typedef struct {
int status_chance;
int crit_chance; // crit chance percentage (0-100)
int crit_mult; // crit damage multiplier percentage (e.g. 150 = 1.5x)
// vision
int vision_range;
int alert; // 1 = aware of player, searching
int last_known_x; // last position where enemy saw player
int last_known_y;
// status effects
StatusEffect effects[MAX_EFFECTS];
int effect_count;