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

s16 cKF_c_npc_1_hate_f1_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_f1_tbl[] = {
    1,  0,    0,  13, 0,    0,  1,  975,  0,    13, 950,  0,    1,  0,    0,   13, 0,    0,    1,  0,    0,
    13, 0,    0,  1,  60,   0,  13, 0,    0,    1,  90,   0,    13, 80,   0,   1,  -185, 0,    7,  -183, 13,
    13, -181, 0,  1,  40,   0,  7,  -75,  -622, 13, -143, 0,    1,  -85,  0,   7,  -53,  203,  13, -35,  0,
    1,  0,    0,  13, 0,    0,  1,  40,   0,    7,  231,  1011, 13, 314,  0,   1,  0,    0,    13, 0,    0,
    1,  0,    0,  13, 0,    0,  1,  -15,  0,    7,  -114, -553, 13, -159, 0,   1,  0,    0,    13, 0,    0,
    1,  180,  0,  7,  196,  91, 13, 206,  0,    1,  -260, 0,    13, -345, 0,   1,  -145, 0,    13, -155, 0,
    1,  0,    0,  13, 0,    0,  1,  560,  0,    7,  590,  200,  13, 618,  0,   1,  0,    0,    13, 0,    0,
    1,  0,    0,  13, 0,    0,  1,  -240, 0,    13, -268, 0,    1,  -40,  0,   7,  -46,  0,    13, -44,  0,
    1,  0,    0,  13, 75,   0,  1,  60,   0,    7,  -25,  -383, 13, -50,  0,   1,  0,    0,    13, -30,  0,
    1,  0,    0,  13, 0,    0,  1,  82,   0,    5,  65,   -264, 9,  -25,  0,   13, 25,   -429, 1,  0,    0,
    13, 0,    0,  1,  0,    0,  13, 0,    0,    1,  100,  0,    13, 80,   197, 1,  -50,  0,    7,  -85,  151,
    13, -50,  0,  1,  -120, 0,  13, -120, 0,    1,  -700, 0,    13, -700, 0,   1,  -450, 0,    13, -450, 0,
    1,  0,    0,  13, 0,    0,  1,  -50,  0,    13, -50,  0,    1,  0,    0,   13, 0,    0,    1,  0,    0,
    13, 0,    0,  1,  50,   0,  6,  0,    0,    13, 50,   0,    1,  300,  0,   7,  250,  0,    13, 300,  189,
    1,  0,    0,  13, 0,    0,  1,  -57,  0,    8,  -100, 0,    13, -57,  0,   1,  0,    0,    13, 0,    0,
    1,  0,    0,  13, 0,    0,  1,  0,    0,    13, 0,    0,    1,  0,    0,   13, 0,    0,    1,  0,    0,
    6,  -10,  56, 13, 20,   0,  1,  -200, 0,    13, -50,  -151, 1,  -10,  0,   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_f11_tex_index[] = { 0, 1, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0 };

aNPC_Animation_c cKF_ba_r_npc_1_hate_f1 = {
    { cKF_ckcb_r_npc_1_hate_f1_tbl, cKF_ds_npc_1_hate_f1_tbl, cKF_kn_npc_1_hate_f1_tbl, cKF_c_npc_1_hate_f1_tbl, -1,
      13 },
    1.0f,
    13.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_hate_f11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    NULL,
    aNPC_MOUTH_TEX0,
    3,
    8,
    eEC_EFFECT_GIMONHU,
    NULL,
    NULL,
};
