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

s16 cKF_c_npc_1_love_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_love_i1_tbl[] = {
    1,  0,    0,     21, 0,    0,   1,  975,  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,  60,   0,    4,  -150, 0,
    12, 10,   404,   17, 40,   0,   21, 30,   0,   1,  90,   0,    21, 0,    0,    1,  -185, 0,    4,  -184, 0,
    8,  -185, 0,     12, -175, 101, 16, -161, 117, 21, -150, 0,    1,  40,   0,    4,  -351, 0,    8,  -215, 1994,
    12, 108,  638,   16, 134,  0,   21, -15,  0,   1,  -85,  0,    4,  -28,  404,  8,  -10,  0,    12, -39,  0,
    16, -15,  357,   21, 35,   0,   1,  0,    0,   21, 0,    0,    1,  40,   0,    4,  410,  0,    8,  388,  -554,
    12, 0,    0,     16, 0,    0,   21, 300,  0,   1,  0,    0,    21, 0,    0,    1,  0,    0,    21, 0,    0,
    1,  -15,  0,     4,  -198, 0,   8,  -195, 54,  12, -33,  0,    16, -68,  -534, 21, -245, 0,    1,  0,    0,
    4,  8,    33,    8,  6,    -52, 12, -10,  -56, 16, -18,  -56,  21, -25,  0,    1,  180,  0,    4,  305,  0,
    8,  200,  -754,  12, 151,  0,   16, 150,  0,   21, 150,  0,    1,  -260, 0,    4,  -525, 0,    8,  -320, 2425,
    12, 15,   1273,  16, 65,   0,   21, -15,  0,   1,  -145, 0,    4,  -230, 0,    8,  -121, 797,  12, -50,  365,
    16, -19,  0,     21, -35,  0,   1,  0,    0,   21, 0,    0,    1,  560,  0,    4,  665,  0,    8,  509,  -2065,
    12, 148,  -1021, 16, 104,  0,   21, 300,  0,   1,  0,    0,    21, 0,    0,    1,  0,    0,    21, 0,    0,
    1,  -240, 0,     4,  -278, 0,   8,  -265, 357, 12, -139, 379,  16, -131, -310, 21, -245, 0,    1,  -40,  0,
    4,  -58,  0,     8,  -33,  160, 12, -10,  166, 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,   466, 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,  100,  148,  3,  20,   0,    11, 60,   341,  16, 90,   73,
    21, 80,   -199,  1,  -90,  149, 8,  0,    0,   15, -50,  0,    21, 0,    303,  1,  0,    0,    21, 0,    0,
    1,  -300, 0,     21, -300, 0,   1,  -500, 0,   21, -500, 0,    1,  0,    0,    21, 0,    0,    1,  -600, 0,
    21, -600, 0,     1,  0,    0,   21, 0,    0,   1,  0,    0,    21, 0,    0,    1,  -300, 0,    21, -300, 0,
    1,  503,  0,     21, 500,  0,   1,  0,    0,   21, 0,    0,    1,  -600, 0,    21, -600, 0,    1,  0,    0,
    21, 0,    0,     1,  0,    0,   21, 0,    0,   1,  0,    0,    21, 0,    0,    1,  0,    0,    21, 0,    0,
    1,  0,    0,     21, 0,    0,   1,  -200, 0,   7,  90,   297,  14, 115,  0,    21, 108,  91,   1,  -10,  -149,
    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_love_i11_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_love_i1 = {
    { cKF_ckcb_r_npc_1_love_i1_tbl, cKF_ds_npc_1_love_i1_tbl, cKF_kn_npc_1_love_i1_tbl, cKF_c_npc_1_love_i1_tbl, -1,
      21 },
    1.0f,
    21.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_love_i11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    NULL,
    aNPC_MOUTH_TEX0,
    1,
    11,
    eEC_EFFECT_LOVELOVE2,
    NULL,
    NULL,
};
