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

s16 cKF_c_npc_1_clap1_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_clap1_tbl[] = {
    1, 0,    0, 7, 0,    0,    1, 1000, 0,    4, 1050, 0,    7, 1000, 0,    1, 100,  0,   4, 150,  0,    7, 100,  0,
    1, 0,    0, 7, 0,    0,    1, 0,    0,    4, -30,  0,    7, 0,    0,    1, 0,    151, 4, 0,    -150, 7, 0,    147,
    1, -175, 0, 7, -175, 0,    1, -40,  0,    4, 0,    0,    7, -40,  0,    1, 25,   0,   7, 25,   0,    1, 0,    0,
    7, 0,    0, 1, 250,  0,    4, 150,  0,    7, 250,  0,    1, 0,    0,    7, 0,    0,   1, 0,    0,    7, 0,    0,
    1, -205, 0, 4, -110, 0,    7, -205, 0,    1, -10,  0,    4, -40,  0,    7, -10,  0,   1, 175,  0,    7, 175,  0,
    1, -40,  0, 4, 0,    0,    7, -40,  0,    1, -25,  0,    7, -25,  0,    1, 0,    0,   7, 0,    0,    1, 250,  0,
    4, 150,  0, 7, 250,  0,    1, 0,    0,    7, 0,    0,    1, 0,    0,    7, 0,    0,   1, -205, 0,    4, -110, 0,
    7, -205, 0, 1, 10,   0,    4, 40,   0,    7, 10,   0,    1, 0,    0,    7, 0,    0,   1, 35,   1281, 2, 60,   0,
    5, -30,  0, 7, 35,   1281, 1, 0,    0,    7, 0,    0,    1, 0,    0,    7, 0,    0,   1, -55,  2838, 3, 80,   0,
    6, -100, 0, 7, -55,  2838, 1, 0,    0,    7, 0,    0,    1, 0,    0,    7, 0,    0,   1, 158,  -430, 2, 150,  0,
    5, 180,  0, 7, 158,  -430, 1, 0,    -200, 4, 0,    149,  7, 0,    -150, 1, 50,   0,   4, 600,  0,    7, 50,   0,
    1, -400, 0, 4, -500, 0,    7, -400, 0,    1, -700, 0,    4, -900, 0,    7, -700, 0,   1, 0,    0,    7, 0,    0,
    1, -500, 0, 7, -500, 0,    1, 0,    0,    7, 0,    0,    1, -50,  0,    4, -600, 0,   7, -50,  0,    1, -400, 0,
    4, -500, 0, 7, -400, 0,    1, 700,  0,    4, 900,  0,    7, 700,  0,    1, 0,    0,   7, 0,    0,    1, -500, 0,
    7, -500, 0, 1, 0,    0,    7, 0,    0,    1, 1185, 3345, 2, 1250, 0,    5, 1000, 0,   7, 1185, 3345, 1, 600,  0,
    7, 600,  0, 1, 825,  1693, 2, 850,  0,    5, 750,  0,    7, 825,  1693, 1, 0,    0,   7, 0,    0,    1, -10,  0,
    4, 10,   0, 7, -10,  0,    1, 0,    -273, 4, 0,    272,  7, 0,    -273, 1, 0,    0,   7, 0,    0,    1, 0,    0,
    7, 0,    0, 1, 0,    0,    7, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_clap1 = {
    { cKF_ckcb_r_npc_1_clap1_tbl, cKF_ds_npc_1_clap1_tbl, cKF_kn_npc_1_clap1_tbl, cKF_c_npc_1_clap1_tbl, -1, 7 },
    1.0f,
    7.0f,
    cKF_FRAMECONTROL_REPEAT,
    -5.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX0,
    2,
    -1,
    -1,
    NULL,
    NULL,
};
