#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_guratuku1_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_guratuku1_tbl[] = { 6, 6, 7, 5, 7, 6, 7, 6, 7, 2, 8, 2, 2, 6, 4, 6, 7, 6, 2, 7, 2, 2, 6, 6, 7, 6, 5,
                                     2, 6, 5, 6, 7, 6, 6, 7, 5, 2, 6, 2, 6, 6, 6, 2, 5, 2, 3, 3, 3, 6, 7, 3, 2, 6, 2 };

s16 cKF_c_npc_1_guratuku1_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_guratuku1_tbl[] = {
    1,  0,    0,     3,  -50,  0,    7,  50,   0,     13, -75,  0,     18, 0,    0,     25, 0,    0,
    1,  1000, 16,    10, 1100, 0,    18, 1100, 0,     20, 1650, 6182,  23, 1850, 0,     25, 1650, -6324,
    1,  0,    0,     3,  50,   0,    5,  -75,  0,     10, 100,  0,     18, 100,  0,     23, 300,  0,
    25, 375,  1464,  1,  0,    0,    3,  -25,  0,     7,  50,   0,     13, -25,  0,     25, 0,    0,
    1,  0,    0,     3,  -25,  0,    7,  75,   0,     13, -100, 0,     16, 0,    2007,  21, 500,  2004,
    25, 600,  0,     1,  0,    0,    3,  38,   0,     5,  -75,  0,     10, 75,   0,     15, -50,  0,
    25, 0,    0,     1,  -175, 0,    3,  0,    0,     8,  -100, 0,     13, 0,    0,     16, -50,  -1477,
    19, -250, -1990, 25, -400, 0,    1,  -100, 0,     3,  100,  0,     8,  -450, 0,     13, 300,  0,
    19, -500, -2994, 25, -700, 0,    1,  25,   0,     3,  -50,  0,     8,  100,  0,     13, -50,  0,
    16, 0,    1128,  19, 200,  1516, 25, 300,  0,     1,  0,    0,     25, 0,    0,     1,  200,  0,
    3,  400,  0,     8,  200,  0,    13, 300,  1492,  16, 400,  295,   19, 375,  -753,  22, 200,  -3035,
    25, 50,   0,     1,  0,    0,    25, 0,    0,     1,  0,    0,     25, 0,    0,     1,  -100, 0,
    3,  -270, 0,     8,  -100, 1483, 13, 150,  0,     19, -100, 0,     25, -100, 0,     1,  0,    0,
    3,  -50,  0,     8,  0,    0,    25, 0,    0,     1,  175,  0,     3,  150,  -739,  8,  0,    0,
    13, 150,  0,     19, 0,    0,    25, 100,  981,   1,  -100, 0,     3,  -300, 0,     8,  250,  0,
    13, -500, 0,     19, 250,  0,    22, -150, -4597, 25, -500, -2574, 1,  -25,  0,     3,  -100, 0,
    8,  50,   0,     13, -100, 0,    19, 50,   452,   25, 50,   -454,  1,  0,    0,     25, 0,    0,
    1,  200,  0,     3,  200,  0,    8,  300,  0,     13, 200,  -1501, 15, -1,   0,     19, 350,  0,
    25, 150,  -764,  1,  0,    0,    25, 0,    0,     1,  0,    0,     25, 0,    0,     1,  -100, 0,
    3,  -100, 0,     8,  -65,  0,    13, -100, 0,     19, 100,  0,     25, -50,  -744,  1,  0,    0,
    3,  0,    0,     8,  45,   0,    13, -50,  0,     19, 0,    0,     25, 0,    0,     1,  0,    0,
    3,  0,    0,     7,  0,    0,    13, 0,    0,     17, 0,    0,     21, 0,    0,     25, 0,    0,
    1,  60,   0,     3,  -150, 0,    7,  200,  0,     13, -250, 0,     17, 100,  0,     21, -350, -2515,
    1,  0,    0,     5,  -200, 0,    10, 200,  0,     15, -200, 0,     21, 200,  0,     1,  0,    0,
    25, 0,    0,     1,  82,   0,    4,  -150, 0,     8,  300,  0,     14, -350, 0,     18, 200,  0,
    22, -400, -2533, 1,  0,    0,    6,  -200, 0,     11, 200,  0,     16, -200, 0,     22, 200,  0,
    1,  0,    0,     2,  25,   0,    4,  -100, 0,     8,  125,  0,     14, -150, 0,     25, 0,    0,
    1,  0,    0,     2,  0,    0,    4,  -50,  0,     8,  100,  0,     14, -250, -1982, 20, -400, 0,
    25, -298, 1117,  1,  0,    0,    4,  -50,  0,     6,  75,   0,     11, -100, 0,     16, 50,   0,
    25, -100, 0,     1,  0,    0,    5,  -150, -990,  9,  -200, 0,     13, -150, 0,     20, -200, 0,
    25, -120, 0,     1,  58,   0,    5,  -350, 0,     9,  400,  0,     11, 150,  -4592, 15, -300, 0,
    20, 150,  3712,  22, 300,  992,  1,  -564, 0,     9,  -75,  1263,  13, 0,    0,     18, -25,  -387,
    25, 0,    1521,  1,  0,    0,    25, 0,    0,     1,  -57,  0,     5,  -300, 0,     9,  -150, 0,
    13, -350, -2261, 18, -575, 0,    25, -425, 1852,  1,  0,    0,     25, 0,    0,     1,  0,    0,
    5,  150,  0,     9,  -100, 0,    13, 450,  0,     18, -100, 0,     25, 303,  2904,  1,  58,   0,
    5,  300,  0,     9,  -550, 0,    13, 0,    0,     18, -700, 0,     25, -300, 2493,  1,  564,  0,
    5,  150,  -735,  9,  200,  -748, 13, 50,   0,     18, 250,  0,     25, -75,  -2247, 1,  0,    0,
    25, 0,    0,     1,  -57,  0,    5,  -100, -998,  13, -500, -738,  19, -500, 760,   25, -250, 990,
    1,  0,    0,     25, 0,    0,    1,  0,    0,     13, 0,    0,     25, 0,    0,     1,  0,    0,
    13, 0,    0,     25, 0,    0,    1,  0,    0,     13, 0,    0,     25, 0,    0,     1,  0,    0,
    2,  -50,  0,     5,  100,  0,    9,  -125, 0,     15, 200,  0,     25, 50,   -1153, 1,  0,    0,
    2,  25,   0,     5,  -75,  0,    9,  125,  0,     15, -150, -497,  19, -78,  1178,  25, 100,  -495,
    1,  0,    0,     16, 38,   248,  25, 63,   0,     1,  0,    0,     25, 0,    0,     1,  0,    0,
    4,  -300, 0,     10, -100, 0,    18, -300, 0,     22, -250, 0,     25, -450, 0,     1,  0,    0,
    25, 0,    0
};

u8 npc_1_guratuku10_tex_index[] = { 0, 3, 4, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 };

u8 npc_1_guratuku11_tex_index[] = { 0, 1, 2, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 };

aNPC_Animation_c cKF_ba_r_npc_1_guratuku1 = {
    { cKF_ckcb_r_npc_1_guratuku1_tbl, cKF_ds_npc_1_guratuku1_tbl, cKF_kn_npc_1_guratuku1_tbl, cKF_c_npc_1_guratuku1_tbl,
      -1, 25 },
    1.0f,
    25.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_guratuku11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_guratuku10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    -1,
    -1,
    NULL,
    NULL,
};
