#include "common.h"
#include "sprite/npc/Magikoopa.h"
#include "sprite/npc/FlyingMagikoopa.h"

#define FLYING_MAGINO_DROPS \
{ \
    .dropFlags = NPC_DROP_FLAG_80, \
    .itemDropChance = 5, \
    .itemDrops = { \
        { ITEM_SUPER_SHROOM, 5, 0 }, \
        { ITEM_MAPLE_SYRUP, 5, 0 }, \
        { ITEM_THUNDER_RAGE, 5, 0 }, \
        { ITEM_STOP_WATCH, 5, 0 }, \
    }, \
    .heartDrops  = STANDARD_HEART_DROPS(2), \
    .flowerDrops = STANDARD_FLOWER_DROPS(5), \
    .minCoinBonus = 1, \
    .maxCoinBonus = 3, \
}

#define FLYING_MAGIKOOPA_ANIMS \
{ \
    .idle   = ANIM_FlyingMagikoopa_Anim00, \
    .walk   = ANIM_FlyingMagikoopa_Anim01, \
    .run    = ANIM_FlyingMagikoopa_Anim01, \
    .chase  = ANIM_FlyingMagikoopa_Anim01, \
    .anim_4 = ANIM_FlyingMagikoopa_Anim01, \
    .anim_5 = ANIM_FlyingMagikoopa_Anim01, \
    .death  = ANIM_FlyingMagikoopa_Anim04, \
    .hit    = ANIM_FlyingMagikoopa_Anim04, \
    .anim_8 = ANIM_FlyingMagikoopa_Anim02, \
    .anim_9 = ANIM_FlyingMagikoopa_Anim03, \
    .anim_A = ANIM_FlyingMagikoopa_Anim01, \
    .anim_B = ANIM_FlyingMagikoopa_Anim01, \
    .anim_C = ANIM_FlyingMagikoopa_Anim01, \
    .anim_D = ANIM_FlyingMagikoopa_Anim01, \
    .anim_E = ANIM_FlyingMagikoopa_Anim01, \
    .anim_F = ANIM_FlyingMagikoopa_Anim01, \
}

#define FLYING_MAGIKOOPA_SPELL_HITBOX(npcID) \
{ \
    .id = npcID, \
    .settings = &N(NpcSettings_FlyingMagikoopa_Hitbox), \
    .pos = { NPC_DISPOSE_LOCATION }, \
    .yaw = 90, \
    .flags = ENEMY_FLAG_IGNORE_WORLD_COLLISION | ENEMY_FLAG_IGNORE_ENTITY_COLLISION | ENEMY_FLAG_800 | ENEMY_FLAG_NO_DROPS, \
    .drops = NO_DROPS, \
    .animations = { \
        .idle   = ANIM_FlyingMagikoopa_Anim00, \
        .walk   = ANIM_FlyingMagikoopa_Anim00, \
        .run    = ANIM_FlyingMagikoopa_Anim00, \
        .chase  = ANIM_FlyingMagikoopa_Anim00, \
        .anim_4 = ANIM_FlyingMagikoopa_Anim00, \
        .anim_5 = ANIM_FlyingMagikoopa_Anim00, \
        .death  = ANIM_FlyingMagikoopa_Anim00, \
        .hit    = ANIM_FlyingMagikoopa_Anim00, \
        .anim_8 = ANIM_FlyingMagikoopa_Anim00, \
        .anim_9 = ANIM_FlyingMagikoopa_Anim00, \
        .anim_A = ANIM_FlyingMagikoopa_Anim00, \
        .anim_B = ANIM_FlyingMagikoopa_Anim00, \
        .anim_C = ANIM_FlyingMagikoopa_Anim00, \
        .anim_D = ANIM_FlyingMagikoopa_Anim00, \
        .anim_E = ANIM_FlyingMagikoopa_Anim00, \
        .anim_F = ANIM_FlyingMagikoopa_Anim00, \
    }, \
}
