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

s16 cKF_c_npc_1_piku_seg1_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_piku_seg1_tbl[] = {
    1,  0,    0, 71, 0,    0,    1,  700,  0,   71, 700,  0,    1,  -1750, 0, 71, -1750, 0,    1,  0,    0,
    10, 0,    0, 21, 25,   0,    59, 0,    0,   71, 0,    0,    1,  -850,  0, 10, -850,  0,    21, -800, 0,
    59, -900, 0, 71, -850, 0,    1,  0,    0,   71, 0,    0,    1,  -250,  0, 71, -250,  0,    1,  -200, 0,
    6,  -100, 0, 10, -170, 0,    21, -145, 0,   30, -160, -127, 59, -250,  0, 71, -200,  0,    1,  200,  0,
    6,  150,  0, 71, 200,  0,    1,  0,    0,   71, 0,    0,    1,  400,   0, 6,  -50,   0,    10, 150,  0,
    41, 150,  0, 71, 400,  0,    1,  0,    0,   71, 0,    0,    1,  0,     0, 71, 0,     0,    1,  250,  0,
    6,  700,  0, 10, 550,  0,    41, 550,  0,   71, 250,  0,    1,  0,     0, 71, 0,     0,    1,  100,  0,
    71, 100,  0, 1,  -500, 0,    6,  -275, 0,   10, -345, 0,    21, -288,  0, 41, -340,  -206, 59, -490, -100,
    71, -500, 0, 1,  -100, 0,    6,  -50,  0,   21, -75,  0,    71, -100,  0, 1,  0,     0,    71, 0,    0,
    1,  800,  0, 6,  200,  0,    10, 400,  0,   41, 400,  0,    71, 800,   0, 1,  0,     0,    71, 0,    0,
    1,  0,    0, 71, 0,    0,    1,  270,  0,   6,  700,  0,    10, 550,   0, 41, 550,   0,    71, 270,  0,
    1,  2,    0, 71, 2,    0,    1,  0,    0,   71, 0,    0,    1,  -22,   0, 7,  -200,  0,    9,  -150, 0,
    11, -200, 0, 16, -200, 0,    55, -125, 190, 71, -22,  0,    1,  0,     0, 16, 0,     0,    27, 13,   94,
    46, 50,   0, 63, -50,  0,    71, 0,    0,   1,  0,    0,    71, 0,     0, 1,  -179,  0,    5,  -50,  0,
    8,  -100, 0, 12, -100, 0,    20, -200, 0,   28, -100, 0,    56, -200,  0, 71, -179,  0,    1,  0,    0,
    71, 0,    0, 1,  0,    0,    10, 0,    0,   21, -25,  0,    59, 0,     0, 71, 0,     0,    1,  -50,  0,
    10, -50,  0, 16, -60,  -118, 21, -85,  0,   59, 0,    0,    71, -50,   0, 1,  0,     0,    71, 0,    0,
    1,  -850, 0, 10, -850, 0,    18, -800, 0,   71, -850, 0,    1,  -150,  0, 10, -150,  0,    18, -175, 0,
    71, -150, 0, 1,  0,    0,    5,  -35,  0,   10, -20,  0,    71, 0,     0, 1,  0,     0,    71, 0,    0,
    1,  -400, 0, 6,  -300, 0,    11, -350, 0,   46, -300, 0,    71, -400,  0, 1,  0,     0,    71, 0,    0,
    1,  850,  0, 10, 850,  0,    18, 800,  0,   71, 850,  0,    1,  -150,  0, 10, -150,  0,    18, -175, 0,
    71, -150, 0, 1,  -138, 0,    5,  -100, 0,   10, -115, 0,    71, -138,  0, 1,  0,     0,    71, 0,    0,
    1,  -400, 0, 6,  -300, 0,    11, -350, 0,   48, -300, 0,    71, -400,  0, 1,  0,     0,    71, 0,    0,
    1,  -104, 0, 71, -104, 0,    1,  386,  0,   71, 386,  0,    1,  -181,  0, 71, -181,  0,    1,  550,  0,
    10, 500,  0, 27, 500,  0,    43, 450,  0,   49, 500,  0,    55, 450,   0, 71, 550,   0,    1,  400,  0,
    10, 475,  0, 21, 435,  0,    49, 475,  0,   71, 400,  0,    1,  0,     0, 16, 25,    0,    44, -25,  0,
    61, 0,    0, 71, 0,    0,    1,  0,    0,   71, 0,    0,    1,  0,     0, 12, -250,  0,    43, -150, 0,
    47, -275, 0, 50, -175, 0,    53, -250, 0,   61, 0,    0,    66, -175,  0, 71, 0,     0,    1,  0,    0,
    71, 0,    0
};

u8 npc_1_piku_seg11_tex_index[] = { 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1,
                                    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
                                    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 };

aNPC_Animation_c cKF_ba_r_npc_1_piku_seg1 = {
    { cKF_ckcb_r_npc_1_piku_seg1_tbl, cKF_ds_npc_1_piku_seg1_tbl, cKF_kn_npc_1_piku_seg1_tbl, cKF_c_npc_1_piku_seg1_tbl,
      -1, 71 },
    1.0f,
    71.0f,
    cKF_FRAMECONTROL_STOP,
    0.0f,
    npc_1_piku_seg11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    NULL,
    aNPC_MOUTH_TEX0,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
