#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_a_f2_tbl[] = { 56, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 7, 6, 7, 0, 7, 7, 0, 7, 7, 7, 7, 0, 5, 0, 0 };

s16 cKF_kn_npc_1_a_f2_tbl[] = { 2, 3, 2, 2, 3, 2, 3, 3, 3, 2, 3, 2, 2, 3, 3, 3, 3, 3, 2, 3, 2, 2, 3, 2, 2, 3,
                                2, 2, 3, 2, 3, 3, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 4, 3, 2, 2 };

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

s16 cKF_ds_npc_1_a_f2_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,  -174, 0,    15, -171, 0,
    31, -174, 0,    1,  -80,  0,   15, -125, 0,   31, -80,  0,   1,  18,   0, 15, 40,  0, 31, 18,   0,    1,  0,    0,
    31, 0,    0,    1,  215,  0,   15, 360,  0,   31, 215,  0,   1,  20,   0, 31, 20,  0, 1,  0,    0,    31, 0,    0,
    1,  -110, 0,    15, -185, 0,   31, -110, 0,   1,  -5,   0,   15, -8,   0, 31, -5,  0, 1,  175,  0,    15, 183,  0,
    31, 175,  0,    1,  -193, 0,   15, -219, 0,   31, -193, 0,   1,  -21,  0, 15, -38, 0, 31, -21,  0,    1,  0,    0,
    31, 0,    0,    1,  330,  0,   15, 430,  0,   31, 330,  0,   1,  0,    0, 31, 0,   0, 1,  0,    0,    31, 0,    0,
    1,  -123, 0,    15, -175, 0,   31, -123, 0,   1,  -48,  0,   31, -48,  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,    -903, 16, 0,    978,
    31, 0,    -889, 1,  0,    0,   31, 0,    0,   1,  70,   0,   16, 50,   0, 31, 70,  0, 1,  0,    -72,  16, 0,    72,
    31, 0,    -72,  1,  -600, 0,   31, -600, 0,   1,  -750, 0,   31, -750, 0, 1,  20,  0, 31, 20,   0,    1,  0,    0,
    31, 0,    0,    1,  -50,  0,   31, -50,  0,   1,  0,    0,   31, 0,    0, 1,  0,   0, 31, 0,    0,    1,  50,   -74,
    3,  48,   0,    18, 100,  0,   31, 50,   -76, 1,  310,  0,   31, 310,  0, 1,  0,   0, 31, 0,    0,    1,  -57,  0,
    31, -57,  0,    1,  0,    0,   31, 0,    0,   1,  300,  0,   31, 300,  0, 1,  -50, 0, 31, -50,  0,    1,  175,  0,
    31, 175,  0,    1,  0,    0,   31, 0,    0,   1,  53,   -71, 3,  50,   0, 17, 90,  0, 31, 53,   -75,  1,  0,    141,
    16, 0,    -149, 31, 0,    151, 1,  0,    0,   31, 0,    0,   1,  0,    0, 31, 0,   0
};

aNPC_Animation_c cKF_ba_r_npc_1_a_f2 = {
    { cKF_ckcb_r_npc_1_a_f2_tbl, cKF_ds_npc_1_a_f2_tbl, cKF_kn_npc_1_a_f2_tbl, cKF_c_npc_1_a_f2_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,
};
