Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
PiranhaPlant.h File Reference

Go to the source code of this file.

Macros

#define PIRANHA_PLANT_DROPS
 
#define PIRANHA_PLANT_ANIMS
 
#define PIRANHA_PLANT_HITBOX(npcID)
 

Macro Definition Documentation

◆ PIRANHA_PLANT_DROPS

#define PIRANHA_PLANT_DROPS
Value:
{ \
.dropFlags = NPC_DROP_FLAG_80, \
.itemDropChance = 5, \
.itemDrops = { \
{ ITEM_FIRE_FLOWER, 10, 0 }, \
}, \
.heartDrops = STANDARD_HEART_DROPS(2), \
.flowerDrops = STANDARD_FLOWER_DROPS(3), \
.minCoinBonus = 0, \
.maxCoinBonus = 2, \
}
@ NPC_DROP_FLAG_80
Definition enums.h:5089
#define STANDARD_FLOWER_DROPS(attempts)
Definition npc.h:53
#define STANDARD_HEART_DROPS(attempts)
Definition npc.h:29

Definition at line 4 of file PiranhaPlant.h.

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}

◆ PIRANHA_PLANT_ANIMS

#define PIRANHA_PLANT_ANIMS
Value:
{ \
.idle = ANIM_SmallPiranha_Anim01, \
.walk = ANIM_SmallPiranha_Anim01, \
.run = ANIM_SmallPiranha_Anim01, \
.chase = ANIM_SmallPiranha_Anim01, \
.anim_4 = ANIM_SmallPiranha_Anim01, \
.anim_5 = ANIM_SmallPiranha_Anim01, \
.death = ANIM_SmallPiranha_Anim09, \
.hit = ANIM_SmallPiranha_Anim09, \
.anim_8 = ANIM_SmallPiranha_Anim04, \
.anim_9 = ANIM_SmallPiranha_Anim03, \
.anim_A = ANIM_SmallPiranha_Anim07, \
.anim_B = ANIM_SmallPiranha_Anim07, \
.anim_C = ANIM_SmallPiranha_Anim08, \
.anim_D = ANIM_SmallPiranha_Anim01, \
.anim_E = ANIM_SmallPiranha_Anim01, \
.anim_F = ANIM_SmallPiranha_Anim01, \
}

Definition at line 17 of file PiranhaPlant.h.

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}

◆ PIRANHA_PLANT_HITBOX

#define PIRANHA_PLANT_HITBOX ( npcID)
Value:
{ \
.id = npcID, \
.settings = &N(NpcSettings_PiranhaPlant_Hitbox), \
.pos = { NPC_DISPOSE_LOCATION }, \
.yaw = 0, \
.drops = NO_DROPS, \
.animations = { \
.idle = ANIM_SmallPiranha_Anim01, \
.walk = ANIM_SmallPiranha_Anim01, \
.run = ANIM_SmallPiranha_Anim01, \
.chase = ANIM_SmallPiranha_Anim01, \
.anim_4 = ANIM_SmallPiranha_Anim01, \
.anim_5 = ANIM_SmallPiranha_Anim01, \
.death = ANIM_SmallPiranha_Anim09, \
.hit = ANIM_SmallPiranha_Anim09, \
.anim_8 = ANIM_SmallPiranha_Anim04, \
.anim_9 = ANIM_SmallPiranha_Anim03, \
.anim_A = ANIM_SmallPiranha_Anim07, \
.anim_B = ANIM_SmallPiranha_Anim07, \
.anim_C = ANIM_SmallPiranha_Anim08, \
.anim_D = ANIM_SmallPiranha_Anim01, \
.anim_E = ANIM_SmallPiranha_Anim01, \
.anim_F = ANIM_SmallPiranha_Anim01, \
}, \
}
@ ENEMY_FLAG_NO_DROPS
Definition enums.h:4544
@ ENEMY_FLAG_FLYING
Definition enums.h:4532
@ ENEMY_FLAG_IGNORE_ENTITY_COLLISION
Definition enums.h:4531
@ ENEMY_FLAG_IGNORE_WORLD_COLLISION
Definition enums.h:4529
#define NO_DROPS
Definition npc.h:23
#define NPC_DISPOSE_LOCATION
Definition macros.h:158

Definition at line 37 of file PiranhaPlant.h.

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}