1
This commit is contained in:
parent
bad4c837ef
commit
507a6d469f
@ -24,7 +24,6 @@ void AIComponent::SetAiMode(int ai_mode)
|
||||
|
||||
int AIComponent::GetAiLevel()
|
||||
{
|
||||
return 1;
|
||||
return ai_level_;
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,8 @@ void AndroidNewAI::Update(int delta_time)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (hum->room->GetGasData().gas_mode == GasInactive) {
|
||||
if (hum->room->GetGasData().gas_mode == GasInactive ||
|
||||
hum->room->GetGasData().gas_mode == GasJump) {
|
||||
DefaultAi();
|
||||
return;
|
||||
}
|
||||
@ -209,10 +210,10 @@ void AndroidNewAI::DoAttackOldAI()
|
||||
bool shot_ok = false;
|
||||
sender->Shot(shot_dir, shot_ok, DEFAULT_FLY_DISTANCE);
|
||||
}
|
||||
}
|
||||
old_ai_data_.last_target.Attach(enemy);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void AndroidNewAI::UpdateNewBieNpc()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user