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

s16 cKF_kn_npc_1_a_f1_tbl[] = { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2,
                                2, 4, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 4, 2 };

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

s16 cKF_ds_npc_1_a_f1_tbl[] = {
    1, 0,    0, 9, 0,    0, 1, 975,  0, 9, 1000, 0, 1, 0,    0,   9, 0,    0,    1, 0,    0,   9, 0,    0,
    1, 60,   0, 9, 20,   0, 1, 90,   0, 9, 0,    0, 1, -185, 0,   9, -174, 0,    1, 40,   0,   9, -80,  0,
    1, -85,  0, 9, 18,   0, 1, 0,    0, 9, 0,    0, 1, 40,   0,   9, 215,  0,    1, 0,    0,   9, 20,   0,
    1, 0,    0, 9, 0,    0, 1, -15,  0, 9, -110, 0, 1, 0,    0,   9, -5,   0,    1, 180,  0,   9, 175,  0,
    1, -260, 0, 9, -193, 0, 1, -145, 0, 9, -21,  0, 1, 0,    0,   9, 0,    0,    1, 560,  0,   9, 330,  0,
    1, 0,    0, 9, 0,    0, 1, 0,    0, 9, 0,    0, 1, -240, 0,   9, -123, 0,    1, -40,  0,   9, -48,  0,
    1, 0,    0, 9, 0,    0, 1, 60,   0, 5, -250, 0, 7, -55,  0,   9, -110, 0,    1, 0,    0,   9, 0,    0,
    1, 0,    0, 9, 0,    0, 1, 82,   0, 4, 200,  0, 6, -150, 0,   9, 0,    -903, 1, 0,    0,   9, 0,    0,
    1, 100,  0, 3, 40,   0, 6, 70,   0, 9, 70,   0, 1, -50,  0,   9, 0,    -72,  1, -120, 0,   9, -600, 0,
    1, -700, 0, 9, -750, 0, 1, -450, 0, 9, 20,   0, 1, 0,    0,   9, 0,    0,    1, -50,  0,   9, -50,  0,
    1, 0,    0, 9, 0,    0, 1, 0,    0, 9, 0,    0, 1, 50,   0,   9, 50,   -74,  1, 300,  0,   4, 340,  0,
    7, 305,  0, 8, 320,  0, 9, 310,  0, 1, 0,    0, 9, 0,    0,   1, -57,  0,    9, -57,  0,   1, 0,    0,
    9, 0,    0, 1, 0,    0, 9, 300,  0, 1, 0,    0, 9, -50,  0,   1, 0,    0,    9, 175,  0,   1, 0,    0,
    9, 0,    0, 1, -200, 0, 7, 50,   0, 8, 30,   0, 9, 53,   -71, 1, -10,  0,    9, 0,    141, 1, 0,    0,
    9, 0,    0, 1, 0,    0, 4, 0,    0, 7, -150, 0, 9, -150, 0,   1, 0,    0,    9, 0,    0
};

u8 npc_1_a_f10_tex_index[] = { 0, 0, 0, 0, 0, 0, 1, 1, 1 };

u8 npc_1_a_f11_tex_index[] = { 0, 1, 2, 2, 2, 2, 6, 6, 6 };

aNPC_Animation_c cKF_ba_r_npc_1_a_f1 = {
    { cKF_ckcb_r_npc_1_a_f1_tbl, cKF_ds_npc_1_a_f1_tbl, cKF_kn_npc_1_a_f1_tbl, cKF_c_npc_1_a_f1_tbl, -1, 9 },
    1.0f,
    9.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_a_f11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_a_f10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    8,
    eEC_EFFECT_KANTANHU,
    NULL,
    NULL,
};
