Fix a bug where hp recovery when at full health still applied passive hp recovery effects. Fix bug with volume transitions not respecting the user's set volume controls when adjusting audio events. Add debris spawning for second bonus boss. Release Build 9522.
This commit is contained in:
@@ -97,7 +97,7 @@ void Monster::STRATEGY::ZEPHY(Monster&m,float fElapsedTime,std::string strategy)
|
||||
});
|
||||
}break;
|
||||
case IDLE:{
|
||||
const int randomAttackChoice=1;
|
||||
const int randomAttackChoice=2;
|
||||
|
||||
switch(randomAttackChoice){
|
||||
case 0:{
|
||||
@@ -273,7 +273,17 @@ void Monster::STRATEGY::ZEPHY(Monster&m,float fElapsedTime,std::string strategy)
|
||||
game->SetWindSpeed({});
|
||||
}
|
||||
if(m.F(A::SHOOT_TIMER)<=0.f){
|
||||
vf2d debrisSpawningOffset={-200.f,util::random(WINDOW_SIZE.y)-WINDOW_SIZE.y/2.f}; //Assume left landing site.
|
||||
if(!LeftLandingSite)debrisSpawningOffset*=-1.f;
|
||||
|
||||
vf2d debrisSpd={util::random_range(ConfigFloatArr("Wind Attack.Wind Projectile X Speed Range",0),ConfigFloatArr("Wind Attack.Wind Projectile X Speed Range",1)),util::random_range(ConfigFloatArr("Wind Attack.Wind Projectile Y Speed Range",0),ConfigFloatArr("Wind Attack.Wind Projectile Y Speed Range",1))};
|
||||
if(!LeftLandingSite)debrisSpd*=-1.f;
|
||||
|
||||
const float sizeMultiplier=util::random_range(0.75f,1.25f);
|
||||
|
||||
CreateBullet(Debris)(m.GetPos()+debrisSpawningOffset,debrisSpd,ConfigInt("Wind Attack.Debris Damage"),ConfigFloat("Wind Attack.Debris Radius")*sizeMultiplier,ConfigFloat("Wind Attack.Debris Knockback Multiplier"),util::random_range(util::degToRad(-180.f),util::degToRad(180.f)),INFINITE,m.OnUpperLevel(),false,WHITE,vf2d{1.f,1.f}*sizeMultiplier)EndBullet;
|
||||
|
||||
m.F(A::SHOOT_TIMER)=ConfigFloat("Wind Attack.Wind Projectile Spawn Rate");
|
||||
}
|
||||
}break;
|
||||
case HALFHEALTH_PHASE:{
|
||||
|
||||
Reference in New Issue
Block a user