Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
PiranhaPlant.h
Go to the documentation of this file.
1#include "common.h"
2#include "sprite/npc/SmallPiranha.h"
3
4#define PIRANHA_PLANT_DROPS \
5{ \
6 .dropFlags = NPC_DROP_FLAG_80, \
7 .itemDropChance = 5, \
8 .itemDrops = { \
9 { ITEM_FIRE_FLOWER, 10, 0 }, \
10 }, \
11 .heartDrops = STANDARD_HEART_DROPS(2), \
12 .flowerDrops = STANDARD_FLOWER_DROPS(3), \
13 .minCoinBonus = 0, \
14 .maxCoinBonus = 2, \
15}
16
17#define PIRANHA_PLANT_ANIMS \
18{ \
19 .idle = ANIM_SmallPiranha_Anim01, \
20 .walk = ANIM_SmallPiranha_Anim01, \
21 .run = ANIM_SmallPiranha_Anim01, \
22 .chase = ANIM_SmallPiranha_Anim01, \
23 .anim_4 = ANIM_SmallPiranha_Anim01, \
24 .anim_5 = ANIM_SmallPiranha_Anim01, \
25 .death = ANIM_SmallPiranha_Anim09, \
26 .hit = ANIM_SmallPiranha_Anim09, \
27 .anim_8 = ANIM_SmallPiranha_Anim04, \
28 .anim_9 = ANIM_SmallPiranha_Anim03, \
29 .anim_A = ANIM_SmallPiranha_Anim07, \
30 .anim_B = ANIM_SmallPiranha_Anim07, \
31 .anim_C = ANIM_SmallPiranha_Anim08, \
32 .anim_D = ANIM_SmallPiranha_Anim01, \
33 .anim_E = ANIM_SmallPiranha_Anim01, \
34 .anim_F = ANIM_SmallPiranha_Anim01, \
35}
36
37#define PIRANHA_PLANT_HITBOX(npcID) \
38{ \
39 .id = npcID, \
40 .settings = &N(NpcSettings_PiranhaPlant_Hitbox), \
41 .pos = { NPC_DISPOSE_LOCATION }, \
42 .yaw = 0, \
43 .flags = ENEMY_FLAG_IGNORE_WORLD_COLLISION | ENEMY_FLAG_IGNORE_ENTITY_COLLISION | ENEMY_FLAG_FLYING | ENEMY_FLAG_NO_DROPS, \
44 .drops = NO_DROPS, \
45 .animations = { \
46 .idle = ANIM_SmallPiranha_Anim01, \
47 .walk = ANIM_SmallPiranha_Anim01, \
48 .run = ANIM_SmallPiranha_Anim01, \
49 .chase = ANIM_SmallPiranha_Anim01, \
50 .anim_4 = ANIM_SmallPiranha_Anim01, \
51 .anim_5 = ANIM_SmallPiranha_Anim01, \
52 .death = ANIM_SmallPiranha_Anim09, \
53 .hit = ANIM_SmallPiranha_Anim09, \
54 .anim_8 = ANIM_SmallPiranha_Anim04, \
55 .anim_9 = ANIM_SmallPiranha_Anim03, \
56 .anim_A = ANIM_SmallPiranha_Anim07, \
57 .anim_B = ANIM_SmallPiranha_Anim07, \
58 .anim_C = ANIM_SmallPiranha_Anim08, \
59 .anim_D = ANIM_SmallPiranha_Anim01, \
60 .anim_E = ANIM_SmallPiranha_Anim01, \
61 .anim_F = ANIM_SmallPiranha_Anim01, \
62 }, \
63}