#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_kiduku2_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_kiduku2_tbl[] = { 6, 9, 2, 3, 2, 6, 7, 9, 9, 2, 9, 2, 2, 9, 2, 7, 9, 9, 2, 9, 2, 2, 9, 2, 2, 5, 4,
                                   2, 6, 4, 6, 4, 6, 6, 4, 6, 2, 2, 2, 6, 4, 6, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 };

s16 cKF_c_npc_1_kiduku2_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_kiduku2_tbl[] = {
    1,  0,    746,   4,  50,   0,     10, -50,  0,     16, 50,   0,    22, -50,  0,    25, 0,    759,  1,  1000, 0,
    4,  975,  0,     7,  1000, 0,     10, 975,  0,     13, 1000, 0,    16, 975,  0,    19, 1000, 0,    22, 975,  0,
    25, 1000, 0,     1,  0,    0,     25, 0,    0,     1,  -80,  0,    13, 80,   0,    25, -80,  0,    1,  0,    0,
    25, 0,    0,     1,  0,    -701,  4,  -50,  0,     10, 50,   0,    16, -50,  0,    22, 50,   0,    25, 0,    -638,
    1,  -175, 0,     7,  -175, 0,     10, -150, 0,     13, -175, 0,    19, -175, 0,    22, -150, 0,    25, -175, 0,
    1,  -100, 0,     4,  -200, 0,     7,  -100, 0,     10, -450, 0,    13, -100, 0,    16, -200, 0,    19, -100, 0,
    22, -450, 0,     25, -100, 0,     1,  25,   0,     4,  75,   0,    7,  25,   0,    10, 150,  0,    13, 25,   0,
    16, 75,   0,     19, 25,   0,     22, 150,  0,     25, 25,   0,    1,  0,    0,    25, 0,    0,    1,  200,  0,
    4,  400,  0,     7,  200,  0,     10, 950,  0,     13, 200,  0,    16, 400,  0,    19, 200,  0,    22, 950,  0,
    25, 200,  0,     1,  0,    0,     25, 0,    0,     1,  0,    0,    25, 0,    0,    1,  -100, 0,    4,  -200, 0,
    7,  -100, 0,     10, -300, 0,     13, -100, 0,     16, -200, 0,    19, -100, 0,    22, -300, 0,    25, -100, 0,
    1,  0,    0,     25, 0,    0,     1,  175,  0,     4,  150,  0,    7,  175,  0,    13, 175,  0,    16, 150,  0,
    19, 175,  0,     25, 175,  0,     1,  -100, 0,     4,  -450, 0,    7,  -100, 0,    10, -200, 0,    13, -100, 0,
    16, -450, 0,     19, -100, 0,     22, -200, 0,     25, -100, 0,    1,  -25,  0,    4,  -150, 0,    7,  -25,  0,
    10, -75,  0,     13, -25,  0,     16, -150, 0,     19, -25,  0,    22, -75,  0,    25, -25,  0,    1,  0,    0,
    25, 0,    0,     1,  200,  0,     4,  950,  0,     7,  200,  0,    10, 400,  0,    13, 200,  0,    16, 950,  0,
    19, 200,  0,     22, 400,  0,     25, 200,  0,     1,  0,    0,    25, 0,    0,    1,  0,    0,    25, 0,    0,
    1,  -100, 0,     4,  -300, 0,     7,  -100, 0,     10, -200, 0,    13, -100, 0,    16, -300, 0,    19, -100, 0,
    22, -200, 0,     25, -100, 0,     1,  0,    0,     25, 0,    0,    1,  0,    0,    25, 0,    0,    1,  0,    0,
    7,  -200, 0,     13, 0,    0,     19, -200, 0,     25, 0,    0,    1,  -38,  499,  9,  80,   0,    21, -80,  0,
    25, -38,  499,   1,  0,    0,     25, 0,    0,     1,  -178, 1563, 6,  100,  0,    12, -200, 0,    18, 100,  0,
    24, -200, 0,     25, -178, 1563,  1,  -68,  346,   11, 80,   0,    23, -80,  0,    25, -68,  339,  1,  0,    1527,
    4,  150,  0,     10, -150, 0,     16, 150,  0,     22, -150, 0,    25, 0,    1489, 1,  100,  -751, 7,  0,    0,
    19, 200,  0,     25, 100,  -751,  1,  0,    739,   4,  50,   0,    10, -50,  0,    16, 50,   0,    22, -50,  0,
    25, 0,    739,   1,  -560, -2692, 3,  -650, 0,     9,  -300, 0,    15, -650, 0,    21, -300, 0,    25, -560, -2692,
    1,  -355, 153,   3,  -350, 0,     13, -400, 0,     25, -355, 153,  1,  175,  3728, 3,  300,  0,    9,  -200, 0,
    15, 300,  0,     21, -203, 0,     25, 175,  3728,  1,  0,    0,    25, 0,    0,    1,  -450, 0,    25, -450, 0,
    1,  0,    0,     25, 0,    0,     1,  390,  -2640, 3,  300,  0,    9,  650,  0,    15, 300,  0,    21, 650,  0,
    25, 390,  -2640, 1,  -395, -120,  3,  -400, 0,     13, -350, 0,    25, -395, -120, 1,  75,   3811, 3,  200,  0,
    9,  -300, 0,     15, 200,  0,     21, -300, 0,     25, 75,   3811, 1,  0,    0,    25, 0,    0,    1,  -450, 0,
    25, -450, 0,     1,  0,    0,     25, 0,    0,     1,  0,    0,    25, 0,    0,    1,  0,    0,    25, 0,    0,
    1,  0,    0,     25, 0,    0,     1,  0,    0,     25, 0,    0,    1,  150,  0,    25, 150,  0,    1,  0,    0,
    25, 0,    0,     1,  0,    0,     25, 0,    0,     1,  -150, 0,    25, -150, 0,    1,  0,    0,    25, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_kiduku2 = {
    { cKF_ckcb_r_npc_1_kiduku2_tbl, cKF_ds_npc_1_kiduku2_tbl, cKF_kn_npc_1_kiduku2_tbl, cKF_c_npc_1_kiduku2_tbl, -1,
      25 },
    1.0f,
    25.0f,
    cKF_FRAMECONTROL_REPEAT,
    -5.0f,
    NULL,
    aNPC_EYE_TEX0,
    6,
    NULL,
    aNPC_MOUTH_TEX0,
    4,
    -1,
    eEC_EFFECT_ASE2,
    NULL,
    NULL,
};
