Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
partner_dma.c File Reference

Go to the source code of this file.

Macros

#define BATTLE_PARTNER_ENTRY(name, Y)
 

Variables

ActorBlueprint battle_partner_goombario
 
ActorBlueprint battle_partner_kooper
 
ActorBlueprint battle_partner_bombette
 
ActorBlueprint battle_partner_parakarry
 
ActorBlueprint battle_partner_goompa
 
ActorBlueprint battle_partner_watt
 
ActorBlueprint battle_partner_sushie
 
ActorBlueprint battle_partner_lakilester
 
ActorBlueprint battle_partner_bow
 
ActorBlueprint battle_partner_twink
 
PartnerDMAData bPartnerDmaTable []
 

Macro Definition Documentation

◆ BATTLE_PARTNER_ENTRY

#define BATTLE_PARTNER_ENTRY ( name,
Y )
Value:
{ \
(u32)battle_partner_##name##_ROM_START, \
(u32)battle_partner_##name##_ROM_END, \
battle_partner_##name##_VRAM, \
&battle_partner_##name, \
Y \
}

Definition at line 17 of file partner_dma.c.

17#define BATTLE_PARTNER_ENTRY(name, Y) \
18 { \
19 (u32)battle_partner_##name##_ROM_START, \
20 (u32)battle_partner_##name##_ROM_END, \
21 battle_partner_##name##_VRAM, \
22 &battle_partner_##name, \
23 Y \
24 }

Variable Documentation

◆ battle_partner_goombario

ActorBlueprint battle_partner_goombario
extern

Definition at line 542 of file goombario.c.

542 {
543 .flags = 0,
544 .type = ACTOR_TYPE_GOOMBARIO,
545 .level = ACTOR_LEVEL_GOOMBARIO,
546 .maxHP = 99,
547 .partCount = ARRAY_COUNT(N(ActorParts)),
548 .partsData = N(ActorParts),
549 .initScript = &N(EVS_Init),
550 .statusTable = N(StatusTable),
551 .escapeChance = 0,
552 .airLiftChance = 0,
553 .hurricaneChance = 0,
554 .spookChance = 0,
555 .upAndAwayChance = 0,
556 .spinSmashReq = 4,
557 .powerBounceChance = 80,
558 .coinReward = 0,
559 .size = { 29, 26 },
560 .healthBarOffset = { 0, 0 },
561 .statusIconOffset = { -10, 20 },
562 .statusTextOffset = { 10, 20 },
563};
#define ARRAY_COUNT(arr)
Definition macros.h:40

◆ battle_partner_kooper

ActorBlueprint battle_partner_kooper
extern

Definition at line 250 of file kooper.c.

250 {
251 .flags = 0,
252 .type = ACTOR_TYPE_KOOPER,
253 .level = ACTOR_LEVEL_KOOPER,
254 .maxHP = 99,
255 .partCount = ARRAY_COUNT(N(ActorParts)),
256 .partsData = N(ActorParts),
257 .initScript = &N(EVS_Init),
258 .statusTable = N(StatusTable),
259 .escapeChance = 0,
260 .airLiftChance = 0,
261 .hurricaneChance = 0,
262 .spookChance = 0,
263 .upAndAwayChance = 0,
264 .spinSmashReq = 4,
265 .powerBounceChance = 80,
266 .coinReward = 0,
267 .size = { 32, 38 },
268 .healthBarOffset = { 0, 0 },
269 .statusIconOffset = { -10, 30 },
270 .statusTextOffset = { 10, 30 },
271};

◆ battle_partner_bombette

ActorBlueprint battle_partner_bombette
extern

Definition at line 315 of file bombette.c.

315 {
316 .flags = 0,
317 .type = ACTOR_TYPE_BOMBETTE,
318 .level = ACTOR_LEVEL_BOMBETTE,
319 .maxHP = 99,
320 .partCount = ARRAY_COUNT(N(ActorParts)),
321 .partsData = N(ActorParts),
322 .initScript = &N(EVS_Init),
323 .statusTable = N(StatusTable),
324 .escapeChance = 0,
325 .airLiftChance = 0,
326 .hurricaneChance = 0,
327 .spookChance = 0,
328 .upAndAwayChance = 0,
329 .spinSmashReq = 4,
330 .powerBounceChance = 80,
331 .coinReward = 0,
332 .size = { 30, 28 },
333 .healthBarOffset = { 0, 0 },
334 .statusIconOffset = { -10, 20 },
335 .statusTextOffset = { 10, 20 },
336};

◆ battle_partner_parakarry

ActorBlueprint battle_partner_parakarry
extern

Definition at line 676 of file parakarry.c.

