#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_tue_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_tue_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, 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, 2, 2, 2, 2 };

s16 cKF_c_npc_1_tue_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_tue_tbl[] = {
    1,  0,    0, 29, 0,   0, 1,  1000, 0, 29, 1000, 0, 1,  0,    0, 29, 0,    0, 1,  0,    0, 29, 0,    0, 1,  0,    0,
    29, 0,    0, 1,  0,   0, 29, 0,    0, 1,  -175, 0, 29, -175, 0, 1,  -100, 0, 29, -100, 0, 1,  25,   0, 29, 25,   0,
    1,  0,    0, 29, 0,   0, 1,  200,  0, 29, 200,  0, 1,  0,    0, 29, 0,    0, 1,  0,    0, 29, 0,    0, 1,  -100, 0,
    29, -100, 0, 1,  0,   0, 29, 0,    0, 1,  175,  0, 29, 175,  0, 1,  -100, 0, 29, -100, 0, 1,  -25,  0, 29, -25,  0,
    1,  0,    0, 29, 0,   0, 1,  200,  0, 29, 200,  0, 1,  0,    0, 29, 0,    0, 1,  0,    0, 29, 0,    0, 1,  -100, 0,
    29, -100, 0, 1,  0,   0, 29, 0,    0, 1,  0,    0, 29, 0,    0, 1,  60,   0, 29, 60,   0, 1,  0,    0, 29, 0,    0,
    1,  0,    0, 29, 0,   0, 1,  82,   0, 29, 82,   0, 1,  0,    0, 29, 0,    0, 1,  0,    0, 29, 0,    0, 1,  2,    0,
    29, 2,    0, 1,  0,   0, 29, 0,    0, 1,  0,    0, 29, 0,    0, 1,  58,   0, 29, 58,   0, 1,  -414, 0, 29, -414, 0,
    1,  0,    0, 29, 0,   0, 1,  -57,  0, 29, -57,  0, 1,  0,    0, 29, 0,    0, 1,  0,    0, 29, 0,    0, 1,  0,    0,
    29, 0,    0, 1,  300, 0, 29, 300,  0, 1,  -5,   0, 29, -5,   0, 1,  -196, 0, 29, -196, 0, 1,  -65,  0, 29, -65,  0,
    1,  0,    0, 29, 0,   0, 1,  0,    0, 29, 0,    0, 1,  0,    0, 29, 0,    0, 1,  0,    0, 29, 0,    0, 1,  0,    0,
    29, 0,    0, 1,  0,   0, 29, 0,    0, 1,  0,    0, 29, 0,    0, 1,  0,    0, 29, 0,    0, 1,  0,    0, 29, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_tue1 = {
    { cKF_ckcb_r_npc_1_tue_tbl, cKF_ds_npc_1_tue_tbl, cKF_kn_npc_1_tue_tbl, cKF_c_npc_1_tue_tbl, -1, 29 },
    1.0f,
    29.0f,
    cKF_FRAMECONTROL_REPEAT,
    -5.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX0,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
