#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_d2_tbl[] = { 56, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 7, 7, 0, 7, 7, 0, 7, 0, 7, 0, 0 };

s16 cKF_kn_npc_1_hate_d2_tbl[] = { 2, 2, 2, 2, 3, 2, 3, 2, 3, 2, 3, 2, 2, 2, 2, 3, 2, 3, 2, 3, 2, 2, 2, 2, 2, 2,
                                   2, 2, 2, 2, 2, 5, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 5, 3, 2, 2, 2 };

s16 cKF_c_npc_1_hate_d2_tbl[] = { 0, 0, 900, 0, 0, 1800, 0, 0,    1800, 0, 900, 0, 0, 0, -900,
                                  0, 0, 900, 0, 0, 0,    0, -900, 0,    0, 0,   0, 0, 0, -900 };

s16 cKF_ds_npc_1_hate_d2_tbl[] = {
    1,  0,    0,    31, 0,    0,    1,  2400, 0, 31, 2400, 0,    1,  0,    0, 31, 0,    0,   1,  0,    0,
    31, 0,    0,    1,  60,   0,    16, 70,   0, 31, 60,   0,    1,  0,    0, 31, 0,    0,   1,  -750, 0,
    16, -730, 0,    31, -750, 0,    1,  -520, 0, 31, -520, 0,    1,  300,  0, 16, 310,  0,   31, 300,  0,
    1,  0,    0,    31, 0,    0,    1,  350,  0, 16, 300,  0,    31, 350,  0, 1,  0,    0,   31, 0,    0,
    1,  0,    0,    31, 0,    0,    1,  -100, 0, 31, -100, 0,    1,  0,    0, 31, 0,    0,   1,  750,  0,
    16, 730,  0,    31, 750,  0,    1,  -520, 0, 31, -520, 0,    1,  -300, 0, 16, -310, 0,   31, -300, 0,
    1,  0,    0,    31, 0,    0,    1,  350,  0, 16, 300,  0,    31, 350,  0, 1,  0,    0,   31, 0,    0,
    1,  0,    0,    31, 0,    0,    1,  -100, 0, 31, -100, 0,    1,  0,    0, 31, 0,    0,   1,  0,    0,
    31, 0,    0,    1,  -250, 0,    31, -250, 0, 1,  0,    0,    31, 0,    0, 1,  0,    0,   31, 0,    0,
    1,  -100, 0,    31, -100, 0,    1,  0,    0, 31, 0,    0,    1,  0,    0, 31, 0,    0,   1,  80,   196,
    8,  100,  0,    16, 80,   -153, 24, 60,   0, 31, 80,   198,  1,  -50,  0, 16, -55,  0,   31, -50,  0,
    1,  -450, 0,    15, -390, 0,    31, -450, 0, 1,  -700, 0,    15, -640, 0, 31, -700, 0,   1,  -200, 0,
    15, -170, 0,    31, -200, 0,    1,  0,    0, 31, 0,    0,    1,  -750, 0, 31, -750, 0,   1,  0,    0,
    31, 0,    0,    1,  150,  0,    31, 150,  0, 1,  100,  0,    31, 100,  0, 1,  600,  0,   16, 580,  0,
    31, 600,  0,    1,  0,    0,    31, 0,    0, 1,  -120, 0,    31, -120, 0, 1,  0,    0,   31, 0,    0,
    1,  20,   0,    15, 10,   0,    31, 20,   0, 1,  -50,  -147, 8,  -65,  0, 16, -50,  109, 24, -35,  0,
    31, -50,  -150, 1,  110,  0,    15, 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_d2 = {
    { cKF_ckcb_r_npc_1_hate_d2_tbl, cKF_ds_npc_1_hate_d2_tbl, cKF_kn_npc_1_hate_d2_tbl, cKF_c_npc_1_hate_d2_tbl, -1,
      31 },
    1.0f,
    31.0f,
    cKF_FRAMECONTROL_STOP,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX2,
    3,
    -1,
    -1,
    NULL,
    NULL,
};