676 {
677 .flags = ACTOR_FLAG_FLYING,
678 .type = ACTOR_TYPE_PARAKARRY,
679 .level = ACTOR_LEVEL_PARAKARRY,
680 .maxHP = 99,
681 .partCount = ARRAY_COUNT(N(ActorParts)),
682 .partsData = N(ActorParts),
683 .initScript = &N(EVS_Init),
684 .statusTable = N(StatusTable),
685 .escapeChance = 0,
686 .airLiftChance = 0,
687 .hurricaneChance = 0,
688 .spookChance = 0,
689 .upAndAwayChance = 0,
690 .spinSmashReq = 4,
691 .powerBounceChance = 80,
692 .coinReward = 0,
693 .size = { 38, 38 },
694 .healthBarOffset = { 0, 0 },
695 .statusIconOffset = { -10, 30 },
696 .statusTextOffset = { 10, 30 },
697};
@ ACTOR_FLAG_FLYING
Quake Hammer can't hit.
Definition enums.h:3329

◆ battle_partner_goompa

ActorBlueprint battle_partner_goompa
extern

Definition at line 73 of file goompa.c.

73 {
74 .flags = ACTOR_FLAG_NO_ATTACK,
75 .type = ACTOR_TYPE_GOOMBARIO,
76 .maxHP = 99,
77 .partCount = ARRAY_COUNT(N(ActorParts)),
78 .partsData = N(ActorParts),
79 .initScript = &N(EVS_Init),
80 .statusTable = N(StatusTable),
81 .spinSmashReq = 4,
82 .powerBounceChance = 80,
83 .size = { 29, 26 },
84 .statusIconOffset = { -10, 20 },
85 .statusTextOffset = { 10, 20 },
86};
@ ACTOR_FLAG_NO_ATTACK
Skip attack turn.
Definition enums.h:3339

◆ battle_partner_watt

ActorBlueprint battle_partner_watt
extern

Definition at line 505 of file watt.c.

505 {
506 .flags = ACTOR_FLAG_FLYING,
507 .type = ACTOR_TYPE_WATT,
508 .level = ACTOR_LEVEL_WATT,
509 .maxHP = 99,
510 .partCount = ARRAY_COUNT(N(ActorParts)),
511 .partsData = N(ActorParts),
512 .initScript = &N(EVS_Init),
513 .statusTable = N(StatusTable),
514 .escapeChance = 0,
515 .airLiftChance = 0,
516 .hurricaneChance = 0,
517 .spookChance = 0,
518 .upAndAwayChance = 0,
519 .spinSmashReq = 4,
520 .powerBounceChance = 80,
521 .coinReward = 0,
522 .size = { 34, 28 },
523 .healthBarOffset = { 0, 0 },
524 .statusIconOffset = { -10, 20 },
525 .statusTextOffset = { 10, 20 },
526};

◆ battle_partner_sushie

ActorBlueprint battle_partner_sushie
extern

Definition at line 446 of file sushie.c.

446 {
447 .flags = 0,
448 .type = ACTOR_TYPE_SUSHIE,
449 .level = ACTOR_LEVEL_SUSHIE,
450 .maxHP = 99,
451 .partCount = ARRAY_COUNT(N(ActorParts)),
452 .partsData = N(ActorParts),
453 .initScript = &N(EVS_Init),
454 .statusTable = N(StatusTable),
455 .escapeChance = 0,
456 .airLiftChance = 0,
457 .hurricaneChance = 0,
458 .spookChance = 0,
459 .upAndAwayChance = 0,
460 .spinSmashReq = 4,
461 .powerBounceChance = 80,
462 .coinReward = 0,
463 .size = { 37, 26 },
464 .healthBarOffset = { 0, 0 },
465 .statusIconOffset = { -10, 20 },
466 .statusTextOffset = { 10, 20 },
467};

◆ battle_partner_lakilester

ActorBlueprint battle_partner_lakilester
extern

Definition at line 157 of file lakilester.c.

157 {
158 .flags = ACTOR_FLAG_FLYING,
159 .type = ACTOR_TYPE_LAKILESTER,
160 .level = ACTOR_LEVEL_LAKILESTER,
161 .maxHP = 99,
162 .partCount = ARRAY_COUNT(N(ActorParts)),
163 .partsData = N(ActorParts),
164 .initScript = &N(EVS_Init),
165 .statusTable = N(StatusTable),
166 .escapeChance = 0,
167 .airLiftChance = 0,
168 .hurricaneChance = 0,
169 .spookChance = 0,
170 .upAndAwayChance = 0,
171 .spinSmashReq = 4,
172 .powerBounceChance = 80,
173 .coinReward = 0,
174 .size = { 44, 40 },
175 .healthBarOffset = { 0, 0 },
176 .statusIconOffset = { -10, 30 },
177 .statusTextOffset = { 13, 31 },
178};

◆ battle_partner_bow

ActorBlueprint battle_partner_bow
extern

Definition at line 208 of file bow.c.

208 {
209 .flags = ACTOR_FLAG_FLYING,
210 .type = ACTOR_TYPE_BOW,
211 .level = ACTOR_LEVEL_BOW,
212 .maxHP = 99,
213 .partCount = ARRAY_COUNT(N(ActorParts)),
214 .partsData = N(ActorParts),
215 .initScript = &N(EVS_Init),
216 .statusTable = N(StatusTable),
217 .escapeChance = 0,
218 .airLiftChance = 0,
219 .hurricaneChance = 0,
220 .spookChance = 0,
221 .upAndAwayChance = 0,
222 .spinSmashReq = 4,
223 .powerBounceChance = 80,
224 .coinReward = 0,
225 .size = { 36, 29 },
226 .healthBarOffset = { 0, 0 },
227 .statusIconOffset = { -10, 22 },
228 .statusTextOffset = { 10, 22 },
229};

