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

Go to the source code of this file.

Macros

#define HAMMER_BROS_DROPS
 
#define HAMMER_BROS_ANIMS
 
#define HAMMER_BROS_HAMMER_HITBOX(npcID)
 

Macro Definition Documentation

◆ HAMMER_BROS_DROPS

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

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

◆ HAMMER_BROS_ANIMS

#define HAMMER_BROS_ANIMS
Value:
{ \
.idle = ANIM_HammerBros_Anim02, \
.walk = ANIM_HammerBros_Anim04, \
.run = ANIM_HammerBros_Anim07, \
.chase = ANIM_HammerBros_Anim07, \
.anim_4 = ANIM_HammerBros_Anim02, \
.anim_5 = ANIM_HammerBros_Anim02, \
.death = ANIM_HammerBros_Anim0E, \
.hit = ANIM_HammerBros_Anim0E, \
.anim_8 = ANIM_HammerBros_Anim18, \
.anim_9 = ANIM_HammerBros_Anim19, \
.anim_A = ANIM_HammerBros_Anim02, \
.anim_B = ANIM_HammerBros_Anim02, \
.anim_C = ANIM_HammerBros_Anim02, \
.anim_D = ANIM_HammerBros_Anim02, \
.anim_E = ANIM_HammerBros_Anim02, \
.anim_F = ANIM_HammerBros_Anim02, \
}

Definition at line 18 of file HammerBros.h.

18#define HAMMER_BROS_ANIMS \
19{ \
20 .idle = ANIM_HammerBros_Anim02, \
21 .walk = ANIM_HammerBros_Anim04, \
22 .run = ANIM_HammerBros_Anim07, \
23 .chase = ANIM_HammerBros_Anim07, \
24 .anim_4 = ANIM_HammerBros_Anim02, \
25 .anim_5 = ANIM_HammerBros_Anim02, \
26 .death = ANIM_HammerBros_Anim0E, \
27 .hit = ANIM_HammerBros_Anim0E, \
28 .anim_8 = ANIM_HammerBros_Anim18, \
29 .anim_9 = ANIM_HammerBros_Anim19, \
30 .anim_A = ANIM_HammerBros_Anim02, \
31 .anim_B = ANIM_HammerBros_Anim02, \
32 .anim_C = ANIM_HammerBros_Anim02, \
33 .anim_D = ANIM_HammerBros_Anim02, \
34 .anim_E = ANIM_HammerBros_Anim02, \
35 .anim_F = ANIM_HammerBros_Anim02, \
36}

◆ HAMMER_BROS_HAMMER_HITBOX

#define HAMMER_BROS_HAMMER_HITBOX ( npcID)

Definition at line 38 of file HammerBros.h.

38#define HAMMER_BROS_HAMMER_HITBOX(npcID) \
39{ \
40 .id = npcID, \
41 .settings = &N(NpcSettings_HammerBros_Hammer), \
42 .pos = { NPC_DISPOSE_LOCATION }, \
43 .yaw = 90, \
44 .flags = ENEMY_FLAG_IGNORE_ENTITY_COLLISION | ENEMY_FLAG_FLYING | ENEMY_FLAG_NO_DROPS, \
45 .drops = NO_DROPS, \
46 .territory = { \
47 .wander = { \
48 .isFlying = TRUE, \
49 .moveSpeedOverride = NO_OVERRIDE_MOVEMENT_SPEED, \
50 .wanderShape = SHAPE_CYLINDER, \
51 .centerPos = { NPC_DISPOSE_LOCATION }, \
52 .wanderSize = { 0 }, \
53 .detectShape = SHAPE_CYLINDER, \
54 .detectPos = { NPC_DISPOSE_LOCATION }, \
55 .detectSize = { 0 }, \
56 } \
57 }, \
58 .animations = { \
59 .idle = ANIM_HammerBros_Anim0D, \
60 .walk = ANIM_HammerBros_Anim0D, \
61 .run = ANIM_HammerBros_Anim0D, \
62 .chase = ANIM_HammerBros_Anim0D, \
63 .anim_4 = ANIM_HammerBros_Anim0D, \
64 .anim_5 = ANIM_HammerBros_Anim0D, \
65 .death = ANIM_HammerBros_Anim0D, \
66 .hit = ANIM_HammerBros_Anim0D, \
67 .anim_8 = ANIM_HammerBros_Anim0D, \
68 .anim_9 = ANIM_HammerBros_Anim0D, \
69 .anim_A = ANIM_HammerBros_Anim0D, \
70 .anim_B = ANIM_HammerBros_Anim0D, \
71 .anim_C = ANIM_HammerBros_Anim0D, \
72 .anim_D = ANIM_HammerBros_Anim0D, \
73 .anim_E = ANIM_HammerBros_Anim0D, \
74 .anim_F = ANIM_HammerBros_Anim0D, \
75 }, \
76 .extraAnimations = N(ExtraAnims_HammerBros_Hammer), \
77}