Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
PutridPiranha.h
Go to the documentation of this file.
1#include "common.h"
2#include "sprite/npc/LargePiranha.h"
3
4#define PUTRID_PIRANHA_DROPS \
5{ \
6 .dropFlags = NPC_DROP_FLAG_80, \
7 .itemDropChance = 5, \
8 .itemDrops = { \
9 { ITEM_SUPER_SHROOM, 10, 0 }, \
10 }, \
11 .heartDrops = STANDARD_HEART_DROPS(2), \
12 .flowerDrops = STANDARD_FLOWER_DROPS(2), \
13 .minCoinBonus = 0, \
14 .maxCoinBonus = 3, \
15}
16
17#define PUTRID_PIRANHA_ANIMS \
18{ \
19 .idle = ANIM_LargePiranha_Putrid_Anim01, \
20 .walk = ANIM_LargePiranha_Putrid_Anim02, \
21 .run = ANIM_LargePiranha_Putrid_Anim03, \
22 .chase = ANIM_LargePiranha_Putrid_Anim03, \
23 .anim_4 = ANIM_LargePiranha_Putrid_Anim01, \
24 .anim_5 = ANIM_LargePiranha_Putrid_Anim01, \
25 .death = ANIM_LargePiranha_Putrid_Anim0E, \
26 .hit = ANIM_LargePiranha_Putrid_Anim0E, \
27 .anim_8 = ANIM_LargePiranha_Putrid_Anim18, \
28 .anim_9 = ANIM_LargePiranha_Putrid_Anim17, \
29 .anim_A = ANIM_LargePiranha_Putrid_Anim05, \
30 .anim_B = ANIM_LargePiranha_Putrid_Anim06, \
31 .anim_C = ANIM_LargePiranha_Putrid_Anim07, \
32 .anim_D = ANIM_LargePiranha_Putrid_Anim01, \
33 .anim_E = ANIM_LargePiranha_Putrid_Anim01, \
34 .anim_F = ANIM_LargePiranha_Putrid_Anim01, \
35}
36
37// auxiliary NPC used for triggering enemy first strikes during the bite animation
38#define PUTRID_PIRANHA_HITBOX(npcID) \
39{ \
40 .id = npcID, \
41 .settings = &N(NpcSettings_PutridPiranha_Hitbox), \
42 .pos = { NPC_DISPOSE_LOCATION }, \
43 .yaw = 0, \
44 .flags = ENEMY_FLAG_IGNORE_WORLD_COLLISION | ENEMY_FLAG_IGNORE_ENTITY_COLLISION | ENEMY_FLAG_FLYING | ENEMY_FLAG_NO_DROPS, \
45 .drops = NO_DROPS, \
46 .animations = PUTRID_PIRANHA_ANIMS, \
47}