#include "libforest/gbi_extensions.h"
#include "PR/gbi.h"
#include "evw_anime.h"
#include "c_keyframe.h"
#include "ac_npc.h"
#include "ef_effect_control.h"

u8 cKF_ckcb_r_npc_1_kokkuri_d1_tbl[] = {
    56, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 7, 7, 0, 7, 7, 7, 7, 0, 7, 0, 0
};

s16 cKF_kn_npc_1_kokkuri_d1_tbl[] = { 2, 2, 2, 2, 3, 4, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
                                      2, 2, 2, 2, 4, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 5, 2, 2, 2 };

s16 cKF_c_npc_1_kokkuri_d1_tbl[] = { 0,    0, 900, 0,   0, 1800, 0, 0, 1800, 0, 900, 0, 0,   0,
                                     -900, 0, 0,   900, 0, -900, 0, 0, 0,    0, 0,   0, -900 };

s16 cKF_ds_npc_1_kokkuri_d1_tbl[] = {
    1,  0,    0, 61, 0,    0, 1,  2400, 0, 61, 2400, 0,  1,  0,    0, 61, 0,    0, 1,  0,    0,   61, 0,    0,
    1,  150,  0, 31, 125,  0, 61, 150,  0, 1,  0,    16, 16, 5,    0, 46, -5,   0, 61, 0,    17,  1,  0,    0,
    61, 0,    0, 1,  -450, 0, 31, -500, 0, 61, -450, 0,  1,  0,    0, 61, 0,    0, 1,  0,    0,   61, 0,    0,
    1,  0,    0, 61, 0,    0, 1,  0,    0, 61, 0,    0,  1,  0,    0, 61, 0,    0, 1,  0,    0,   61, 0,    0,
    1,  0,    0, 61, 0,    0, 1,  0,    0, 61, 0,    0,  1,  -450, 0, 31, -500, 0, 61, -445, 0,   1,  0,    0,
    61, 0,    0, 1,  0,    0, 61, 0,    0, 1,  0,    0,  61, 0,    0, 1,  0,    0, 61, 0,    0,   1,  0,    0,
    61, 0,    0, 1,  0,    0, 61, 0,    0, 1,  0,    0,  61, 0,    0, 1,  0,    0, 61, 0,    0,   1,  0,    0,
    61, 0,    0, 1,  0,    0, 61, 0,    0, 1,  0,    0,  61, 0,    0, 1,  0,    0, 61, 0,    0,   1,  0,    0,
    61, 0,    0, 1,  0,    0, 61, 0,    0, 1,  -200, 0,  2,  -200, 0, 33, -240, 0, 61, -200, 0,   1,  0,    0,
    31, -10,  0, 61, 0,    0, 1,  250,  0, 61, 250,  0,  1,  -250, 0, 61, -250, 0, 1,  -550, 0,   61, -550, 0,
    1,  0,    0, 61, 0,    0, 1,  -600, 0, 61, -600, 0,  1,  0,    0, 61, 0,    0, 1,  -250, 0,   61, -250, 0,
    1,  -250, 0, 61, -250, 0, 1,  550,  0, 61, 550,  0,  1,  0,    0, 61, 0,    0, 1,  -600, 0,   61, -600, 0,
    1,  0,    0, 61, 0,    0, 1,  0,    0, 61, 0,    0,  1,  0,    0, 61, 0,    0, 1,  0,    0,   61, 0,    0,
    1,  0,    0, 61, 0,    0, 1,  -150, 0, 3,  -150, 0,  34, -200, 0, 61, -150, 0, 1,  1,    -30, 3,  0,    0,
    21, 15,   0, 47, 0,    0, 61, 0,    0, 1,  0,    0,  61, 0,    0, 1,  0,    0, 61, 0,    0,   1,  0,    0,
    61, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_kokkuri_d1 = {
    { cKF_ckcb_r_npc_1_kokkuri_d1_tbl, cKF_ds_npc_1_kokkuri_d1_tbl, cKF_kn_npc_1_kokkuri_d1_tbl,
      cKF_c_npc_1_kokkuri_d1_tbl, -1, 61 },
    1.0f,
    61.0f,
    cKF_FRAMECONTROL_REPEAT,
    -5.0f,
    NULL,
    aNPC_EYE_TEX0,
    2,
    NULL,
    aNPC_MOUTH_TEX0,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
