#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_smile_d2_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_smile_d2_tbl[] = { 2, 2, 2, 2, 5, 2, 2, 5, 2, 2, 2, 2, 2, 2, 2, 2, 5, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
                                    2, 2, 2, 4, 6, 2, 2, 5, 5, 2, 2, 2, 2, 5, 5, 2, 2, 2, 2, 2, 2, 4, 6, 2, 2, 2, 2 };

s16 cKF_c_npc_1_smile_d2_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_smile_d2_tbl[] = {
    1,  0,    0,   13, 0,    0,    1,  2400, 0,    13, 2400, 0,    1,  0,    0,   13, 0,    0, 1,  0,    0,
    13, 0,    0,   1,  70,   0,    4,  100,  0,    7,  80,   0,    10, 90,   0,   13, 70,   0, 1,  0,    0,
    13, 0,    0,   1,  -750, 0,    13, -750, 0,    1,  -520, 0,    4,  -480, 0,   7,  -510, 0, 10, -490, 0,
    13, -520, 0,   1,  310,  0,    13, 310,  0,    1,  0,    0,    13, 0,    0,   1,  350,  0, 13, 350,  0,
    1,  0,    0,   13, 0,    0,    1,  0,    0,    13, 0,    0,    1,  -100, 0,   13, -100, 0, 1,  0,    0,
    13, 0,    0,   1,  750,  0,    13, 750,  0,    1,  -520, 0,    4,  -480, 0,   7,  -510, 0, 10, -490, 0,
    13, -520, 0,   1,  -310, 0,    13, -310, 0,    1,  0,    0,    13, 0,    0,   1,  350,  0, 13, 350,  0,
    1,  0,    0,   13, 0,    0,    1,  0,    0,    13, 0,    0,    1,  -100, 0,   13, -100, 0, 1,  0,    0,
    13, 0,    0,   1,  0,    0,    13, 0,    0,    1,  -250, 0,    13, -250, 0,   1,  0,    0, 13, 0,    0,
    1,  0,    0,   13, 0,    0,    1,  -100, 0,    13, -100, 0,    1,  0,    0,   13, 0,    0, 1,  24,   -657,
    5,  -50,  0,   11, 50,   0,    13, 24,   -657, 1,  -22,  -457, 2,  -30,  0,   5,  10,   0, 8,  -20,  0,
    11, 0,    0,   13, -22,  -457, 1,  0,    0,    13, 0,    0,    1,  0,    0,   13, 0,    0, 1,  108,  0,
    4,  230,  0,   7,  108,  0,    10, 170,  0,    13, 108,  0,    1,  -565, 0,   4,  -600, 0, 7,  -575, 0,
    10, -600, 0,   13, -565, 0,    1,  0,    0,    13, 0,    0,    1,  -400, 0,   13, -400, 0, 1,  0,    0,
    13, 0,    0,   1,  0,    0,    13, 0,    0,    1,  108,  0,    4,  170,  0,   7,  108,  0, 10, 230,  0,
    13, 108,  0,   1,  565,  0,    4,  600,  0,    7,  565,  0,    10, 600,  0,   13, 575,  0, 1,  0,    0,
    13, 0,    0,   1,  -400, 0,    13, -400, 0,    1,  0,    0,    13, 0,    0,   1,  0,    0, 13, 0,    0,
    1,  0,    0,   13, 0,    0,    1,  0,    0,    13, 0,    0,    1,  -24,  597, 5,  50,   0, 11, -50,  0,
    13, -24,  597, 1,  52,   -726, 3,  10,   0,    6,  80,   0,    9,  10,   0,   12, 70,   0, 13, 52,   -726,
    1,  0,    0,   13, 0,    0,    1,  0,    0,    13, 0,    0,    1,  0,    0,   13, 0,    0, 1,  0,    0,
    13, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_smile_d2 = {
    { cKF_ckcb_r_npc_1_smile_d2_tbl, cKF_ds_npc_1_smile_d2_tbl, cKF_kn_npc_1_smile_d2_tbl, cKF_c_npc_1_smile_d2_tbl, -1,
      13 },
    1.0f,
    13.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    5,
    NULL,
    aNPC_MOUTH_TEX1,
    2,
    -1,
    eEC_EFFECT_WARAU,
    NULL,
    NULL,
};
