#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_a2_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_a2_tbl[] = { 2, 3, 2, 2, 3, 2, 2, 3, 3, 2, 3, 2, 2, 3, 2, 2, 3, 3, 2, 3, 2, 2, 3, 2, 2, 3, 2,
                              2, 3, 2, 2, 4, 3, 2, 4, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 4, 3, 2, 2, 2 };

s16 cKF_c_npc_1_a2_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_a2_tbl[] = {
    1,   0,    0,    31, 0,  0,    1,  1000, 0,    15,   975, 0,    31,  1000, 0,   1,  0,    0,   31,  0,   0,    1,
    0,   0,    31,   0,  0,  1,    20, 0,    15,   40,   0,   31,   20,  0,    1,   0,  0,    31,  0,   0,   1,    -175,
    0,   31,   -175, 0,  1,  20,   0,  15,   -90,  0,    31,  20,   0,   1,    5,   0,  15,   50,  0,   31,  5,    0,
    1,   0,    0,    31, 0,  0,    1,  0,    0,    15,   280, 0,    31,  0,    0,   1,  0,    0,   31,  0,   0,    1,
    0,   0,    31,   0,  0,  1,    0,  0,    15,   -140, 0,   31,   0,   0,    1,   0,  0,    31,  0,   0,   1,    175,
    0,   31,   175,  0,  1,  20,   0,  15,   -80,  0,    31,  30,   0,   1,    -5,  0,  15,   -50, 0,   31,  -5,   0,
    1,   0,    0,    31, 0,  0,    1,  0,    0,    15,   280, 0,    31,  0,    0,   1,  0,    0,   31,  0,   0,    1,
    0,   0,    31,   0,  0,  1,    0,  0,    15,   -140, 0,   31,   0,   0,    1,   0,  0,    31,  0,   0,   1,    0,
    0,   31,   0,    0,  1,  -110, 0,  15,   110,  0,    31,  -110, 0,   1,    0,   0,  31,   0,   0,   1,   0,    0,
    31,  0,    0,    1,  0,  -899, 16, 0,    980,  31,   0,   -884, 1,   0,    0,   31, 0,    0,   1,   0,   0,    31,
    0,   0,    1,    70, 0,  2,    70, 0,    16,   50,   0,   31,   70,  0,    1,   0,  -77,  16,  0,   78,  31,   0,
    -75, 1,    0,    0,  31, 0,    0,  1,    60,   -74,  3,   58,   0,   18,   110, 0,  31,   60,  -73, 1,   -573, 0,
    31,  -573, 0,    1,  0,  0,    31, 0,    0,    1,    -57, 0,    31,  -57,  0,   1,  0,    0,   31,  0,   0,    1,
    0,   0,    31,   0,  0,  1,    60, -74,  3,    58,   0,   18,   110, 0,    31,  60, -73,  1,   573, 0,   31,   573,
    0,   1,    0,    0,  31, 0,    0,  1,    -57,  0,    31,  -57,  0,   1,    0,   0,  31,   0,   0,   1,   0,    0,
    31,  0,    0,    1,  0,  0,    31, 0,    0,    1,    0,   0,    31,  0,    0,   1,  0,    0,   31,  0,   0,    1,
    53,  -76,  3,    50, 0,  17,   90, 0,    31,   53,   -74, 1,    0,   142,  16,  0,  -150, 31,  0,   150, 1,    0,
    0,   31,   0,    0,  1,  -150, 0,  31,   -150, 0,    1,   0,    0,   31,   0,   0
};

aNPC_Animation_c cKF_ba_r_npc_1_a2 = {
    { cKF_ckcb_r_npc_1_a2_tbl, cKF_ds_npc_1_a2_tbl, cKF_kn_npc_1_a2_tbl, cKF_c_npc_1_a2_tbl, -1, 31 },
    1.0f,
    31.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    6,
    NULL,
    aNPC_MOUTH_TEX1,
    1,
    -1,
    -1,
    NULL,
    NULL,
};
