#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_hate_i2_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_hate_i2_tbl[] = { 2, 2, 2, 2, 3, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 3, 2,
                                   2, 5, 2, 2, 5, 3, 2, 5, 2, 2, 2, 2, 2, 5, 2, 2, 2, 2, 2, 2, 2, 3, 5, 3, 2, 2, 2 };

s16 cKF_c_npc_1_hate_i2_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_hate_i2_tbl[] = {
    1,  0,    0,   31, 0,    0,   1,  950,  0,  31, 950,  0,    1,  0,    0,  31, 0,    0,   1,  0,    0,
    31, 0,    0,   1,  0,    0,   16, 10,   0,  31, 0,    0,    1,  80,   0,  31, 80,   0,   1,  -175, 0,
    31, -175, 0,   1,  -100, 0,   16, -90,  0,  31, -100, 0,    1,  -45,  0,  31, -45,  0,   1,  0,    0,
    31, 0,    0,   1,  190,  0,   31, 190,  0,  1,  0,    0,    31, 0,    0,  1,  0,    0,   31, 0,    0,
    1,  -90,  0,   31, -90,  0,   1,  0,    0,  31, 0,    0,    1,  211,  0,  16, 211,  0,   31, 211,  0,
    1,  -344, 0,   16, -334, 0,   31, -344, 0,  1,  -156, 0,    16, -156, 0,  31, -156, 0,   1,  0,    0,
    31, 0,    0,   1,  618,  0,   31, 618,  0,  1,  0,    0,    31, 0,    0,  1,  0,    0,   31, 0,    0,
    1,  -270, 0,   31, -270, 0,   1,  -51,  0,  31, -51,  0,    1,  75,   0,  31, 75,   0,   1,  -50,  0,
    15, -25,  0,   31, -50,  0,   1,  -30,  0,  31, -30,  0,    1,  0,    0,  31, 0,    0,   1,  25,   -428,
    9,  -25,  0,   16, 25,   430, 24, 75,   0,  31, 25,   -443, 1,  0,    0,  31, 0,    0,   1,  0,    0,
    31, 0,    0,   1,  80,   196, 8,  100,  0,  16, 80,   -149, 24, 60,   0,  31, 80,   191, 1,  -50,  0,
    16, -55,  0,   31, -50,  0,   1,  0,    0,  31, 0,    0,    1,  -280, 50, 8,  -275, 0,   16, -280, -38,
    24, -285, 0,   31, -280, 51,  1,  -500, 0,  31, -500, 0,    1,  0,    0,  31, 0,    0,   1,  -600, 0,
    31, -600, 0,   1,  0,    0,   31, 0,    0,  1,  -3,   0,    31, -3,   0,  1,  -280, 50,  8,  -275, 0,
    16, -280, -38, 24, -285, 0,   31, -280, 51, 1,  503,  0,    31, 503,  0,  1,  0,    0,   31, 0,    0,
    1,  -600, 0,   31, -600, 0,   1,  0,    0,  31, 0,    0,    1,  0,    0,  31, 0,    0,   1,  0,    0,
    31, 0,    0,   1,  0,    0,   31, 0,    0,  1,  20,   0,    15, 10,   0,  31, 20,   0,   1,  -50,  -150,
    8,  -65,  0,   16, -50,  109, 24, -35,  0,  31, -50,  -149, 1,  110,  0,  16, 115,  0,   31, 110,  0,
    1,  0,    0,   31, 0,    0,   1,  0,    0,  31, 0,    0,    1,  0,    0,  31, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_hate_i2 = {
    { cKF_ckcb_r_npc_1_hate_i2_tbl, cKF_ds_npc_1_hate_i2_tbl, cKF_kn_npc_1_hate_i2_tbl, cKF_c_npc_1_hate_i2_tbl, -1,
      31 },
    1.0f,
    31.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX2,
    3,
    -1,
    -1,
    NULL,
    NULL,
};
