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

master
sigonasr2 1 month ago
parent f6c76b3881
commit 594dd352ec
  1. 7
      Adventures in Lestoria/OctopusArm.cpp
  2. 2
      Adventures in Lestoria/Version.h
  3. BIN
      x64/Release/Adventures in Lestoria.exe

@ -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:{

@ -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

Loading…
Cancel
Save