#include "Koopatrol.h"

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

MobileAISettings N(AISettings_Koopatrol_Patrol) = {
    .moveSpeed = 1.0f,
    .moveTime = 34,
    .waitTime = 50,
    .alertRadius = 90.0f,
    .alertOffsetDist = 50.0f,
    .playerSearchInterval = 2,
    .chaseSpeed = 11.0f,
    .chaseRadius = 100.0f,
    .chaseOffsetDist = 60.0f,
    .unk_AI_2C = 1,
};

EvtScript N(EVS_NpcAI_Koopatrol_Patrol) = {
    EVT_CALL(SetSelfVar, 2, 8)
    EVT_CALL(SetSelfVar, 3, 15)
    EVT_CALL(SetSelfVar, 5, 10)
    EVT_CALL(N(KoopaPatrolAI_Main), EVT_PTR(N(AISettings_Koopatrol_Patrol)))
    EVT_RETURN
    EVT_END
};

NpcSettings N(NpcSettings_Koopatrol_Patrol) = {
    .height = 40,
    .radius = 24,
    .level = 25,
    .ai = &N(EVS_NpcAI_Koopatrol_Patrol),
    .onHit = &EnemyNpcHit,
    .onDefeat = &EnemyNpcDefeat,
};
