This commit is contained in:
aozhiwei 2021-04-09 11:03:46 +08:00
parent bad4c837ef
commit 507a6d469f
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,6 @@ void AIComponent::SetAiMode(int ai_mode)
int AIComponent::GetAiLevel() int AIComponent::GetAiLevel()
{ {
return 1;
return ai_level_; return ai_level_;
} }

View File

@ -68,7 +68,8 @@ void AndroidNewAI::Update(int delta_time)
} }
} }
#endif #endif
if (hum->room->GetGasData().gas_mode == GasInactive) { if (hum->room->GetGasData().gas_mode == GasInactive ||
hum->room->GetGasData().gas_mode == GasJump) {
DefaultAi(); DefaultAi();
return; return;
} }
@ -209,8 +210,8 @@ void AndroidNewAI::DoAttackOldAI()
bool shot_ok = false; bool shot_ok = false;
sender->Shot(shot_dir, shot_ok, DEFAULT_FLY_DISTANCE); sender->Shot(shot_dir, shot_ok, DEFAULT_FLY_DISTANCE);
} }
old_ai_data_.last_target.Attach(enemy);
} }
old_ai_data_.last_target.Attach(enemy);
} }
} }