#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_happy_i1_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_happy_i1_tbl[] = { 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, 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, 2, 3, 2 };

s16 cKF_c_npc_1_happy_i1_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_happy_i1_tbl[] = {
    1,  0,    0,    11, 0,    -217, 1,  975,  0,    11, 900,  0,    1,  0,    0, 11, 0,    0, 1,  0,    0,
    11, 0,    -172, 1,  60,   0,    11, 0,    0,    1,  90,   0,    11, 0,    0, 1,  -185, 0, 11, -175, 0,
    1,  40,   0,    11, -250, 0,    1,  -85,  0,    11, 60,   0,    1,  0,    0, 11, 0,    0, 1,  40,   0,
    11, 550,  0,    1,  0,    0,    11, 0,    0,    1,  0,    0,    11, 0,    0, 1,  -15,  0, 11, -300, 0,
    1,  0,    0,    11, 0,    0,    1,  180,  0,    11, 175,  0,    1,  -260, 0, 11, -250, 0, 1,  -145, 0,
    11, -60,  0,    1,  0,    0,    11, 0,    0,    1,  560,  0,    11, 550,  0, 1,  0,    0, 11, 0,    0,
    1,  0,    0,    11, 0,    0,    1,  -240, 0,    11, -300, 0,    1,  -40,  0, 11, 0,    0, 1,  0,    0,
    11, 0,    0,    1,  60,   0,    8,  15,   0,    11, 45,   688,  1,  0,    0, 11, 0,    0, 1,  0,    0,
    11, 0,    0,    1,  82,   0,    11, -43,  1052, 1,  0,    0,    11, 0,    0, 1,  0,    0, 11, 10,   -90,
    1,  100,  0,    11, -95,  -773, 1,  -90,  0,    11, 15,   -350, 1,  0,    0, 11, 0,    0, 1,  -300, 0,
    11, -300, 0,    1,  -500, 0,    11, -500, 0,    1,  0,    0,    11, 0,    0, 1,  -600, 0, 11, -600, 0,
    1,  0,    0,    11, 0,    0,    1,  0,    0,    11, 0,    0,    1,  -300, 0, 11, -300, 0, 1,  503,  0,
    11, 500,  0,    1,  0,    0,    11, 0,    0,    1,  -600, 0,    11, -600, 0, 1,  0,    0, 11, 0,    0,
    1,  0,    0,    11, 0,    0,    1,  0,    0,    11, 0,    0,    1,  0,    0, 11, 0,    0, 1,  0,    0,
    11, 5,    0,    1,  -200, 0,    11, -5,   326,  1,  -10,  0,    11, 0,    0, 1,  0,    0, 11, 0,    0,
    1,  0,    0,    6,  -50,  -637, 11, -200, 0,    1,  0,    0,    11, 0,    0
};

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

u8 npc_1_happy_i11_tex_index[] = { 0, 1, 2, 2, 1, 5, 5, 5, 5, 5, 5 };

aNPC_Animation_c cKF_ba_r_npc_1_happy_i1 = {
    { cKF_ckcb_r_npc_1_happy_i1_tbl, cKF_ds_npc_1_happy_i1_tbl, cKF_kn_npc_1_happy_i1_tbl, cKF_c_npc_1_happy_i1_tbl, -1,
      11 },
    1.0f,
    11.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_happy_i11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_happy_i10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    1,
    eEC_EFFECT_SIAWASE_HIKARI,
    NULL,
    NULL,
};
