Pirate Captain Ghost moves towards player. Release Build 12032.

master
sigonasr2 4 days ago
parent 071e98aecd
commit d24c016d3e
  1. 3
      Adventures in Lestoria/GhostOfPirateCaptain.cpp
  2. 2
      Adventures in Lestoria/Version.h
  3. BIN
      x64/Release/Adventures in Lestoria.exe

@ -100,7 +100,8 @@ void Monster::STRATEGY::GHOST_OF_PIRATE_CAPTAIN(Monster&m,float fElapsedTime,std
m.F(A::GHOST_SABER_TIMER)-=fElapsedTime;
if(m.B(A::FIRST_WAVE_COMPLETE)){
m.SetVelocity(util::pointTo(m.GetPos(),game->GetPlayer()->GetPos()));
m.UpdateFacingDirection(m.GetFacingDirectionToTarget(game->GetPlayer()->GetPos()));
m.SetVelocity(util::pointTo(m.GetPos(),game->GetPlayer()->GetPos())*100.f*m.GetMoveSpdMult());
const float distToPlayer{util::distance(m.GetPos(),game->GetPlayer()->GetPos())};
if(m.F(A::GHOST_SABER_TIMER)<=0.f&&distToPlayer<=ConfigPixels("Ghost Saber Activation Range")){
m.F(A::GHOST_SABER_TIMER)=ConfigFloat("Ghost Saber Cooldown");

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

Loading…
Cancel
Save