feat: implemented enemies spawning based on current region difficulty
This commit is contained in:
parent
96b5be405c
commit
9b07c70b11
8 changed files with 341 additions and 131 deletions
|
|
@ -17,13 +17,16 @@ protected:
|
|||
public:
|
||||
void register_unit(NpcUnit *unit);
|
||||
void remove_unit(NpcUnit *unit);
|
||||
void raise_difficulty(double amount);
|
||||
int get_current_difficulty() const;
|
||||
|
||||
private:
|
||||
float awareness{ 0.f };
|
||||
double difficulty{ 0.f };
|
||||
bool hunt_phase{ false };
|
||||
HashSet<NpcUnit *> units{ nullptr };
|
||||
|
||||
public:
|
||||
static String const sig_difficulty_increased;
|
||||
static String const sig_phase_changed;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue