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

s16 cKF_c_npc_1_love1_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_love1_tbl[] = {
    1,  0,    0,     21, 0,    0,     1,  1000,  0,     4,  925,  0,     12, 1050, 0,   21, 975,  0,     1,  0,    0,
    4,  -25,  0,     12, 175,  0,     21, 150,   0,     1,  0,    0,     21, 0,    0,   1,  0,    0,     4,  -150, 0,
    12, 10,   404,   17, 40,   0,     21, 30,    0,     1,  0,    0,     21, 0,    0,   1,  -175, 0,     4,  -175, 0,
    12, -160, 86,    21, -150, 0,     1,  -100,  0,     4,  -400, 0,     12, -40,  570, 21, -15,  0,     1,  25,   0,
    4,  80,   0,     12, 45,   -134,  21, 35,    0,     1,  0,    0,     21, 0,    0,   1,  200,  0,     4,  500,  0,
    12, 330,  -508,  21, 300,  0,     1,  0,     0,     21, 0,    0,     1,  0,    0,   21, 0,    0,     1,  -100, 0,
    4,  -240, -181,  12, -150, 0,     21, -245,  0,     1,  0,    0,     4,  3,    0,   12, -30,  0,     21, -25,  0,
    1,  175,  0,     12, 158,  -86,   21, 150,   0,     1,  -100, 0,     4,  -400, 0,   12, -40,  569,   21, -15,  0,
    1,  -25,  0,     4,  -80,  0,     12, -45,   133,   21, -35,  0,     1,  0,    0,   21, 0,    0,     1,  200,  0,
    4,  500,  0,     12, 328,  -508,  21, 300,   0,     1,  0,    0,     12, 0,    0,   21, 0,    0,     1,  0,    0,
    21, 0,    0,     1,  -100, 0,     4,  -240,  -183,  12, -150, 0,     21, -245, 0,   1,  0,    0,     4,  -3,   0,
    12, 30,   0,     21, 25,   0,     1,  0,     0,     21, 0,    0,     1,  60,   0,   5,  0,    -1637, 11, -300, 0,
    16, -250, 0,     21, -300, -298,  1,  0,     0,     21, 0,    0,     1,  0,    0,   21, 0,    0,     1,  82,   0,
    6,  300,  0,     12, -150, 0,     17, 60,    0,     21, 33,   -327,  1,  0,    0,   21, 0,    0,     1,  0,    0,
    21, 0,    303,   1,  2,    0,     3,  -50,   0,     11, 60,   341,   16, 90,   73,  21, 80,   -199,  1,  0,    0,
    8,  70,   0,     15, -50,  0,     21, 0,     303,   1,  0,    0,     10, 280,  913, 21, 350,  0,     1,  58,   0,
    10, -530, -1789, 21, -650, 0,     1,  -564,  0,     10, -690, -696,  21, -750, 0,   1,  0,    0,     21, 0,    0,
    1,  -57,  0,     10, -900, -1420, 21, -1000, 0,     1,  0,    0,     21, 0,    0,   1,  0,    0,     10, -280, -916,
    21, -350, 0,     1,  58,   0,     10, -530,  -1769, 21, -650, 0,     1,  564,  0,   10, 690,  707,   21, 740,  0,
    1,  0,    0,     21, 0,    0,     1,  -57,   0,     10, -900, -1420, 21, -990, 0,   1,  0,    0,     21, 0,    0,
    1,  0,    0,     13, 1800, 0,     21, 1800,  0,     1,  0,    0,     13, 500,  0,   21, 500,  0,     1,  0,    0,
    13, -480, 0,     21, -480, 0,     1,  0,     0,     21, 0,    0,     1,  0,    0,   7,  90,   297,   14, 115,  0,
    21, 108,  91,    1,  0,    0,     7,  -100,  0,     14, 60,   0,     17, 30,   0,   21, 20,   -149,  1,  0,    0,
    21, 0,    0,     1,  0,    0,     3,  -150,  0,     21, -150, 0,     1,  0,    0,   21, 0,    0
};

u8 npc_1_love11_tex_index[] = { 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1 };

aNPC_Animation_c cKF_ba_r_npc_1_love1 = {
    { cKF_ckcb_r_npc_1_love1_tbl, cKF_ds_npc_1_love1_tbl, cKF_kn_npc_1_love1_tbl, cKF_c_npc_1_love1_tbl, -1, 21 },
    1.0f,
    21.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_love11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    NULL,
    aNPC_MOUTH_TEX0,
    1,
    11,
    eEC_EFFECT_LOVELOVE2,
    NULL,
    NULL,
};
