#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_warudakumi2_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_warudakumi2_tbl[] = {
    2, 7, 2, 2, 7, 2, 7, 7, 7, 2, 7, 2, 2, 7, 2, 7, 7, 7, 2, 7, 2, 2, 7, 2, 2, 6, 2,
    2, 7, 2, 2, 7, 2, 7, 7, 7, 2, 7, 2, 2, 2, 7, 2, 4, 2, 2, 2, 2, 2, 7, 7, 2, 2, 2
};

s16 cKF_c_npc_1_warudakumi2_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_warudakumi2_tbl[] = {
    1,  0,    0, 25, 0,    0, 1,  875,  0, 5,  850,  0,    9,  875,  0, 13, 850,  0, 17, 875,  0,    21, 850,  0,
    25, 875,  0, 1,  -50,  0, 25, -50,  0, 1,  0,    0,    25, 0,    0, 1,  0,    0, 5,  -10,  0,    9,  0,    0,
    13, -10,  0, 17, 0,    0, 21, -10,  0, 25, 0,    0,    1,  0,    0, 25, 0,    0, 1,  -175, 0,    5,  -184, 0,
    9,  -175, 0, 13, -184, 0, 17, -175, 0, 21, -184, 0,    25, -175, 0, 1,  -350, 0, 5,  -386, 0,    9,  -350, 0,
    13, -386, 0, 17, -350, 0, 21, -386, 0, 25, -350, 0,    1,  100,  0, 5,  113,  0, 9,  100,  0,    13, 113,  0,
    17, 100,  0, 21, 113,  0, 25, 100,  0, 1,  0,    0,    25, 0,    0, 1,  650,  0, 5,  708,  0,    9,  650,  0,
    13, 708,  0, 17, 650,  0, 21, 708,  0, 25, 650,  0,    1,  0,    0, 25, 0,    0, 1,  0,    0,    25, 0,    0,
    1,  -300, 0, 5,  -330, 0, 9,  -300, 0, 13, -330, 0,    17, -300, 0, 21, -330, 0, 25, -300, 0,    1,  0,    0,
    25, 0,    0, 1,  175,  0, 5,  184,  0, 9,  175,  0,    13, 184,  0, 17, 175,  0, 21, 184,  0,    25, 175,  0,
    1,  -350, 0, 5,  -386, 0, 9,  -350, 0, 13, -386, 0,    17, -350, 0, 21, -386, 0, 25, -350, 0,    1,  -100, 0,
    5,  -113, 0, 9,  -100, 0, 13, -113, 0, 17, -100, 0,    21, -113, 0, 25, -100, 0, 1,  0,    0,    25, 0,    0,
    1,  650,  0, 5,  708,  0, 9,  650,  0, 13, 708,  0,    17, 650,  0, 21, 708,  0, 25, 650,  0,    1,  0,    0,
    25, 0,    0, 1,  0,    0, 25, 0,    0, 1,  -300, 0,    5,  -330, 0, 9,  -300, 0, 13, -330, 0,    17, -300, 0,
    21, -330, 0, 25, -300, 0, 1,  0,    0, 25, 0,    0,    1,  0,    0, 25, 0,    0, 1,  -170, -297, 2,  -175, 0,
    8,  -100, 0, 14, -50,  0, 20, -100, 0, 25, -170, -297, 1,  0,    0, 25, 0,    0, 1,  0,    0,    25, 0,    0,
    1,  -50,  0, 5,  150,  0, 9,  -50,  0, 13, 150,  0,    17, -50,  0, 21, 150,  0, 25, -50,  0,    1,  0,    0,
    25, 0,    0, 1,  -130, 0, 25, -130, 0, 1,  -70,  0,    5,  -125, 0, 9,  -95,  0, 13, -150, 0,    17, -95,  0,
    21, -125, 0, 25, -70,  0, 1,  0,    0, 25, 0,    0,    1,  150,  0, 5,  100,  0, 9,  150,  0,    13, 100,  0,
    17, 150,  0, 21, 100,  0, 25, 150,  0, 1,  -650, 0,    5,  -675, 0, 9,  -650, 0, 13, -675, 0,    17, -650, 0,
    21, -675, 0, 25, -650, 0, 1,  -564, 0, 5,  -550, 0,    9,  -564, 0, 13, -550, 0, 17, -564, 0,    21, -550, 0,
    25, -564, 0, 1,  0,    0, 25, 0,    0, 1,  -750, 0,    5,  -800, 0, 9,  -750, 0, 13, -800, 0,    17, -750, 0,
    21, -800, 0, 25, -750, 0, 1,  0,    0, 25, 0,    0,    1,  0,    0, 25, 0,    0, 1,  -110, 0,    25, -110, 0,
    1,  660,  0, 5,  620,  0, 9,  650,  0, 13, 620,  0,    17, 650,  0, 21, 620,  0, 25, 660,  0,    1,  0,    0,
    25, 0,    0, 1,  -57,  0, 9,  -57,  0, 17, -57,  0,    25, -57,  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,  -170, 0, 25, -170, 0,    1,  -170, 0,
    5,  -75,  0, 9,  -170, 0, 13, -75,  0, 17, -170, 0,    21, -75,  0, 25, -170, 0, 1,  0,    0,    5,  25,   0,
    9,  0,    0, 13, 25,   0, 17, 0,    0, 21, 25,   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_warudakumi2 = {
    { cKF_ckcb_r_npc_1_warudakumi2_tbl, cKF_ds_npc_1_warudakumi2_tbl, cKF_kn_npc_1_warudakumi2_tbl,
      cKF_c_npc_1_warudakumi2_tbl, -1, 25 },
    1.0f,
    25.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    3,
    NULL,
    aNPC_MOUTH_TEX1,
    1,
    -1,
    -1,
    NULL,
    NULL,
};
