删除无用文件
This commit is contained in:
parent
1190220869
commit
ecf2a326d3
@ -83,6 +83,10 @@ void AndroidAI::ChangeToState(AndroidState_e to_state)
|
|||||||
|
|
||||||
void AndroidAI::DoMove()
|
void AndroidAI::DoMove()
|
||||||
{
|
{
|
||||||
|
Human* hum = (Human*)owner;
|
||||||
|
if (a8::HasBitFlag(hum->status, HS_Fly)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (owner->updated_times % 2 == 0) {
|
if (owner->updated_times % 2 == 0) {
|
||||||
Human* hum = (Human*)owner;
|
Human* hum = (Human*)owner;
|
||||||
int speed = std::max(1, (int)hum->GetSpeed());
|
int speed = std::max(1, (int)hum->GetSpeed());
|
||||||
@ -102,6 +106,11 @@ void AndroidAI::DoMove()
|
|||||||
|
|
||||||
void AndroidAI::DoAttack()
|
void AndroidAI::DoAttack()
|
||||||
{
|
{
|
||||||
|
Human* hum = (Human*)owner;
|
||||||
|
if (a8::HasBitFlag(hum->status, HS_Fly) ||
|
||||||
|
a8::HasBitFlag(hum->status, HS_Jump)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (owner->updated_times % 10 == 0) {
|
if (owner->updated_times % 10 == 0) {
|
||||||
Human* enemy = owner->room->FindEnemy((Human*)owner);
|
Human* enemy = owner->room->FindEnemy((Human*)owner);
|
||||||
if (enemy) {
|
if (enemy) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user