#include "SkyGuy.h"

#include "world/common/enemy/ai/FlyingAI.inc.c"

MobileAISettings N(AISettings_SkyGuy) = {
    .moveSpeed = 1.8f,
    .alertRadius = 120.0f,
    .alertOffsetDist = 30.0f,
    .playerSearchInterval = 3,
    .chaseSpeed = 4.0f,
    .chaseTurnRate = 60,
    .chaseUpdateInterval = 3,
    .chaseRadius = 150.0f,
    .chaseOffsetDist = 30.0f,
    .unk_AI_2C = 1,
};

EvtScript N(EVS_NpcAI_SkyGuy) = {
    EVT_CALL(SetSelfVar, 0, 0)
    EVT_CALL(SetSelfVar, 5, -650)
    EVT_CALL(SetSelfVar, 6, 30)
    EVT_CALL(SetSelfVar, 1, 600)
    EVT_CALL(N(FlyingAI_Main), EVT_PTR(N(AISettings_SkyGuy)))
    EVT_RETURN
    EVT_END
};

NpcSettings N(NpcSettings_SkyGuy) = {
    .height = 25,
    .radius = 22,
    .level = 14,
    .ai = &N(EVS_NpcAI_SkyGuy),
    .onHit = &EnemyNpcHit,
    .onDefeat = &EnemyNpcDefeat,
    .actionFlags = AI_ACTION_JUMP_WHEN_SEE_PLAYER,
};
