#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_otikomu1_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_otikomu1_tbl[] = { 2, 5, 7, 2, 5, 2, 2, 9, 6, 2, 7, 2, 2, 8, 2, 2, 9, 6, 2, 7, 2, 2, 8, 2, 2, 6, 2,
                                    2, 7, 2, 2, 7, 2, 6, 6, 6, 2, 5, 2, 6, 6, 6, 2, 5, 2, 2, 2, 2, 2, 7, 2, 2, 5, 2 };

s16 cKF_c_npc_1_otikomu1_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_otikomu1_tbl[] = {
    1,  0,    0,    27, 0,    0,    1,  1000, 0,    11, 1000, 0,     12, 988,  -708,  14, 900,  0,     27, 900,  0,
    1,  0,    0,    5,  0,    0,    10, 75,   0,    11, 50,   0,     13, 125,  0,     14, 100,  0,     27, 100,  0,
    1,  0,    0,    27, 0,    0,    1,  0,    0,    5,  12,   217,   9,  50,   0,     13, -150, 0,     27, -150, 0,
    1,  0,    0,    27, 0,    0,    1,  -175, 0,    27, -175, 0,     1,  -100, 0,     5,  -85,  0,     9,  70,   0,
    10, 30,   0,    11, -60,  0,    12, -120, 0,    13, -240, 0,     14, -350, 0,     27, -350, 0,     1,  25,   0,
    11, 10,   -14,  12, 20,   750,  13, 60,   900,  14, 80,   43,    27, 80,   0,     1,  0,    0,     27, 0,    0,
    1,  200,  0,    5,  200,  0,    9,  50,   0,    11, 80,   0,     12, 120,  3235,  14, 550,  0,     27, 550,  0,
    1,  0,    0,    27, 0,    0,    1,  0,    0,    27, 0,    0,     1,  -100, 0,     5,  -100, 0,     10, -60,  0,
    11, -65,  0,    12, -110, 0,    13, -265, 0,    14, -350, 0,     27, -350, 0,     1,  0,    0,     27, 0,    0,
    1,  175,  0,    27, 175,  0,    1,  -100, 0,    5,  -85,  0,     9,  70,   0,     10, 30,   0,     11, -60,  0,
    12, -120, 0,    13, -240, 0,    14, -350, 0,    27, -350, 0,     1,  -25,  0,     11, -10,  0,     12, -20,  -17,
    13, -60,  0,    14, -80,  0,    27, -80,  0,    1,  0,    0,     27, 0,    0,     1,  200,  0,     5,  200,  0,
    9,  50,   0,    11, 80,   0,    12, 120,  3235, 14, 550,  0,     27, 550,  0,     1,  0,    0,     27, 0,    0,
    1,  0,    0,    27, 0,    0,    1,  -100, 0,    5,  -100, 0,     10, -60,  0,     11, -65,  0,     12, -110, 0,
    13, -265, 0,    14, -350, 0,    27, -350, 0,    1,  0,    0,     27, 0,    0,     1,  0,    0,     27, 0,    0,
    1,  60,   0,    8,  0,    -943, 13, -100, 0,    21, 300,  0,     25, 300,  0,     27, 300,  0,     1,  0,    0,
    27, 0,    0,    1,  0,    0,    27, 0,    0,    1,  82,   0,     6,  141,  695,   11, 250,  0,     17, -160, 0,
    21, 200,  0,    24, -100, 0,    27, 100,  0,    1,  0,    0,     27, 0,    0,     1,  0,    0,     27, 0,    0,
    1,  2,    -78,  5,  -10,  0,    12, 200,  0,    17, -150, 0,     20, -60,  0,     23, -120, 0,     27, -120, 0,
    1,  0,    0,    27, 0,    0,    1,  0,    0,    4,  0,    0,     10, 250,  0,     13, 190,  -1577, 16, 0,    0,
    27, 0,    0,    1,  58,   0,    4,  58,   0,    10, 50,   -116,  13, 0,    -1229, 16, -300, 0,     27, -300, 0,
    1,  -564, 240,  4,  -564, 240,  10, -500, 0,    13, -560, -1696, 16, -825, 0,     27, -825, 0,     1,  0,    0,
    27, 0,    0,    1,  -57,  468,  10, -57,  0,    13, -450, 0,     16, -57,  0,     27, -57,  0,     1,  0,    0,
    27, 0,    0,    1,  0,    0,    4,  0,    0,    10, -250, 0,     13, -190, 1599,  16, 0,    0,     27, 0,    0,
    1,  58,   0,    4,  58,   0,    10, 50,   -116, 13, 0,    -1229, 16, -300, 0,     27, -300, 0,     1,  564,  -272,
    4,  564,  -272, 10, 500,  0,    13, 560,  1574, 16, 825,  0,     27, 825,  0,     1,  0,    0,     27, 0,    0,
    1,  -57,  468,  10, -57,  0,    13, -450, 0,    16, -57,  0,     27, -57,  0,     1,  0,    0,     27, 0,    0,
    1,  0,    0,    27, 0,    0,    1,  0,    0,    27, 0,    0,     1,  0,    0,     27, 0,    0,     1,  0,    0,
    27, 0,    0,    1,  0,    0,    9,  -100, 0,    13, 220,  0,     19, -200, 0,     22, -100, 0,     25, -160, 0,
    27, -160, 0,    1,  0,    0,    27, 0,    0,    1,  0,    0,     27, 0,    0,     1,  0,    0,     5,  0,    0,
    9,  -200, 0,    14, -100, 0,    27, -100, 0,    1,  0,    0,     27, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_otikomu1 = {
    { cKF_ckcb_r_npc_1_otikomu1_tbl, cKF_ds_npc_1_otikomu1_tbl, cKF_kn_npc_1_otikomu1_tbl, cKF_c_npc_1_otikomu1_tbl, -1,
      27 },
    1.0f,
    27.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    NULL,
    aNPC_EYE_TEX0,
    4,
    NULL,
    aNPC_MOUTH_TEX0,
    4,
    16,
    eEC_EFFECT_OTIKOMI,
    NULL,
    NULL,
};
