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

s16 cKF_c_npc_1_komari1_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_komari1_tbl[] = {
    1,  0,    0,   33, 0,    0,   1,  1000, 0,    17, 1025, 0,   33, 1000, 0,   1,  0,    0,    17, 75,   0,
    33, 0,    0,   1,  0,    0,   33, 0,    0,    1,  0,    0,   17, -20,  0,   33, 0,    0,    1,  0,    0,
    33, 0,    0,   1,  -175, 0,   33, -175, 0,    1,  -100, 0,   17, 0,    0,   33, -100, 0,    1,  25,   0,
    17, 0,    0,   33, 25,   0,   1,  0,    0,    33, 0,    0,   1,  200,  0,   17, 0,    0,    33, 200,  0,
    1,  0,    0,   33, 0,    0,   1,  0,    0,    33, 0,    0,   1,  -100, 0,   17, -20,  0,    33, -100, 0,
    1,  0,    0,   33, 0,    0,   1,  175,  0,    33, 175,  0,   1,  -100, 0,   17, 0,    0,    33, -100, 0,
    1,  -25,  0,   17, 0,    0,   33, -25,  0,    1,  0,    0,   33, 0,    0,   1,  200,  0,    17, 0,    0,
    33, 200,  0,   1,  0,    0,   33, 0,    0,    1,  0,    0,   33, 0,    0,   1,  -100, 0,    17, -20,  0,
    33, -100, 0,   1,  0,    0,   33, 0,    0,    1,  0,    0,   33, 0,    0,   1,  60,   0,    9,  0,    0,
    17, 60,   0,   25, 0,    0,   33, 60,   0,    1,  0,    0,   33, 0,    0,   1,  0,    0,    33, 0,    0,
    1,  95,   286, 4,  110,  0,   10, 50,   0,    19, 110,  0,   27, 50,   0,   33, 95,   286,  1,  0,    0,
    33, 0,    0,   1,  0,    0,   33, 0,    0,    1,  82,   -78, 2,  80,   0,   18, 130,  0,    33, 82,   -78,
    1,  0,    0,   33, 0,    0,   1,  0,    0,    33, 0,    0,   1,  33,   124, 5,  40,   0,    13, 0,    -402,
    21, -40,  0,   29, 0,    383, 33, 33,   124,  1,  -564, 252, 5,  -550, 0,   21, -650, 0,    33, -564, 252,
    1,  0,    0,   33, 0,    0,   1,  -57,  468,  7,  0,    0,   23, -180, 0,   33, -57,  468,  1,  0,    0,
    33, 0,    0,   1,  0,    0,   33, 0,    0,    1,  33,   124, 5,  40,   0,   13, 0,    -402, 21, -40,  0,
    29, 0,    383, 33, 33,   124, 1,  564,  -266, 5,  550,  0,   21, 650,  0,   33, 564,  -266, 1,  0,    0,
    33, 0,    0,   1,  -57,  468, 7,  0,    0,    23, -180, 0,   33, -57,  468, 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,  0,    0,
    33, 0,    0,   1,  -200, 0,   9,  -170, 0,    17, -200, 0,   25, -170, 0,   33, -200, 0,    1,  0,    -114,
    9,  -20,  0,   25, 20,   0,   33, 0,    -114, 1,  0,    0,   33, 0,    0,   1,  0,    0,    33, 0,    0,
    1,  0,    0,   33, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_komari1 = {
    { cKF_ckcb_r_npc_1_komari1_tbl, cKF_ds_npc_1_komari1_tbl, cKF_kn_npc_1_komari1_tbl, cKF_c_npc_1_komari1_tbl, -1,
      33 },
    1.0f,
    33.0f,
    cKF_FRAMECONTROL_REPEAT,
    -5.0f,
    NULL,
    aNPC_EYE_TEX0,
    4,
    NULL,
    aNPC_MOUTH_TEX2,
    3,
    -1,
    -1,
    NULL,
    NULL,
};
