#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_punpun_r1_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_punpun_r1_tbl[] = { 2, 4, 4, 2, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
                                     2, 2, 2, 2, 4, 4, 3, 3, 3, 2, 3, 2, 3, 3, 3, 2, 3, 2, 2, 2, 2, 2, 4, 2, 2, 5, 2 };

s16 cKF_c_npc_1_punpun_r1_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_punpun_r1_tbl[] = {
    1,  0,    0,    12, 0,    0,    1,  0,    0,   6,  -50,  0,   9,  -25,  371, 12, 0,     0,    1,  0,    0,
    8,  0,    0,    10, 150,  0,    12, 150,  0,   1,  0,    0,   12, 0,    0,   1,  50,    0,    6,  100,  0,
    12, -30,  0,    1,  0,    0,    9,  -200, 0,   12, 100,  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,    12, 0,    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,    12, 0,    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,   12, 0,     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,    12, 0,    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,   12, 0,    0,   1,  -50,   0,    5,  -50,  0,
    9,  130,  0,    12, -250, -159, 1,  0,    171, 6,  0,    0,   9,  150,  0,   12, -100,  0,    1,  0,    0,
    6,  200,  0,    12, 0,    0,    1,  -53,  72,  6,  0,    0,   12, 0,    0,   1,  -270,  -462, 6,  100,  0,
    12, -300, 0,    1,  140,  -331, 12, 0,    0,   1,  -693, 185, 6,  -300, 0,   12, -1000, 0,    1,  -115, 724,
    12, 0,    0,    1,  403,  -73,  6,  600,  0,   12, 403,  -73, 1,  -548, -73, 6,  -450,  0,    12, -548, -73,
    1,  98,   75,   6,  -200, 0,    12, 98,   75,  1,  0,    0,   12, 0,    0,   1,  -793,  -106, 7,  -450, 0,
    12, -793, -106, 1,  0,    0,    12, 0,    0,   1,  -545, 459, 12, -545, 459, 1,  293,   -576, 12, 293,  -576,
    1,  -500, 833,  12, -500, 833,  1,  -10,  121, 12, 0,    0,   1,  -51,  37,  5,  -150,  0,    10, 150,  1529,
    12, 200,  -188, 1,  0,    0,    12, 0,    0,   1,  0,    0,   12, 0,    0,   1,  0,     0,    4,  -400, 0,
    7,  -400, 0,    9,  0,    0,    12, 0,    0,   1,  0,    0,   12, 0,    0
};

u8 npc_1_punpun_r10_tex_index[] = { 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4 };

u8 npc_1_punpun_r11_tex_index[] = { 0, 1, 2, 2, 2, 2, 2, 2, 4, 4, 4, 4 };

aNPC_Animation_c cKF_ba_r_npc_1_punpun_r1 = {
    { cKF_ckcb_r_npc_1_punpun_r1_tbl, cKF_ds_npc_1_punpun_r1_tbl, cKF_kn_npc_1_punpun_r1_tbl, cKF_c_npc_1_punpun_r1_tbl,
      -1, 12 },
    1.0f,
    12.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_punpun_r11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_punpun_r10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    2,
    eEC_EFFECT_PUN,
    NULL,
    NULL,
};
