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

s16 cKF_c_npc_1_hate_d1_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_d1_tbl[] = {
    1,  0,    0,   13, 0,    0, 1,  2400, 0,    13, 2400, 0, 1,  0,    0,   13, 0,    0,  1,  0,    0,   13, 0,    0,
    1,  60,   0,   7,  40,   0, 13, 60,   0,    1,  0,    0, 13, 0,    0,   1,  -750, 0,  7,  -730, 0,   13, -750, 0,
    1,  -520, 0,   7,  -530, 0, 13, -520, 0,    1,  300,  0, 7,  320,  0,   13, 300,  0,  1,  0,    0,   13, 0,    0,
    1,  350,  0,   7,  400,  0, 13, 350,  0,    1,  0,    0, 13, 0,    0,   1,  0,    0,  13, 0,    0,   1,  -100, 0,
    13, -100, 0,   1,  0,    0, 13, 0,    0,    1,  750,  0, 7,  730,  0,   13, 750,  0,  1,  -520, 0,   7,  -530, 0,
    13, -520, 0,   1,  -300, 0, 7,  -320, 0,    13, -300, 0, 1,  0,    0,   13, 0,    0,  1,  350,  0,   7,  400,  0,
    13, 350,  0,   1,  0,    0, 13, 0,    0,    1,  0,    0, 13, 0,    0,   1,  -100, 0,  13, -100, 0,   1,  0,    0,
    13, 0,    0,   1,  0,    0, 13, 0,    0,    1,  -250, 0, 13, -250, 0,   1,  0,    0,  13, 0,    0,   1,  0,    0,
    13, 0,    0,   1,  -100, 0, 13, -100, 0,    1,  0,    0, 13, 0,    0,   1,  0,    0,  13, 0,    0,   1,  -70,  -101,
    13, 80,   196, 1,  0,    0, 7,  -15,  -152, 13, -50,  0, 1,  0,    0,   11, -450, 0,  13, -450, 0,   1,  50,   0,
    11, -700, 0,   13, -700, 0, 1,  -650, 0,    11, -200, 0, 13, -200, 0,   1,  0,    0,  13, 0,    0,   1,  -250, 0,
    11, -750, 0,   13, -750, 0, 1,  0,    0,    13, 0,    0, 1,  0,    0,   10, 150,  0,  13, 150,  0,   1,  50,   0,
    10, 100,  0,   13, 100,  0, 1,  650,  0,    10, 600,  0, 13, 600,  0,   1,  0,    0,  13, 0,    0,   1,  -250, 0,
    10, -150, 0,   13, -120, 0, 1,  0,    0,    13, 0,    0, 1,  0,    0,   6,  -10,  56, 11, 15,   113, 13, 20,   0,
    1,  -80,  0,   7,  50,   0, 13, -50,  -147, 1,  0,    0, 7,  25,   297, 13, 110,  0,  1,  0,    0,   13, 0,    0,
    1,  0,    0,   13, 0,    0, 1,  0,    0,    13, 0,    0
};

u8 npc_1_hate_d10_tex_index[] = { 0, 1, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0 };

aNPC_Animation_c cKF_ba_r_npc_1_hate_d1 = {
    { cKF_ckcb_r_npc_1_hate_d1_tbl, cKF_ds_npc_1_hate_d1_tbl, cKF_kn_npc_1_hate_d1_tbl, cKF_c_npc_1_hate_d1_tbl, -1,
      13 },
    1.0f,
    13.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_hate_d10_tex_index,
    aNPC_EYE_TEX0,
    -1,
    NULL,
    aNPC_MOUTH_TEX0,
    3,
    8,
    eEC_EFFECT_GIMONHU,
    NULL,
    NULL,
};
