#include "KoopaTroopa.h"

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

MobileAISettings N(AISettings_KoopaTroopa_Patrol) = {
    .moveSpeed = 1.5f,
    .moveTime = 25,
    .waitTime = 20,
    .alertRadius = 70.0f,
    .alertOffsetDist = 50.0f,
    .playerSearchInterval = 10,
    .chaseSpeed = 7.0f,
    .chaseRadius = 80.0f,
    .chaseOffsetDist = 60.0f,
    .unk_AI_2C = 1,
};

EvtScript N(EVS_NpcAI_KoopaTroopa_Patrol) = {
    EVT_CALL(SetSelfVar, 2, 8)
    EVT_CALL(SetSelfVar, 3, 12)
    EVT_CALL(SetSelfVar, 5, 10)
    EVT_CALL(N(KoopaPatrolAI_Main), EVT_PTR(N(AISettings_KoopaTroopa_Patrol)))
    EVT_RETURN
    EVT_END
};

NpcSettings N(NpcSettings_KoopaTroopa_Patrol) = {
    .height = 35,
    .radius = 24,
    .level = 6,
    .ai = &N(EVS_NpcAI_KoopaTroopa_Patrol),
    .onHit = &EnemyNpcHit,
    .onDefeat = &EnemyNpcDefeat,
};
