Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
HammerBros.h
Go to the documentation of this file.
1#include "common.h"
2#include "sprite/npc/HammerBros.h"
3
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}
17
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}
37
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}