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

s16 cKF_c_npc_1_matarou_r1_tbl[] = { 0, 0, 0,    0, 0, 900, 0, 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_matarou_r1_tbl[] = {
    1,  50,   0,     11, -25,  0,   1,  0,   0,    11, 10,   0, 1,  0,    0,   11, 0,    0, 1,  0,    0, 11, 0,    0,
    1,  0,    0,     11, 0,    0,   1,  0,   0,    11, 0,    0, 1,  0,    0,   11, 0,    0, 1,  0,    0, 11, 0,    0,
    1,  0,    0,     11, 0,    0,   1,  0,   0,    11, 0,    0, 1,  0,    0,   11, 0,    0, 1,  0,    0, 11, 0,    0,
    1,  0,    0,     11, 0,    0,   1,  0,   0,    11, 0,    0, 1,  0,    0,   11, 0,    0, 1,  0,    0, 11, 0,    0,
    1,  0,    0,     11, 0,    0,   1,  0,   0,    11, 0,    0, 1,  0,    0,   11, 0,    0, 1,  0,    0, 11, 0,    0,
    1,  0,    0,     11, 0,    0,   1,  0,   0,    11, 0,    0, 1,  0,    0,   11, 0,    0, 1,  0,    0, 11, 0,    0,
    1,  0,    0,     11, 0,    0,   1,  0,   0,    11, 0,    0, 1,  0,    0,   11, -20,  0, 1,  -50,  0, 11, -150, 0,
    1,  0,    0,     6,  15,   0,   11, 0,   -87,  1,  0,    0, 11, -100, 0,   1,  -53,  0, 11, -250, 0, 1,  -270, 0,
    11, -100, -451,  1,  140,  0,   11, 150, 0,    1,  -693, 0, 11, -700, 0,   1,  -115, 0, 11, -100, 0, 1,  403,  0,
    7,  100,  -2873, 8,  100,  0,   11, 100, 0,    1,  -548, 0, 7,  -450, 985, 8,  -450, 0, 11, -450, 0, 1,  98,   0,
    7,  300,  1606,  8,  300,  0,   11, 300, 0,    1,  0,    0, 7,  0,    0,   11, 0,    0, 1,  -793, 0, 7,  -150, 5126,
    8,  -150, 0,     11, -150, 0,   1,  0,   0,    7,  0,    0, 11, 0,    0,   1,  -545, 0, 7,  -750, 0, 9,  -700, 0,
    11, -725, 0,     1,  293,  0,   7,  350, 0,    9,  300,  0, 11, 325,  0,   1,  -500, 0, 7,  -25,  0, 9,  -80,  0,
    11, -55,  0,     1,  0,    0,   6,  0,   0,    9,  0,    0, 11, 0,    0,   1,  -51,  0, 6,  -100, 0, 9,  100,  0,
    11, 75,   0,     1,  0,    0,   6,  0,   0,    9,  0,    0, 11, 0,    93,  1,  0,    0, 6,  0,    0, 11, 0,    0,
    1,  0,    0,     6,  100,  342, 9,  100, -333, 11, 0,    0, 1,  0,    0,   6,  0,    0, 11, 0,    0
};

u8 npc_1_matarou_r10_tex_index[] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };

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

aNPC_Animation_c cKF_ba_r_npc_1_matarou_r1 = {
    { cKF_ckcb_r_npc_1_matarou_r1_tbl, cKF_ds_npc_1_matarou_r1_tbl, cKF_kn_npc_1_matarou_r1_tbl,
      cKF_c_npc_1_matarou_r1_tbl, -1, 11 },
    1.0f,
    11.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_matarou_r11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_matarou_r10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    -1,
    -1,
    NULL,
    NULL,
};
