enemy: add alert memory; vision variance based on type
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I2f5c7cac72c8772e5871b99026d106b46a6a6964
This commit is contained in:
parent
f85d28e932
commit
71343311eb
3 changed files with 90 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue