#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_tunahiki_yuri1_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_tunahiki_yuri1_tbl[] = { 3, 3, 4, 18, 4, 3, 4, 4, 4, 2, 6, 2, 2, 6, 6, 5, 5, 6,
                                          2, 5, 2, 3,  6, 5, 2, 3, 2, 2, 5, 2, 5, 5, 5, 2, 5, 5,
                                          2, 3, 2, 5,  5, 5, 2, 5, 2, 2, 2, 2, 4, 4, 4, 2, 7, 2 };

s16 cKF_c_npc_1_tunahiki_yuri1_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_tunahiki_yuri1_tbl[] = {
    1,  0,    0,     17, 0,    0,     33, 0,     0,     1,  500,   0,    17, 550,   0,    33, 500,   0,
    1,  0,    0,     6,  0,    0,     17, -200,  0,     33, 0,     0,    1,  450,   0,    2,  462,   0,
    3,  433,  0,     4,  453,  0,     5,  422,   0,     6,  440,   0,    7,  406,   0,    8,  422,   0,
    9,  388,  0,     10, 403,  0,     11, 369,   0,     12, 386,   0,    13, 353,   0,    14, 372,   0,
    15, 342,  0,     16, 364,  0,     17, 338,   0,     33, 450,   0,    1,  -100,  0,    6,  -100,  0,
    17, 75,   0,     33, -100, 0,     1,  0,     0,     6,  0,     0,    33, 0,     0,    1,  -700,  0,
    6,  -700, 0,     17, -193, 0,     33, -700,  0,     1,  -650,  0,    6,  -650,  0,    17, -800,  0,
    33, -650, 0,     1,  700,  0,     6,  700,   0,     17, 210,   0,    33, 700,   0,    1,  0,     0,
    33, 0,    0,     1,  1200, 0,     6,  1200,  0,     11, 1200,  0,    17, 1130,  0,    25, 1225,  0,
    33, 1200, 0,     1,  0,    0,     33, 0,     0,     1,  0,     0,    33, 0,     0,    1,  -413,  0,
    6,  -413, 0,     11, -438, 0,     17, -265,  0,     25, -455,  0,    33, -413,  0,    1,  -145,  0,
    6,  -145, 0,     11, -56,  783,   17, 30,    0,     25, -50,   -444, 33, -145,  0,    1,  675,   0,
    7,  703,  -17,   11, 609,  -1602, 17, 353,   0,     33, 675,   0,    1,  -600,  0,    8,  -608,  109,
    11, -578, 548,   17, -400, 0,     33, -600,  0,     1,  -1100, 0,    5,  -1100, 0,    8,  -1040, 1678,
    11, -833, 2244,  17, -400, 0,     33, -1100, 0,     1,  0,     0,    33, 0,     0,    1,  850,   0,
    7,  808,  -803,  11, 565,  -2946, 17, 0,     0,     33, 850,   0,    1,  0,     0,    33, 0,     0,
    1,  0,    0,     17, 0,    0,     33, 0,     0,     1,  45,    0,    6,  63,    280,  10, 193,   1808,
    11, 250,  1149,  17, 350,  0,     33, 45,    0,     1,  375,   0,    6,  350,   -382, 11, 248,   -1149,
    17, 0,    0,     33, 375,  0,     1,  0,     0,     33, 0,     0,    1,  60,    0,    17, -300,  0,
    33, 60,   0,     1,  0,    0,     33, 0,     0,     1,  0,     0,    33, 0,     0,    1,  0,     0,
    5,  -350, -2039, 9,  -450, 0,     17, 0,     0,     33, 0,     0,    1,  0,     0,    33, 0,     0,
    1,  300,  0,     6,  350,  489,   17, 525,   0,     23, 400,   -742, 33, 300,   0,    1,  -150,  0,
    6,  -150, 0,     17, 100,  0,     23, 75,    -383,  33, -150,  0,    1,  0,     0,    6,  25,    0,
    17, -150, -370,  23, -150, 365,   33, 0,     0,     1,  450,   0,    33, 450,   0,    1,  -300,  0,
    6,  -300, 0,     17, -400, 0,     23, -300,  0,     33, -300,  0,    1,  -600,  0,    6,  -600,  0,
    17, -250, 0,     23, -300, -496,  33, -600,  0,     1,  0,     0,    33, 0,     0,    1,  -700,  0,
    23, -950, 0,     33, -700, 0,     1,  0,     0,     33, 0,     0,    1,  500,   0,    6,  375,   -1058,
    17, 0,    0,     23, 0,    0,     33, 500,   0,     1,  -450,  0,    6,  -350,  774,  17, -350,  0,
    23, -300, 0,     33, -450, 0,     1,  250,   0,     6,  250,   0,    17, 650,   0,    23, 675,   0,
    33, 250,  0,     1,  0,    0,     33, 0,     0,     1,  -300,  0,    6,  -400,  0,    17, 0,     0,
    23, -250, -757,  33, -300, 0,     1,  0,     0,     33, 0,     0,    1,  0,     0,    33, 0,     0,
    1,  0,    0,     33, 0,    0,     1,  0,     0,     33, 0,     0,    1,  -550,  0,    6,  -550,  0,
    17, -550, 0,     33, -550, 0,     1,  50,    0,     6,  -25,   -193, 17, -50,   0,    33, 50,    0,
    1,  -50,  0,     6,  25,   0,     17, 25,    0,     33, -50,   0,    1,  0,     0,    33, 0,     0,
    1,  0,    0,     7,  0,    0,     14, -250,  -1049, 17, -300,  0,    20, -250,  1039, 25, 0,     0,
    33, 0,    0,     1,  0,    0,     33, 0,     0
};

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

u8 npc_1_tunahiki_yuri11_tex_index[] = { 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
                                         2, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1 };

aNPC_Animation_c cKF_ba_r_npc_1_tunahiki_yuri1 = {
    { cKF_ckcb_r_npc_1_tunahiki_yuri1_tbl, cKF_ds_npc_1_tunahiki_yuri1_tbl, cKF_kn_npc_1_tunahiki_yuri1_tbl,
      cKF_c_npc_1_tunahiki_yuri1_tbl, -1, 33 },
    1.0f,
    33.0f,
    cKF_FRAMECONTROL_REPEAT,
    -5.0f,
    npc_1_tunahiki_yuri11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_tunahiki_yuri10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    -1,
    -1,
    NULL,
    NULL,
};
