#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_neboke2_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_neboke2_tbl[] = { 2, 2, 5, 5, 5, 5, 2, 5, 5, 2, 5, 2, 2, 5, 2, 2, 5, 5, 2, 5, 3, 2, 5, 2, 2, 5, 3,
                                   2, 5, 2, 2, 5, 4, 2, 5, 2, 2, 2, 2, 2, 5, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 };

s16 cKF_c_npc_1_neboke2_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_neboke2_tbl[] = {
    1,  0,    0,   61, 0,    0,    1,  1000, 0,   61, 1000, 0,   1,  0,    61,   16, 15,   0,    31, 0,    -56,
    46, -15,  0,   61, 0,    61,   1,  0,    72,  16, 20,   0,   31, 0,    -70,  46, -20,  0,    61, 0,    72,
    1,  0,    -59, 16, -10,  0,    31, 0,    55,  46, 10,   0,   61, 0,    -59,  1,  0,    -59,  16, -10,  0,
    31, 0,    55,  46, 10,   0,    61, 0,    -59, 1,  -175, 0,   61, -175, 0,    1,  -95,  0,    16, -108, 0,
    31, -95,  0,   46, -88,  0,    61, -95,  0,   1,  33,   41,  16, 43,   0,    31, 33,   -42,  46, 23,   0,
    61, 33,   41,  1,  0,    0,    61, 0,    0,   1,  200,  0,   16, 230,  0,    31, 200,  0,    46, 210,  0,
    61, 200,  0,   1,  0,    0,    61, 0,    0,   1,  0,    0,   61, 0,    0,    1,  -100, 0,    16, -130, 0,
    31, -100, 0,   46, -110, 0,    61, -100, 0,   1,  0,    0,   61, 0,    0,    1,  175,  0,    61, 175,  0,
    1,  -95,  0,   16, -88,  0,    31, -95,  0,   46, -108, 0,   61, -95,  0,    1,  -30,  39,   16, -20,  0,
    31, -30,  -43, 46, -40,  0,    61, -30,  39,  1,  0,    0,   61, 0,    0,    1,  200,  0,    16, 210,  0,
    31, 200,  0,   46, 230,  0,    61, 200,  0,   1,  0,    0,   46, 0,    0,    61, 0,    0,    1,  0,    0,
    61, 0,    0,   1,  -100, 0,    16, -130, 0,   31, -100, 0,   46, -110, 0,    61, -100, 0,    1,  0,    0,
    61, 0,    0,   1,  0,    0,    61, 0,    0,   1,  120,  0,   16, 60,   -298, 31, 0,    0,    46, 60,   292,
    61, 120,  0,   1,  -20,  0,    31, 20,   0,   61, -20,  0,   1,  0,    0,    61, 0,    0,    1,  193,  297,
    12, 230,  0,   27, 160,  -311, 41, 100,  0,   61, 193,  297, 1,  0,    0,    61, 0,    0,    1,  0,    0,
    61, 0,    0,   1,  5,    -78,  19, -20,  0,   34, 0,    74,  49, 20,   0,    61, 5,    -78,  1,  -19,  -26,
    4,  -20,  0,   34, 20,   0,    61, -19,  -26, 1,  0,    0,   61, 0,    0,    1,  -20,  107,  16, 0,    0,
    31, -20,  -90, 46, -40,  0,    61, -20,  107, 1,  -564, 110, 61, -564, 110,  1,  0,    0,    61, 0,    0,
    1,  -57,  468, 61, -57,  468,  1,  0,    0,   61, 0,    0,   1,  0,    0,    61, 0,    0,    1,  -20,  107,
    16, 0,    0,   31, -20,  -90,  46, -40,  0,   61, -20,  107, 1,  565,  -77,  61, 565,  -77,  1,  0,    0,
    61, 0,    0,   1,  -57,  468,  61, -57,  468, 1,  0,    0,   61, 0,    0,    1,  0,    0,    61, 0,    0,
    1,  0,    0,   61, 0,    0,    1,  0,    0,   61, 0,    0,   1,  0,    0,    61, 0,    0,    1,  100,  0,
    61, 100,  0,   1,  0,    0,    61, 0,    0,   4,  0,    0,   61, 0,    0,    1,  -100, -185, 61, -100, -185,
    4,  0,    0,   61, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_neboke2 = {
    { cKF_ckcb_r_npc_1_neboke2_tbl, cKF_ds_npc_1_neboke2_tbl, cKF_kn_npc_1_neboke2_tbl, cKF_c_npc_1_neboke2_tbl, -1,
      61 },
    1.0f,
    61.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    1,
    NULL,
    aNPC_MOUTH_TEX2,
    4,
    -1,
    eEC_EFFECT_NEBOKE,
    NULL,
    NULL,
};