◆ battle_partner_twink

ActorBlueprint battle_partner_twink
extern

Definition at line 91 of file twink.c.

91 {
93 .type = ACTOR_TYPE_TWINK,
94 .level = ACTOR_LEVEL_TWINK,
95 .maxHP = 99,
96 .partCount = ARRAY_COUNT(N(ActorParts)),
97 .partsData = N(ActorParts),
98 .initScript = &N(EVS_Init),
99 .statusTable = N(StatusTable),
100 .escapeChance = 0,
101 .airLiftChance = 0,
102 .hurricaneChance = 0,
103 .spookChance = 0,
104 .upAndAwayChance = 0,
105 .spinSmashReq = 4,
106 .powerBounceChance = 80,
107 .coinReward = 0,
108 .size = { 20, 20 },
109 .healthBarOffset = { 0, 0 },
110 .statusIconOffset = { -10, 30 },
111 .statusTextOffset = { 13, 31 },
112};
@ ACTOR_FLAG_NO_DMG_APPLY
Damage is not applied to actor HP.
Definition enums.h:3340

◆ bPartnerDmaTable

PartnerDMAData bPartnerDmaTable[]
Initial value:
= {
{},
{ (u32)battle_partner_goombario_ROM_START, (u32)battle_partner_goombario_ROM_END, battle_partner_goombario_VRAM, &battle_partner_goombario , 0 },
{ (u32)battle_partner_kooper_ROM_START, (u32)battle_partner_kooper_ROM_END, battle_partner_kooper_VRAM, &battle_partner_kooper , 0 },
{ (u32)battle_partner_bombette_ROM_START, (u32)battle_partner_bombette_ROM_END, battle_partner_bombette_VRAM, &battle_partner_bombette , 0 },
{ (u32)battle_partner_parakarry_ROM_START, (u32)battle_partner_parakarry_ROM_END, battle_partner_parakarry_VRAM, &battle_partner_parakarry , 30 },
{ (u32)battle_partner_goompa_ROM_START, (u32)battle_partner_goompa_ROM_END, battle_partner_goompa_VRAM, &battle_partner_goompa , 0 },
{ (u32)battle_partner_watt_ROM_START, (u32)battle_partner_watt_ROM_END, battle_partner_watt_VRAM, &battle_partner_watt , 20 },
{ (u32)battle_partner_sushie_ROM_START, (u32)battle_partner_sushie_ROM_END, battle_partner_sushie_VRAM, &battle_partner_sushie , 0 },
{ (u32)battle_partner_lakilester_ROM_START, (u32)battle_partner_lakilester_ROM_END, battle_partner_lakilester_VRAM, &battle_partner_lakilester , 10 },
{ (u32)battle_partner_bow_ROM_START, (u32)battle_partner_bow_ROM_END, battle_partner_bow_VRAM, &battle_partner_bow , 20 },
{},
{ (u32)battle_partner_twink_ROM_START, (u32)battle_partner_twink_ROM_END, battle_partner_twink_VRAM, &battle_partner_twink , 30 },
}
ActorBlueprint battle_partner_lakilester
Definition lakilester.c:157
ActorBlueprint battle_partner_goompa
Definition goompa.c:73
ActorBlueprint battle_partner_parakarry
Definition parakarry.c:676
ActorBlueprint battle_partner_goombario
Definition goombario.c:542
ActorBlueprint battle_partner_sushie
Definition sushie.c:446
ActorBlueprint battle_partner_bow
Definition bow.c:208
ActorBlueprint battle_partner_kooper
Definition kooper.c:250
ActorBlueprint battle_partner_twink
Definition twink.c:91
ActorBlueprint battle_partner_bombette
Definition bombette.c:315
ActorBlueprint battle_partner_watt
Definition watt.c:505

Definition at line 26 of file partner_dma.c.

26 {
27 {},
28 BATTLE_PARTNER_ENTRY(goombario, 0),
29 BATTLE_PARTNER_ENTRY(kooper, 0),
30 BATTLE_PARTNER_ENTRY(bombette, 0),
31 BATTLE_PARTNER_ENTRY(parakarry, 30),
32 BATTLE_PARTNER_ENTRY(goompa, 0),
33 BATTLE_PARTNER_ENTRY(watt, 20),
34 BATTLE_PARTNER_ENTRY(sushie, 0),
35 BATTLE_PARTNER_ENTRY(lakilester, 10),
36 BATTLE_PARTNER_ENTRY(bow, 20),
37 {},
38 BATTLE_PARTNER_ENTRY(twink, 30),
39};
#define BATTLE_PARTNER_ENTRY(name, Y)
Definition partner_dma.c:17

Referenced by load_partner_actor().