#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_otikomu2_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_otikomu2_tbl[] = { 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3,
                                    2, 3, 2, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 2, 2, 2 };

s16 cKF_c_npc_1_otikomu2_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_otikomu2_tbl[] = {
    1,  0,    0,   31, 0,    0, 1,  900,  0, 16, 925,  0, 31, 900,  0,    1,  100,  0,   31, 100,  0,
    1,  0,    0,   17, 0,    0, 31, 0,    0, 1,  -150, 0, 17, -125, 0,    31, -150, 0,   1,  0,    0,
    17, 0,    0,   31, 0,    0, 1,  -175, 0, 16, -156, 0, 31, -175, 0,    1,  -350, 0,   16, -297, 0,
    31, -350, 0,   1,  80,   0, 16, 66,   0, 31, 80,   0, 1,  0,    0,    16, 0,    0,   31, 0,    0,
    1,  550,  0,   16, 481,  0, 31, 550,  0, 1,  0,    0, 16, 0,    0,    31, 0,    0,   1,  0,    0,
    16, 0,    0,   31, 0,    0, 1,  -350, 0, 16, -300, 0, 31, -350, 0,    1,  0,    0,   16, -13,  0,
    31, 0,    0,   1,  175,  0, 16, 156,  0, 31, 175,  0, 1,  -350, 0,    16, -297, 0,   31, -350, 0,
    1,  -80,  0,   16, -66,  0, 31, -80,  0, 1,  0,    0, 16, 0,    0,    31, 0,    0,   1,  550,  0,
    16, 481,  0,   31, 550,  0, 1,  0,    0, 16, 0,    0, 31, 0,    0,    1,  0,    0,   16, 0,    0,
    31, 0,    0,   1,  -350, 0, 16, -300, 0, 31, -350, 0, 1,  0,    0,    16, 13,   0,   31, 0,    0,
    1,  0,    0,   31, 0,    0, 1,  300,  0, 16, 325,  0, 31, 300,  0,    1,  0,    353, 16, 0,    -360,
    31, 0,    354, 1,  0,    0, 31, 0,    0, 1,  100,  0, 16, 150,  0,    31, 100,  0,   1,  0,    0,
    31, 0,    0,   1,  0,    0, 16, 0,    0, 31, 0,    0, 1,  -120, -151, 16, -120, 151, 31, -120, -150,
    1,  0,    0,   16, 0,    0, 31, 0,    0, 1,  0,    0, 31, 0,    0,    1,  -300, 0,   31, -300, 0,
    1,  -825, 0,   31, -825, 0, 1,  0,    0, 31, 0,    0, 1,  -57,  0,    31, -57,  0,   1,  0,    0,
    31, 0,    0,   1,  0,    0, 31, 0,    0, 1,  -300, 0, 31, -300, 0,    1,  825,  0,   31, 825,  0,
    1,  0,    0,   31, 0,    0, 1,  -57,  0, 31, -57,  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,  0,    0,   15, 0,    0,
    31, 0,    0,   1,  -160, 0, 15, -200, 0, 31, -160, 0, 1,  0,    0,    15, 0,    0,   31, 0,    0,
    1,  0,    0,   31, 0,    0, 1,  -100, 0, 31, -100, 0, 1,  0,    0,    31, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_otikomu2 = {
    { cKF_ckcb_r_npc_1_otikomu2_tbl, cKF_ds_npc_1_otikomu2_tbl, cKF_kn_npc_1_otikomu2_tbl, cKF_c_npc_1_otikomu2_tbl, -1,
      31 },
    1.0f,
    31.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    4,
    NULL,
    aNPC_MOUTH_TEX2,
    4,
    -1,
    eEC_EFFECT_OTIKOMI,
    NULL,
    NULL,
};
