#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_contract1_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_contract1_tbl[] = { 2, 3, 2, 2, 2, 2, 3, 3, 3, 2, 3, 2, 2, 3, 3, 2, 2, 2, 2, 3, 2, 2, 3, 3, 2, 2, 2,
                                     2, 2, 2, 2, 3, 2, 3, 3, 3, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 };

s16 cKF_c_npc_1_contract1_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, 0 };

s16 cKF_ds_npc_1_contract1_tbl[] = {
    1,  0,    0,    12, 0,    0,     1,  1000, 0,   5,  1150, 1046, 12, 1200, 0,     1,  0,    0,   12, 500,  0,
    1,  0,    0,    12, -50,  0,     1,  0,    0,   12, -200, 0,    1,  0,    0,     12, 25,   0,   1,  -175, 0,
    8,  -185, -94,  12, -200, 0,     1,  -100, 0,   8,  -230, 0,    12, -193, 0,     1,  25,   0,   8,  10,   -54,
    12, 5,    -59,  1,  0,    0,     12, 0,    0,   1,  200,  0,    8,  0,    0,     12, 0,    0,   1,  0,    0,
    12, 0,    0,    1,  0,    0,     12, 0,    0,   1,  -100, 0,    8,  275,  0,     12, 185,  0,   1,  0,    0,
    8,  60,   0,    12, 40,   0,     1,  175,  0,   12, 145,  0,    1,  -100, 0,     12, 8,    0,   1,  -25,  0,
    12, -20,  0,    1,  0,    0,     12, 0,    0,   1,  200,  0,    5,  130,  -527,  12, 77,   0,   1,  0,    0,
    12, 0,    0,    1,  0,    0,     12, 0,    0,   1,  -100, 0,    5,  -30,  0,     12, -103, -96, 1,  0,    0,
    5,  -10,  0,    12, 5,    56,    1,  0,    0,   12, 0,    0,    1,  60,   0,     12, 60,   0,   1,  0,    0,
    12, 0,    0,    1,  0,    0,     12, 0,    0,   1,  82,   1348, 12, 376,  0,     1,  0,    0,   12, 0,    0,
    1,  0,    0,    12, -150, 0,     1,  2,    -78, 7,  165,  533,  12, 200,  0,     1,  0,    0,   12, 0,    0,
    1,  0,    0,    7,  -400, -2019, 12, -550, 0,   1,  58,   0,    7,  -400, -2940, 12, -700, 0,   1,  -564, 0,
    7,  50,   2060, 12, 175,  0,     1,  0,    0,   12, 0,    0,    1,  -57,  0,     6,  -500, 0,   12, 0,    0,
    1,  0,    0,    12, 0,    0,     1,  0,    0,   12, 0,    0,    1,  58,   0,     12, 150,  0,   1,  564,  0,
    12, 350,  0,    1,  0,    0,     12, 0,    0,   1,  -57,  0,    12, -150, 0,     1,  0,    0,   12, 0,    0,
    1,  0,    0,    12, 0,    0,     1,  0,    0,   12, 0,    0,    1,  0,    0,     12, 0,    0,   1,  0,    0,
    12, 200,  0,    1,  0,    0,     12, 50,   0,   1,  0,    0,    12, 0,    0,     1,  0,    0,   12, 0,    0,
    1,  0,    0,    12, 0,    0,     1,  0,    0,   12, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_contract1 = {
    { cKF_ckcb_r_npc_1_contract1_tbl, cKF_ds_npc_1_contract1_tbl, cKF_kn_npc_1_contract1_tbl, cKF_c_npc_1_contract1_tbl,
      -1, 12 },
    1.0f,
    12.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    NULL,
    aNPC_EYE_TEX0,
    0,
    NULL,
    aNPC_MOUTH_TEX1,
    0,
    -1,
    -1,
    NULL,
    NULL,
};
