Add random submerge time between arm attacks. Release Build 11916.

This commit is contained in:
sigonasr2 2025-01-03 01:27:35 -06:00
parent f6c76b3881
commit 594dd352ec
3 changed files with 6 additions and 3 deletions

View File

@ -200,9 +200,12 @@ void Monster::STRATEGY::OCTOPUS_ARM(Monster&m,float fElapsedTime,std::string str
case ATTACK_RECOVERY:{
m.F(A::RECOVERY_TIME)-=fElapsedTime;
if(m.F(A::RECOVERY_TIME)<=0.f){
m.PerformIdleAnimation();
m.PerformAnimation("SUBMERGE");
SETPHASE(SUBMERGE);
m.GetFloat(A::RECOVERY_TIME)=m.GetCurrentAnimation().GetTotalAnimationDuration()*util::random_range(1.f,2.f);
m.SetCollisionRadius(0.f);
m.V(A::JUMP_TARGET_POS)=m.GetPos();
m.SetStrategyDrawFunction([](AiL*game,Monster&monster,const std::string&strategy){});
SETPHASE(SEARCH);
}
}break;
case SUBMERGE:{

View File

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_PATCH 0
#define VERSION_BUILD 11914
#define VERSION_BUILD 11916
#define stringify(a) stringify_(a)
#define stringify_(a) #a