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

s16 cKF_c_npc_1_lovelove1_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_lovelove1_tbl[] = {
    1,  0,    0,    9,  0,    0,    16, -150,  -504, 21, -200,  -3,  26, -201, 0,     26, -200, 0,    1,  1000, 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,  0,     0,    11, -50,   0,   19, 15,   78,    26, 15,   -79,  1,  0,    0,
    16, 0,    0,    26, 30,   0,    1,  -175,  0,    26, -175,  0,   1,  -100, 0,     9,  -450, 0,    16, 0,    0,
    26, 0,    0,    1,  25,   0,    9,  100,   0,    16, 100,   0,   26, 100,  0,     1,  0,    0,    26, 0,    0,
    1,  200,  0,    9,  900,  0,    16, 250,   0,    26, 250,   0,   1,  0,    0,     26, 0,    0,    1,  0,    0,
    26, 0,    0,    1,  -100, 0,    9,  -490,  0,    16, 120,   0,   26, 120,  0,     1,  0,    0,    26, 0,    0,
    1,  175,  0,    26, 175,  0,    1,  -100,  0,    9,  -450,  0,   16, 0,    291,   26, 0,    -290, 1,  -25,  0,
    9,  -100, 0,    16, 35,   0,    26, 35,    0,    1,  0,     0,   26, 0,    0,     1,  200,  0,    9,  900,  0,
    16, 250,  0,    26, 250,  0,    1,  0,     0,    26, 0,     0,   1,  0,    0,     26, 0,    0,    1,  -100, 0,
    9,  -490, 0,    16, -25,  0,    26, -25,   0,    1,  0,     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,  2,    0,    7,  -70,   0,    13, 35,    259, 18, 50,   0,     26, 25,   -298, 1,  0,    0,
    7,  0,    0,    13, -40,  0,    20, 30,    0,    26, -20,   0,   1,  0,    0,     16, 350,  0,    26, 350,  0,
    1,  58,   0,    16, -680, 0,    26, -680,  0,    1,  -564,  0,   16, -880, 0,     26, -880, 0,    1,  0,    0,
    26, 0,    0,    1,  -57,  0,    16, -750,  0,    26, -750,  0,   1,  0,    0,     26, 0,    0,    1,  0,    0,
    16, -350, 0,    26, -350, 0,    1,  58,    0,    16, -680,  0,   26, -680, 0,     1,  564,  0,    16, 880,  0,
    26, 880,  0,    1,  0,    0,    26, 0,     0,    1,  -57,   0,   16, -750, 0,     26, -750, 0,    1,  0,    0,
    26, 0,    0,    1,  0,    0,    16, -1800, 0,    26, -1800, 0,   1,  0,    0,     16, 250,  0,    26, 250,  0,
    1,  0,    0,    16, -500, 0,    26, -500,  0,    1,  0,     0,   5,  0,    0,     15, 40,   0,    20, -30,  0,
    25, 20,   0,    26, 15,   -282, 1,  0,     0,    5,  -100,  0,   13, 65,   259,   18, 80,   0,    26, 55,   -298,
    1,  0,    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_lovelove10_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_lovelove11_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_lovelove1 = {
    { cKF_ckcb_r_npc_1_lovelove1_tbl, cKF_ds_npc_1_lovelove1_tbl, cKF_kn_npc_1_lovelove1_tbl, cKF_c_npc_1_lovelove1_tbl,
      -1, 26 },
    1.0f,
    26.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_lovelove11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    npc_1_lovelove10_tex_index,
    aNPC_MOUTH_TEX0,
    -1,
    -1,
    -1,
    NULL,
    NULL,
};
