#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_warudakumi1_tbl[] = {
    56, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 2, 2, 7, 0, 7, 7, 0, 7, 7, 7, 7, 0, 7, 0, 0
};

s16 cKF_kn_npc_1_warudakumi1_tbl[] = { 2, 3, 3, 2, 2, 2, 2, 3, 3, 2, 3, 2, 2, 3, 2, 2, 3, 3, 2, 3, 2, 2, 3, 2, 3,
                                       4, 4, 4, 2, 3, 3, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 2, 2, 3, 2 };

s16 cKF_c_npc_1_warudakumi1_tbl[] = { 0, 0, 900,  0, 0, 1800, 0, 0,    1800, 0, 900, 0, 0, 0, 0,   0,
                                      0, 0, -900, 0, 0, 900,  0, -900, 0,    0, 0,   0, 0, 0, -900 };

s16 cKF_ds_npc_1_warudakumi1_tbl[] = {
    1,  0,    0,     12, 0,    0,   1,  1000, 0, 10, 875,  0,    12, 875,  0,    1,  0,    0, 10, -50,  0,
    12, -50,  0,     1,  0,    0,   12, 0,    0, 1,  0,    0,    12, 0,    0,    1,  0,    0, 12, 0,    0,
    1,  -175, 0,     12, -175, 0,   1,  -100, 0, 10, -350, 0,    12, -350, 0,    1,  25,   0, 10, 100,  0,
    12, 100,  0,     1,  0,    0,   12, 0,    0, 1,  200,  0,    10, 650,  0,    12, 650,  0, 1,  0,    0,
    12, 0,    0,     1,  0,    0,   12, 0,    0, 1,  -100, 0,    10, -300, 0,    12, -300, 0, 1,  0,    0,
    12, 0,    0,     1,  175,  0,   12, 175,  0, 1,  -100, 0,    10, -350, 0,    12, -350, 0, 1,  -25,  0,
    10, -100, 0,     12, -100, 0,   1,  0,    0, 12, 0,    0,    1,  200,  0,    10, 650,  0, 12, 650,  0,
    1,  0,    0,     12, 0,    0,   1,  0,    0, 12, 0,    0,    1,  -100, 0,    10, -300, 0, 12, -300, 0,
    1,  0,    0,     12, 0,    0,   1,  60,   0, 8,  -100, -758, 12, -170, -297, 1,  82,   0, 5,  150,  0,
    10, -25,  -1010, 12, -50,  0,   1,  0,    0, 6,  -100, -491, 11, -130, 0,    12, -130, 0, 1,  2,    -78,
    6,  -50,  -321,  11, -70,  0,   12, -70,  0, 1,  0,    0,    12, 0,    0,    1,  0,    0, 9,  150,  0,
    12, 150,  0,     1,  58,   0,   9,  -650, 0, 12, -650, 0,    1,  -564, 240,  12, -564, 0, 1,  0,    0,
    12, 0,    0,     1,  -57,  468, 10, -750, 0, 12, -750, 0,    1,  0,    0,    12, 0,    0, 1,  0,    0,
    12, 0,    0,     1,  58,   0,   12, -110, 0, 1,  564,  -272, 12, 660,  0,    1,  0,    0, 12, 0,    0,
    1,  -57,  468,   12, -57,  0,   1,  0,    0, 12, 0,    0,    1,  0,    0,    12, 0,    0, 1,  0,    0,
    12, 0,    0,     1,  0,    0,   12, 0,    0, 1,  0,    0,    8,  -140, -418, 12, -170, 0, 1,  0,    0,
    8,  -140, -418,  12, -170, 0,   1,  0,    0, 12, 0,    0,    1,  0,    0,    12, 0,    0, 1,  0,    0,
    10, -150, 0,     12, -150, 0,   1,  0,    0, 12, 0,    0
};

u8 npc_1_warudakumi10_tex_index[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1 };

u8 npc_1_warudakumi11_tex_index[] = { 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3 };

aNPC_Animation_c cKF_ba_r_npc_1_warudakumi1 = {
    { cKF_ckcb_r_npc_1_warudakumi1_tbl, cKF_ds_npc_1_warudakumi1_tbl, cKF_kn_npc_1_warudakumi1_tbl,
      cKF_c_npc_1_warudakumi1_tbl, -1, 12 },
    1.0f,
    12.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_warudakumi11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_warudakumi10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    5,
    eEC_EFFECT_TAKURAMI,
    NULL,
    NULL,
};
