1
This commit is contained in:
parent
d0b378e17d
commit
6780aa53d5
@ -24,6 +24,7 @@ void AIComponent::SetAiMode(int ai_mode)
|
|||||||
|
|
||||||
int AIComponent::GetAiLevel()
|
int AIComponent::GetAiLevel()
|
||||||
{
|
{
|
||||||
|
return 1;
|
||||||
return ai_level_;
|
return ai_level_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -475,15 +475,11 @@ void AndroidNewAI::UpdateThinking()
|
|||||||
hum->room->IsWaitingStart() ||
|
hum->room->IsWaitingStart() ||
|
||||||
hum->HasBuffEffect(kBET_Jump) ||
|
hum->HasBuffEffect(kBET_Jump) ||
|
||||||
a8::HasBitFlag(hum->status, HS_DisableAttack)) {
|
a8::HasBitFlag(hum->status, HS_DisableAttack)) {
|
||||||
#if 1
|
|
||||||
if (hum->room->IsWaitingStart()) {
|
if (hum->room->IsWaitingStart()) {
|
||||||
ChangeToStateNewAI(ASE_Idle);
|
ChangeToStateNewAI(ASE_Idle);
|
||||||
} else {
|
} else {
|
||||||
ChangeToStateNewAI(ASE_RandomWalk);
|
ChangeToStateNewAI(ASE_RandomWalk);
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
ChangeToStateNewAI(ASE_RandomWalk);
|
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
Human* target = GetTarget();
|
Human* target = GetTarget();
|
||||||
if (target) {
|
if (target) {
|
||||||
|
@ -60,6 +60,11 @@ void Android::InternalUpdate(int delta_time)
|
|||||||
if (action_type != AT_None) {
|
if (action_type != AT_None) {
|
||||||
UpdateAction();
|
UpdateAction();
|
||||||
}
|
}
|
||||||
|
if (HasBuffEffect(kBET_Fly)) {
|
||||||
|
SetPos(room->plane.curr_pos);
|
||||||
|
room->grid_service->MoveHuman(this);
|
||||||
|
return;
|
||||||
|
}
|
||||||
ai->Update(delta_time);
|
ai->Update(delta_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,6 +55,11 @@ void Player::InternalUpdate(int delta_time)
|
|||||||
if (poisoning) {
|
if (poisoning) {
|
||||||
poisoning_time += delta_time;
|
poisoning_time += delta_time;
|
||||||
}
|
}
|
||||||
|
if (HasBuffEffect(kBET_Fly)) {
|
||||||
|
SetPos(room->plane.curr_pos);
|
||||||
|
room->grid_service->MoveHuman(this);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (HasSpecMove()) {
|
if (HasSpecMove()) {
|
||||||
_UpdateSpecMove();
|
_UpdateSpecMove();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user