#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_goukyu1_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_goukyu1_tbl[] = { 2, 2, 2, 2, 4, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2,
                                   2, 3, 2, 2, 4, 2, 3, 3, 3, 2, 3, 2, 3, 3, 3, 2, 3, 2, 3, 2, 4, 2, 3, 2, 2, 3, 2 };

s16 cKF_c_npc_1_goukyu1_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_goukyu1_tbl[] = {
    1,  0,    0,    16, 0,    0,    1,  1000, 0,     16, 1000, 0,     1,  0,    0,   16, 0,    0,    1,  0,    0,
    16, 0,    0,    1,  0,    0,    3,  -10,  0,     12, 40,   140,   16, 50,   0,   1,  0,    0,    16, 0,    0,
    1,  -175, 0,    16, -175, 0,    1,  -100, 0,     8,  -85,  153,   12, -50,  140, 16, -40,  0,    1,  25,   0,
    16, 25,   0,    1,  0,    0,    16, 0,    0,     1,  200,  0,     16, 200,  0,   1,  0,    0,    16, 0,    0,
    1,  0,    0,    16, 0,    0,    1,  -100, 0,     16, -100, 0,     1,  0,    0,   16, 0,    0,    1,  175,  0,
    16, 175,  0,    1,  -100, 0,    8,  -85,  153,   12, -50,  140,   16, -40,  0,   1,  -25,  0,    16, -25,  0,
    1,  0,    0,    16, 0,    0,    1,  200,  0,     16, 200,  0,     1,  0,    0,   16, 0,    0,    1,  0,    0,
    16, 0,    0,    1,  -100, 0,    16, -100, 0,     1,  0,    0,     16, 0,    0,   1,  0,    0,    16, 0,    0,
    1,  60,   0,    9,  250,  0,    16, 100,  0,     1,  0,    0,     16, 0,    0,   1,  0,    0,    16, 0,    0,
    1,  82,   0,    8,  -160, 0,    16, 41,   -2659, 1,  0,    0,     16, 0,    0,   1,  0,    0,    16, 0,    0,
    1,  2,    -78,  4,  -20,  0,    12, 130,  320,   16, 150,  0,     1,  0,    0,   16, 0,    0,    1,  0,    0,
    9,  -600, -953, 16, -650, 0,    1,  58,   0,     9,  -350, -907,  16, -400, 0,   1,  -564, 240,  9,  200,  1037,
    16, 250,  0,    1,  0,    0,    16, 0,    0,     1,  -57,  468,   9,  -700, 0,   16, -700, 0,    1,  0,    0,
    16, 0,    0,    1,  0,    0,    9,  600,  974,   16, 650,  0,     1,  58,   0,   9,  -350, -979, 16, -400, 0,
    1,  564,  -272, 9,  -200, -958, 16, -250, 0,     1,  0,    0,     16, 0,    0,   1,  -57,  468,  9,  -700, 0,
    16, -700, 0,    1,  0,    0,    16, 0,    0,     1,  0,    0,     9,  1800, 0,   16, 1800, 0,    1,  0,    0,
    16, 300,  0,    1,  0,    0,    5,  450,  0,     9,  0,    -1381, 16, -56,  0,   1,  0,    0,    16, 0,    0,
    1,  0,    0,    5,  -30,  0,    16, 88,   363,   1,  0,    0,     16, 0,    0,   1,  0,    0,    16, 0,    0,
    1,  0,    0,    11, -350, 0,    16, -350, 0,     1,  0,    0,     16, 0,    0
};

u8 npc_1_goukyu10_tex_index[] = { 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5 };

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

aNPC_Animation_c cKF_ba_r_npc_1_goukyu1 = {
    { cKF_ckcb_r_npc_1_goukyu1_tbl, cKF_ds_npc_1_goukyu1_tbl, cKF_kn_npc_1_goukyu1_tbl, cKF_c_npc_1_goukyu1_tbl, -1,
      16 },
    1.0f,
    16.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_goukyu11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_goukyu10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    1,
    eEC_EFFECT_NAKU,
    NULL,
    NULL,
};
