#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_buruburu1_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_buruburu1_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, 8, 2,
                                     2, 8, 2, 4, 3, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 4, 3, 8, 2, 3, 2 };

s16 cKF_c_npc_1_buruburu1_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_buruburu1_tbl[] = {
    1,  0,    0,     19, 0,    0,  1,  1000, 0,   19, 875,  0, 1,  0,    0, 19, 50,   0,    1,  0,    0,
    19, 0,    0,     1,  0,    0,  19, 80,   0,   1,  0,    0, 19, 0,    0, 1,  -175, 0,    19, 30,   0,
    1,  -100, 0,     19, -150, 0,  1,  25,   0,   19, -25,  0, 1,  0,    0, 19, 0,    0,    1,  200,  0,
    19, 670,  0,     1,  0,    0,  19, 0,    0,   1,  0,    0, 19, 0,    0, 1,  -100, 0,    19, -440, 0,
    1,  0,    0,     19, 0,    22, 1,  175,  0,   19, -30,  0, 1,  -100, 0, 19, -150, 0,    1,  -25,  0,
    19, 25,   0,     1,  0,    0,  19, 0,    0,   1,  200,  0, 19, 670,  0, 1,  0,    0,    19, 0,    0,
    1,  0,    0,     19, 0,    0,  1,  -100, 0,   19, -440, 0, 1,  0,    0, 19, 0,    0,    1,  0,    0,
    19, 0,    0,     1,  60,   0,  7,  -300, 0,   9,  -290, 0, 11, -310, 0, 13, -290, 0,    15, -310, 0,
    17, -280, 0,     19, -320, 0,  1,  0,    0,   19, 0,    0, 1,  0,    0, 19, 0,    0,    1,  82,   0,
    7,  0,    0,     9,  10,   0,  11, -10,  0,   13, 10,   0, 15, -10,  0, 17, 20,   0,    19, -20,  0,
    1,  0,    0,     19, 0,    0,  1,  0,    0,   16, 0,    0, 18, 20,   0, 19, 0,    -730, 1,  2,    0,
    10, -150, -1044, 19, -450, 0,  1,  0,    0,   7,  0,    0, 9,  20,   0, 11, -20,  0,    13, 20,   0,
    15, -20,  0,     17, 20,   0,  19, 0,    0,   1,  0,    0, 19, -250, 0, 1,  58,   0,    19, -950, 0,
    1,  -564, 0,     19, -450, 0,  1,  0,    0,   19, 0,    0, 1,  -57,  0, 19, -700, 0,    1,  0,    0,
    19, 0,    0,     1,  0,    0,  19, 250,  0,   1,  58,   0, 19, -950, 0, 1,  564,  0,    19, 450,  0,
    1,  0,    0,     19, 0,    0,  1,  -57,  0,   19, -700, 0, 1,  0,    0, 19, 0,    0,    1,  0,    0,
    10, 1400, 5527,  19, 1800, 0,  1,  0,    0,   19, 600,  0, 1,  0,    0, 19, 0,    0,    1,  0,    0,
    16, 0,    0,     18, -20,  0,  19, 0,    622, 1,  0,    0, 13, 250,  0, 19, 215,  -217, 1,  0,    0,
    7,  0,    0,     9,  -20,  0,  11, 20,   0,   13, -20,  0, 15, 20,   0, 17, -20,  0,    19, 0,    0,
    1,  0,    0,     19, 0,    0,  1,  0,    0,   10, -200, 0, 19, -80,  0, 1,  0,    0,    19, 0,    0
};

u8 npc_1_buruburu10_tex_index[] = { 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 };

u8 npc_1_buruburu11_tex_index[] = { 1, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 };

aNPC_Animation_c cKF_ba_r_npc_1_buruburu1 = {
    { cKF_ckcb_r_npc_1_buruburu1_tbl, cKF_ds_npc_1_buruburu1_tbl, cKF_kn_npc_1_buruburu1_tbl, cKF_c_npc_1_buruburu1_tbl,
      -1, 19 },
    1.0f,
    19.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_buruburu11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_buruburu10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    12,
    eEC_EFFECT_BURUBURU,
    NULL,
    NULL,
};
