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

s16 cKF_c_npc_1_lovelove_f1_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_lovelove_f1_tbl[] = {
    1,  0,    0,    9,  0,    0,     16, -150, -504, 21, -200, -3, 26, -201, 0,   26, -201, 0,   1,  975,  0,
    9,  775,  0,    16, 1100, 0,     26, 1075, -244, 1,  0,    0,  9,  0,    0,   16, 175,  0,   26, 150,  -231,
    1,  0,    0,    26, 0,    0,     1,  60,   0,    11, -50,  0,  19, 15,   78,  26, 15,   -79, 1,  90,   0,
    16, 0,    0,    26, 30,   0,     1,  -185, 0,    9,  -231, 0,  26, -175, 0,   1,  40,   0,   9,  -411, 0,
    16, 0,    0,    26, 0,    0,     1,  -85,  0,    9,  100,  0,  26, 100,  0,   1,  0,    0,   26, 0,    0,
    1,  40,   0,    9,  848,  0,     16, 250,  0,    26, 250,  0,  1,  0,    0,   26, 0,    0,   1,  0,    0,
    26, 0,    0,    1,  -15,  0,     9,  -451, 0,    16, 120,  0,  26, 120,  0,   1,  0,    0,   26, 0,    0,
    1,  180,  0,    9,  348,  0,     26, 175,  0,    1,  -260, 0,  9,  -523, 0,   16, 0,    291, 26, 0,    -290,
    1,  -145, 0,    9,  -246, 0,     16, 35,   0,    26, 35,   0,  1,  0,    0,   26, 0,    0,   1,  560,  0,
    9,  951,  0,    16, 250,  0,     26, 250,  0,    1,  0,    0,  26, 0,    0,   1,  0,    0,   26, 0,    0,
    1,  -240, 0,    9,  -441, 0,     16, -25,  0,    26, -25,  0,  1,  -40,  0,   9,  -81,  0,   26, 0,    0,
    1,  0,    0,    26, 0,    0,     1,  60,   0,    6,  200,  0,  16, -250, 0,   21, -201, 687, 26, 60,   1877,
    1,  0,    0,    26, 0,    0,     1,  0,    0,    26, 0,    0,  1,  82,   0,   9,  200,  0,   16, 100,  -1144,
    21, -220, -506, 26, -210, 411,   1,  0,    0,    26, 0,    0,  1,  0,    0,   3,  0,    0,   13, 40,   0,
    18, -30,  0,    23, 20,   0,     26, -14,  -301, 1,  100,  0,  7,  -70,  0,   13, 35,   259, 18, 50,   0,
    26, 25,   -298, 1,  -50,  0,     7,  0,    0,    13, -40,  0,  20, 30,   0,   26, -20,  0,   1,  -120, 0,
    26, -600, 0,    1,  -700, 0,     26, -750, 0,    1,  -450, 0,  26, 20,   0,   1,  0,    0,   26, 0,    0,
    1,  -50,  0,    26, -50,  0,     1,  0,    0,    26, 0,    0,  1,  0,    0,   16, -200, 0,   26, 0,    0,
    1,  50,   0,    16, 0,    0,     26, 0,    0,    1,  300,  0,  12, 350,  765, 15, 500,  0,   20, 200,  0,
    24, 500,  0,    26, 420,  -1515, 1,  0,    0,    26, 0,    0,  1,  -57,  0,   16, -100, 0,   26, -100, 0,
    1,  0,    0,    14, 0,    765,   17, 150,  0,    22, -150, 0,  26, 150,  0,   1,  0,    0,   26, 300,  0,
    1,  0,    0,    26, -50,  0,     1,  0,    0,    26, 175,  0,  1,  0,    0,   5,  0,    0,   15, 40,   0,
    20, -30,  0,    25, 20,   0,     26, 15,   -282, 1,  -200, 0,  13, 65,   259, 18, 80,   0,   26, 55,   -298,
    1,  -10,  0,    11, 0,    0,     16, 0,    0,    21, -40,  0,  26, 20,   0,   1,  0,    0,   26, 0,    0,
    1,  0,    0,    6,  0,    0,     13, -300, 0,    26, -300, 0,  1,  0,    0,   26, 0,    0
};

u8 npc_1_lovelove_f10_tex_index[] = { 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 };

u8 npc_1_lovelove_f11_tex_index[] = { 1, 2, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5 };

aNPC_Animation_c cKF_ba_r_npc_1_lovelove_f1 = {
    { cKF_ckcb_r_npc_1_lovelove_f1_tbl, cKF_ds_npc_1_lovelove_f1_tbl, cKF_kn_npc_1_lovelove_f1_tbl,
      cKF_c_npc_1_lovelove_f1_tbl, -1, 26 },
    1.0f,
    26.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_lovelove_f11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_lovelove_f10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    -1,
    -1,
    NULL,
    NULL,
};
