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

Go to the source code of this file.

Macros

#define GULPIT_DROPS
 
#define GULPIT_ANIMS
 
#define GULPIT_HITBOX(npcID)
 

Macro Definition Documentation

◆ GULPIT_DROPS

#define GULPIT_DROPS
Value:
{ \
.dropFlags = NPC_DROP_FLAG_80, \
.itemDropChance = 5, \
.itemDrops = { \
{ ITEM_PEBBLE, 2, 0 }, \
{ ITEM_SUPER_SHROOM, 8, 0 }, \
}, \
.heartDrops = STANDARD_HEART_DROPS(3), \
.flowerDrops = STANDARD_FLOWER_DROPS(2), \
.minCoinBonus = 1, \
.maxCoinBonus = 4, \
}
@ 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 Gulpit.h.

4#define GULPIT_DROPS \
5{ \
6 .dropFlags = NPC_DROP_FLAG_80, \
7 .itemDropChance = 5, \
8 .itemDrops = { \
9 { ITEM_PEBBLE, 2, 0 }, \
10 { ITEM_SUPER_SHROOM, 8, 0 }, \
11 }, \
12 .heartDrops = STANDARD_HEART_DROPS(3), \
13 .flowerDrops = STANDARD_FLOWER_DROPS(2), \
14 .minCoinBonus = 1, \
15 .maxCoinBonus = 4, \
16}

◆ GULPIT_ANIMS

#define GULPIT_ANIMS
Value:
{ \
.idle = ANIM_Gulpit_Anim01, \
.walk = ANIM_Gulpit_Anim02, \
.run = ANIM_Gulpit_Anim03, \
.chase = ANIM_Gulpit_Anim03, \
.anim_4 = ANIM_Gulpit_Anim01, \
.anim_5 = ANIM_Gulpit_Anim01, \
.death = ANIM_Gulpit_Anim0B, \
.hit = ANIM_Gulpit_Anim0B, \
.anim_8 = ANIM_Gulpit_Anim04, \
.anim_9 = ANIM_Gulpit_Anim04, \
.anim_A = ANIM_Gulpit_Anim01, \
.anim_B = ANIM_Gulpit_Anim01, \
.anim_C = ANIM_Gulpit_Anim01, \
.anim_D = ANIM_Gulpit_Anim01, \
.anim_E = ANIM_Gulpit_Anim01, \
.anim_F = ANIM_Gulpit_Anim01, \
}

Definition at line 18 of file Gulpit.h.

18#define GULPIT_ANIMS \
19{ \
20 .idle = ANIM_Gulpit_Anim01, \
21 .walk = ANIM_Gulpit_Anim02, \
22 .run = ANIM_Gulpit_Anim03, \
23 .chase = ANIM_Gulpit_Anim03, \
24 .anim_4 = ANIM_Gulpit_Anim01, \
25 .anim_5 = ANIM_Gulpit_Anim01, \
26 .death = ANIM_Gulpit_Anim0B, \
27 .hit = ANIM_Gulpit_Anim0B, \
28 .anim_8 = ANIM_Gulpit_Anim04, \
29 .anim_9 = ANIM_Gulpit_Anim04, \
30 .anim_A = ANIM_Gulpit_Anim01, \
31 .anim_B = ANIM_Gulpit_Anim01, \
32 .anim_C = ANIM_Gulpit_Anim01, \
33 .anim_D = ANIM_Gulpit_Anim01, \
34 .anim_E = ANIM_Gulpit_Anim01, \
35 .anim_F = ANIM_Gulpit_Anim01, \
36}

◆ GULPIT_HITBOX

#define GULPIT_HITBOX ( npcID)
Value:
{ \
.id = npcID, \
.settings = &N(NpcSettings_Gulpit_Hitbox), \
.pos = { NPC_DISPOSE_LOCATION }, \
.yaw = 0, \
.drops = NO_DROPS, \
.animations = GULPIT_ANIMS, \
.extraAnimations = N(ExtraAnims_Gulpit_Hitbox), \
}
#define GULPIT_ANIMS
Definition Gulpit.h:18
@ 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 38 of file Gulpit.h.

38#define GULPIT_HITBOX(npcID) \
39{ \
40 .id = npcID, \
41 .settings = &N(NpcSettings_Gulpit_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 = GULPIT_ANIMS, \
47 .extraAnimations = N(ExtraAnims_Gulpit_Hitbox), \
48}