#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_cracker_count1_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_cracker_count1_tbl[] = { 2, 3, 3, 2, 3, 2, 3, 3, 3, 2, 3, 2, 2, 3, 3, 2, 3, 3,
                                          2, 3, 2, 2, 3, 3, 2, 5, 2, 2, 3, 2, 3, 5, 3, 3, 3, 3,
                                          2, 3, 2, 3, 3, 3, 2, 3, 2, 2, 2, 2, 3, 5, 3, 2, 2, 2 };

s16 cKF_c_npc_1_cracker_count1_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_cracker_count1_tbl[] = {
    1,  0,    0, 31, 0,    0,    1,  875,  0, 16, 800,  0,    31, 875,  0,    1,  -75,   0,   16, 0,    0,
    31, -75,  0, 1,  55,   0,    31, 55,   0, 1,  125,  0,    16, 100,  0,    31, 125,   0,   1,  0,    0,
    31, 0,    0, 1,  -153, 0,    16, -165, 0, 31, -153, 0,    1,  -264, 0,    16, -313,  0,   31, -264, 0,
    1,  63,   0, 16, 89,   0,    31, 63,   0, 1,  0,    0,    31, 0,    0,    1,  653,   0,   16, 836,  0,
    31, 653,  0, 1,  0,    0,    31, 0,    0, 1,  0,    0,    31, 0,    0,    1,  -263,  0,   16, -418, 0,
    31, -263, 0, 1,  51,   0,    16, 45,   0, 31, 51,   0,    1,  256,  0,    31, 256,   0,   1,  -205, 0,
    16, -246, 0, 31, -205, 0,    1,  -105, 0, 16, -133, 0,    31, -105, 0,    1,  0,     0,   31, 0,    0,
    1,  640,  0, 16, 821,  0,    31, 640,  0, 1,  0,    0,    31, 0,    0,    1,  0,     0,   31, 0,    0,
    1,  -293, 0, 16, -449, 0,    31, -293, 0, 1,  -35,  0,    16, -19,  0,    31, -35,   0,   1,  0,    0,
    31, 0,    0, 1,  213,  870,  9,  325,  0, 16, 213,  -866, 24, 100,  0,    31, 213,   873, 1,  0,    0,
    31, 0,    0, 1,  0,    0,    31, 0,    0, 1,  -850, 0,    16, -400, 0,    31, -850,  0,   1,  0,    0,
    31, 0,    0, 1,  258,  0,    16, 300,  0, 31, 258,  0,    1,  -335, -225, 9,  -371,  0,   16, -335, 253,
    24, -300, 0, 31, -335, -224, 1,  -178, 0, 16, -160, 0,    31, -178, 0,    1,  973,   0,   16, 1200, 0,
    31, 973,  0, 1,  -743, 0,    16, -700, 0, 31, -743, 0,    1,  -970, 0,    16, -1150, 0,   31, -970, 0,
    1,  0,    0, 31, 0,    0,    1,  -550, 0, 16, -450, 0,    31, -550, 0,    1,  0,     0,   31, 0,    0,
    1,  -290, 0, 16, -200, 0,    31, -290, 0, 1,  -688, 0,    16, -600, 0,    31, -688,  0,   1,  405,  0,
    16, 325,  0, 31, 405,  0,    1,  0,    0, 31, 0,    0,    1,  -30,  0,    16, -125,  0,   31, -30,  0,
    1,  0,    0, 31, 0,    0,    1,  0,    0, 31, 0,    0,    1,  1010, 0,    31, 1010,  0,   1,  -778, 0,
    31, -778, 0, 1,  -188, 0,    16, -238, 0, 31, -188, 0,    1,  119,  197,  9,  154,   0,   16, 119,  -208,
    24, 84,   0, 31, 119,  202,  1,  175,  0, 16, 150,  0,    31, 175,  0,    1,  0,     0,   31, 0,    0,
    1,  0,    0, 31, 0,    0,    1,  0,    0, 31, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_cracker_count1 = {
    { cKF_ckcb_r_npc_1_cracker_count1_tbl, cKF_ds_npc_1_cracker_count1_tbl, cKF_kn_npc_1_cracker_count1_tbl,
      cKF_c_npc_1_cracker_count1_tbl, -1, 31 },
    1.0f,
    31.0f,
    cKF_FRAMECONTROL_REPEAT,
    -5.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX0,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
