Fix Major Hawk AI transition not working properly when only one remains. Release Build 9381.

This commit is contained in:
sigonasr2 2024-05-21 05:13:20 -05:00
parent 440cc89c7b
commit 4fcc5db4af
5 changed files with 3 additions and 5 deletions

View File

@ -49,8 +49,8 @@ using A=Attribute;
void Monster::STRATEGY::MAJOR_HAWK(Monster&m,float fElapsedTime,std::string strategy){ void Monster::STRATEGY::MAJOR_HAWK(Monster&m,float fElapsedTime,std::string strategy){
//Runs the Hawk strategy and has an aggressive mode when the amount of this monster falls below an amount. //Runs the Hawk strategy and has an aggressive mode when the amount of this monster falls below an amount.
const int majorHawkCount=std::reduce(MONSTER_LIST.begin(),MONSTER_LIST.end(),0,[&](const int&acc,const std::unique_ptr<Monster>&monster){return std::move(acc)+((monster->GetName()==ConfigString("Aggressive Name Check"))?1:0);}); const int majorHawkCount=std::reduce(MONSTER_LIST.begin(),MONSTER_LIST.end(),0,[&](const int&acc,const std::unique_ptr<Monster>&monster){return std::move(acc)+((monster->IsAlive()&&monster->GetName()==ConfigString("Aggressive Name Check"))?1:0);});
if(majorHawkCount<=ConfigInt("Aggressive Hawk Count"))HAWK(m,fElapsedTime,"Major Hawk"); if(majorHawkCount<=ConfigInt("Aggressive Hawk Count"))HAWK(m,fElapsedTime,"Major Hawk");
else HAWK(m,fElapsedTime,"Hawk"); //Use normal hawk behaviors when there are too many Major Hawks. else HAWK(m,fElapsedTime,"Hawk"); //Use normal hawk behaviors when there are too many Major Hawks.
} }

View File

@ -21,7 +21,6 @@ When a monster spawns, if it spawns inside a collision tile, attempt to set it o
New Monster Sound Effects New Monster Sound Effects
DEMO DEMO
==== ====
Go back and apply new rendering code. Go back and apply new rendering code.

View File

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 1 #define VERSION_MAJOR 1
#define VERSION_MINOR 2 #define VERSION_MINOR 2
#define VERSION_PATCH 0 #define VERSION_PATCH 0
#define VERSION_BUILD 9378 #define VERSION_BUILD 9381
#define stringify(a) stringify_(a) #define stringify(a) stringify_(a)
#define stringify_(a) #a #define stringify_(a) #a

View File

@ -854,7 +854,6 @@ Monsters
# Dropdown/Rising speed in pixels per second while attacking. # Dropdown/Rising speed in pixels per second while attacking.
Attack Z Speed = 160px/s Attack Z Speed = 160px/s
Flight Charge Cooldown = 8s
Attack Wait Time = 1s Attack Wait Time = 1s
################################# #################################
##### END HAWK PROPERTY OVERRIDES ##### END HAWK PROPERTY OVERRIDES