Converted all Monster Strategy IDs to using strings instead of magic numbers, removed magic numbering system from configs.

This commit is contained in:
2023-12-18 15:40:36 -06:00
parent cb09825455
commit 455dd3a818
17 changed files with 69 additions and 90 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ All rights reserved.
INCLUDE_BULLET_LIST
INCLUDE_game
void Monster::STRATEGY::RUN_AWAY(Monster&m,float fElapsedTime,int strategyNumber){
void Monster::STRATEGY::RUN_AWAY(Monster&m,float fElapsedTime,std::string strategy){
m.targetAcquireTimer=std::max(0.f,m.targetAcquireTimer-fElapsedTime);
m.attackCooldownTimer=std::max(0.f,m.attackCooldownTimer-fElapsedTime);
geom2d::line line(m.pos,game->GetPlayer()->GetPos());