This commit is contained in:
parent
938ba358b6
commit
6109bffb6d
3 changed files with 15 additions and 11 deletions
|
@ -2,4 +2,5 @@ fireattack
|
||||||
fly
|
fly
|
||||||
gethit
|
gethit
|
||||||
idlebreathe
|
idlebreathe
|
||||||
spellattack
|
spellattack
|
||||||
|
death
|
|
@ -237,7 +237,7 @@ void CNpcFlyingDutchmanEnemy::processClose( int _frames )
|
||||||
newPos.vy -= 50;
|
newPos.vy -= 50;
|
||||||
projectile->init( newPos, heading );
|
projectile->init( newPos, heading );
|
||||||
projectile->setGraphic( FRM__SNAKEBILE );
|
projectile->setGraphic( FRM__SNAKEBILE );
|
||||||
projectile->setSpeed( 5 );
|
projectile->setSpeed( 6 );
|
||||||
|
|
||||||
m_fireCount++;
|
m_fireCount++;
|
||||||
|
|
||||||
|
@ -315,11 +315,14 @@ void CNpcFlyingDutchmanEnemy::processClose( int _frames )
|
||||||
|
|
||||||
void CNpcFlyingDutchmanEnemy::processShotDeathEnd( int _frames )
|
void CNpcFlyingDutchmanEnemy::processShotDeathEnd( int _frames )
|
||||||
{
|
{
|
||||||
CNpcEnemy::processShotDeathEnd( _frames );
|
if ( !m_animPlaying )
|
||||||
|
|
||||||
if ( isSetToShutdown() )
|
|
||||||
{
|
{
|
||||||
CGameScene::setBossHasBeenKilled();
|
CNpcEnemy::processShotDeathEnd( _frames );
|
||||||
|
|
||||||
|
if ( isSetToShutdown() )
|
||||||
|
{
|
||||||
|
CGameScene::setBossHasBeenKilled();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -423,7 +426,7 @@ void CNpcFlyingDutchmanEnemy::collidedWith(CThing *_thisThing)
|
||||||
|
|
||||||
drawAttackEffect();
|
drawAttackEffect();
|
||||||
|
|
||||||
m_invulnerableTimer = 2 * GameState::getOneSecondInFrames();
|
m_invulnerableTimer = 4 * GameState::getOneSecondInFrames();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -457,7 +460,7 @@ u8 CNpcFlyingDutchmanEnemy::hasBeenAttacked()
|
||||||
{
|
{
|
||||||
if ( m_controlFunc != NPC_CONTROL_SHOT )
|
if ( m_controlFunc != NPC_CONTROL_SHOT )
|
||||||
{
|
{
|
||||||
m_invulnerableTimer = 2 * GameState::getOneSecondInFrames();
|
m_invulnerableTimer = 4 * GameState::getOneSecondInFrames();
|
||||||
|
|
||||||
m_controlFunc = NPC_CONTROL_SHOT;
|
m_controlFunc = NPC_CONTROL_SHOT;
|
||||||
m_state = NPC_GENERIC_HIT_CHECK_HEALTH;
|
m_state = NPC_GENERIC_HIT_CHECK_HEALTH;
|
||||||
|
|
|
@ -980,14 +980,14 @@ CNpcEnemy::NPC_DATA CNpcEnemy::m_data[NPC_UNIT_TYPE_MAX] =
|
||||||
NPC_CLOSE_NONE,
|
NPC_CLOSE_NONE,
|
||||||
NPC_TIMER_NONE,
|
NPC_TIMER_NONE,
|
||||||
false,
|
false,
|
||||||
3,
|
5,
|
||||||
2048,
|
2048,
|
||||||
DETECT_ALL_COLLISION,
|
DETECT_ALL_COLLISION,
|
||||||
DAMAGE__HIT_ENEMY,
|
DAMAGE__HIT_ENEMY,
|
||||||
50,
|
50,
|
||||||
ANIM_FLYINGDUTCHMAN_FLY,
|
ANIM_FLYINGDUTCHMAN_FLY,
|
||||||
NPC_SHOT_GENERIC,
|
NPC_SHOT_GENERIC,
|
||||||
0,
|
ANIM_FLYINGDUTCHMAN_DEATH,
|
||||||
ANIM_FLYINGDUTCHMAN_GETHIT,
|
ANIM_FLYINGDUTCHMAN_GETHIT,
|
||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
|
@ -995,7 +995,7 @@ CNpcEnemy::NPC_DATA CNpcEnemy::m_data[NPC_UNIT_TYPE_MAX] =
|
||||||
false,
|
false,
|
||||||
CSoundMediator::NUM_SFXIDS,
|
CSoundMediator::NUM_SFXIDS,
|
||||||
CSoundMediator::NUM_SFXIDS,
|
CSoundMediator::NUM_SFXIDS,
|
||||||
false,
|
true,
|
||||||
},
|
},
|
||||||
|
|
||||||
{ // NPC_IRON_DOGFISH
|
{ // NPC_IRON_DOGFISH
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue