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

s16 cKF_kn_npc_1_neboke1_tbl[] = { 2, 7, 6,  4, 6, 3, 2, 8, 6, 3, 6, 2, 2, 7, 2, 2, 8, 6, 2, 6, 2, 2, 7,  2, 2, 7,
                                   5, 2, 10, 2, 2, 5, 6, 2, 4, 4, 2, 6, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 10, 7, 2, 6 };

s16 cKF_c_npc_1_neboke1_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,   0, 0, -900 };

s16 cKF_ds_npc_1_neboke1_tbl[] = {
    1,  0,    0,     56, 0,    0,    1,  1000, 0,     11, 975,  0,    26, 1150, 0,    36, 1100, -463, 44, 975,  0,
    51, 1000, 0,     56, 1000, 0,    1,  0,    0,     11, 50,   0,    26, 100,  0,    31, 100,  0,    44, 0,    0,
    56, 0,    61,    1,  0,    0,    21, 3,    0,     41, -3,   0,    56, 0,    72,   1,  0,    0,    11, 80,   0,
    26, -50,  0,     31, -50,  0,    46, 0,    59,    56, 0,    -59,  1,  0,    0,    51, 0,    0,    56, 0,    -59,
    1,  -175, 0,     56, -175, 0,    1,  -100, 0,     11, -50,  0,    26, -100, 0,    34, -60,  0,    41, -100, -492,
    44, -170, 0,     51, -95,  0,    56, -95,  0,     1,  25,   0,    11, 45,   0,    41, 40,   0,    44, 55,   0,
    51, 30,   0,     56, 33,   41,   1,  0,    0,     51, 0,    0,    56, 0,    0,    1,  200,  0,    11, 350,  0,
    41, 200,  0,     44, 350,  0,    51, 200,  0,     56, 200,  0,    1,  0,    0,    56, 0,    0,    1,  0,    0,
    56, 0,    0,     1,  -100, 0,    11, -210, 0,     26, 0,    0,    41, -100, -675, 44, -170, 0,    51, -100, 0,
    56, -100, 0,     1,  0,    0,    56, 0,    0,     1,  175,  0,    56, 175,  0,    1,  -100, 0,    11, -50,  0,
    26, -100, 0,     34, -60,  0,    41, -100, -493,  44, -170, 0,    51, -95,  0,    56, -95,  0,    1,  -25,  0,
    11, -45,  0,     41, -40,  0,    44, -60,  0,     51, -30,  0,    56, -30,  39,   1,  0,    0,    56, 0,    0,
    1,  200,  0,     11, 350,  0,    41, 200,  0,     44, 350,  0,    51, 200,  0,    56, 200,  0,    1,  0,    0,
    56, 0,    0,     1,  0,    0,    56, 0,    0,     1,  -100, 0,    11, -210, 0,    26, 0,    0,    41, -100, -671,
    44, -170, 0,     51, -100, 0,    56, -100, 0,     1,  0,    0,    56, 0,    0,    1,  0,    0,    56, 0,    0,
    1,  60,   0,     16, 150,  0,    21, -50,  -1118, 31, -200, 0,    35, -130, 0,    39, -250, 0,    56, 120,  0,
    1,  0,    0,     11, 40,   0,    26, -60,  0,     41, 20,   0,    56, -20,  0,    1,  0,    0,    56, 0,    0,
    1,  82,   0,     6,  -150, 0,    16, 150,  0,     21, -100, 0,    27, 100,  0,    34, -100, 0,    38, 100,  0,
    42, -80,  0,     51, -30,  459,  56, 193,  297,   1,  0,    0,    56, 0,    0,    1,  0,    0,    56, 0,    0,
    1,  0,    -94,   13, -150, 0,    31, 100,  99,    41, 60,   -181, 56, 5,    -78,  1,  0,    0,    11, 0,    -211,
    16, -20,  0,     26, 50,   0,    36, 10,   -88,   56, -19,  -26,  1,  0,    0,    56, 0,    0,    1,  58,   316,
    21, -857, 0,     36, -857, 0,    56, -20,  107,   1,  -564, 240,  21, -600, 0,    36, -600, 0,    56, -564, 110,
    1,  0,    0,     56, 0,    0,    1,  -57,  468,   21, -650, 0,    26, -750, 0,    32, -650, 0,    36, -750, 0,
    56, -57,  468,   1,  0,    0,    56, 0,    0,     1,  0,    0,    56, 0,    0,    1,  58,   317,  31, 0,    -348,
    56, -20,  107,   1,  564,  -272, 56, 565,  -77,   1,  0,    0,    56, 0,    0,    1,  -57,  468,  56, -57,  468,
    1,  0,    0,     56, 0,    0,    1,  0,    0,     56, 0,    0,    1,  0,    0,    56, 0,    0,    1,  0,    0,
    56, 0,    0,     1,  0,    0,    20, 0,    0,     23, -10,  0,    26, 20,   0,    29, -20,  0,    32, 20,   0,
    35, -10,  0,     38, 10,   0,    41, 0,    0,     56, 0,    0,    1,  0,    0,    6,  -25,  0,    16, 70,   622,
    26, 295,  240,   31, 310,  0,    46, 150,  -713,  56, 100,  0,    1,  0,    0,    56, 0,    0,    1,  0,    0,
    21, -350, -1121, 31, -500, 0,    41, -200, 1994,  46, 0,    0,    56, -100, -185
};

u8 npc_1_neboke10_tex_index[] = { 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
                                  5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 };

u8 npc_1_neboke11_tex_index[] = { 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 7, 7, 7,
                                  7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };

aNPC_Animation_c cKF_ba_r_npc_1_neboke1 = {
    { cKF_ckcb_r_npc_1_neboke1_tbl, cKF_ds_npc_1_neboke1_tbl, cKF_kn_npc_1_neboke1_tbl, cKF_c_npc_1_neboke1_tbl, -1,
      56 },
    1.0f,
    56.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_neboke11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_neboke10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    21,
    eEC_EFFECT_NEBOKE,
    NULL,
    NULL,
};
