forked from ZaneAvernathy/ModularMinimugBox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MMB Core.event
839 lines (714 loc) · 22.4 KB
/
MMB Core.event
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
#include "EAStdlib.event"
#include "Extensions/Hack Installation.txt"
#include "Internal/UI1 Proc Code.event"
#inctevent lyn "Internal/MMBInit.elf" "Internal/Definitions.elf"
WORD MMBNameWidth
WORD MMBAltTextWidth
#inctevent lyn "Internal/MMBSetup.elf" "Internal/Definitions.elf"
#inctevent lyn "Internal/MMBGetUnitAtCursor.elf" "Internal/Definitions.elf"
#inctevent lyn "Internal/MMBBuildWindow.elf" "Internal/Definitions.elf"
WORD ((1 << 24) | ((0x40 * MMBHeight * 2) >> 3))
#inctevent lyn "Internal/MMBBuildDynamics.elf" "Internal/Definitions.elf"
#inctevent lyn "Internal/MMBSetWindowPosition.elf" "Internal/Definitions.elf"
WORD MMBWidth
WORD MMBHeight
#inctevent lyn "Internal/MMBClearScrolledWindow.elf" "Internal/Definitions.elf"
WORD MMBWidth
WORD MMBHeight
#inctevent lyn "Internal/MMBExtendWindow.elf" "Internal/Definitions.elf"
#inctevent lyn "Internal/MMBRetractWindow.elf" "Internal/Definitions.elf"
#inctevent lyn "Internal/MMBCheckCursor.elf" "Internal/Definitions.elf"
#inctevent lyn "Internal/MMBRedrawTilemap.elf" "Internal/Definitions.elf"
WORD MMBWidth
WORD MMBHeight
#inctevent lyn "Internal/MMBUpdateInfo.elf" "Internal/Definitions.elf"
ALIGN 4
MMBExtendTable:
BYTE (MMBWidth/2) ((MMBWidth*3)/4) ((MMBWidth*9)/10) MMBWidth
MMBRetractTable:
BYTE ((MMBWidth*3)/4) (MMBWidth/2) 0
ALIGN 4
// Module inclusions
// Tilemap modules
#ifdef MMBStandardTilemap
#inctevent lyn "Modules/MMBDrawTilemap.elf" "Internal/Definitions.elf"
POIN MMBTilemap
WORD MMBTilemapPaletteIndex
#endif // MMBStandardTilemap
// Unit name modules
#ifdef MMBName
#inctevent lyn "Modules/MMBDrawNameUncentered.elf" "Internal/Definitions.elf"
WORD MMBNameColor
WORD MMBNameX
WORD MMBNameY
#endif // MMBName
#ifdef MMBNameCentered
#inctevent lyn "Modules/MMBDrawNameCentered.elf" "Internal/Definitions.elf"
WORD MMBNameWidth * 8
WORD MMBNameColor
WORD MMBNameX
WORD MMBNameY
#endif // MMBNameCentered
#ifdef MMBNameAffinityShifted
#inctevent lyn "Modules/MMBDrawNameAffinityShifted.elf" "Internal/Definitions.elf"
WORD MMBNameColor
WORD MMBNameX
WORD MMBNameY
#endif // MMBNameAffinityShifted
// Inventory modules
#ifdef MMBInventory
#inctevent lyn "Modules/MMBDrawInventory.elf" "Internal/Definitions.elf"
WORD MMBInventoryTileIndex
#ifndef MMBIconPrep
#define MMBIconPrep
#endif // MMBIconPrep
#ifndef MMBInventoryObjs
#define MMBInventoryObjs
#endif // MMBInventoryObjs
#endif // MMBInventory
#ifdef MMBEquippedWeapon
#inctevent lyn "Modules/MMBDrawEquippedWeapon.elf" "Internal/Definitions.elf"
WORD MMBInventoryTileIndex
#ifndef MMBIconPrep
#define MMBIconPrep
#endif // MMBIconPrep
#ifndef MMBInventoryObjs
#define MMBInventoryObjs
#endif // MMBInventoryObjs
#endif // MMBEquippedWeapon
#ifdef MMBEquippedWeaponName
#inctevent lyn "Modules/MMBDrawEquippedWeaponName.elf" "Internal/Definitions.elf"
SHORT MMBInventoryTileIndex
SHORT MMBTextAltColor
WORD (2 * ((32 * MMBInventoryTextY) + MMBInventoryTextX))
#ifndef MMBIconPrep
#define MMBIconPrep
#endif // MMBIconPrep
#ifndef MMBInventoryObjs
#define MMBInventoryObjs
#endif // MMBInventoryObjs
#endif // MMBEquippedWeaponName
#ifdef MMBEquippedWeaponNameCentered
#inctevent lyn "Modules/MMBDrawEquippedWeaponNameCentered.elf" "Internal/Definitions.elf"
SHORT MMBInventoryTileIndex
SHORT MMBTextAltColor
WORD (2 * ((32 * MMBInventoryTextY) + MMBInventoryTextX))
WORD MMBAltTextWidth * 8
#ifndef MMBIconPrep
#define MMBIconPrep
#endif // MMBIconPrep
#ifndef MMBInventoryObjs
#define MMBInventoryObjs
#endif // MMBInventoryObjs
#endif // MMBEquippedWeaponNameCentered
#ifdef MMBInventoryOrEquippedWeaponName
#inctevent lyn "Modules/MMBDrawInventoryOrEquippedWeaponName.elf" "Internal/Definitions.elf"
SHORT MMBInventoryTileIndex
SHORT MMBTextAltColor
WORD (2 * ((32 * MMBInventoryTextY) + MMBInventoryTextX))
#ifndef MMBIconPrep
#define MMBIconPrep
#endif // MMBIconPrep
#ifndef MMBInventoryObjs
#define MMBInventoryObjs
#endif // MMBInventoryObjs
#endif // MMBInventoryOrEquippedWeaponName
#ifdef MMBInventoryOrEquippedWeaponNameCentered
#inctevent lyn "Modules/MMBDrawInventoryOrEquippedWeaponNameCentered.elf" "Internal/Definitions.elf"
SHORT MMBInventoryTileIndex
SHORT MMBTextAltColor
WORD (2 * ((32 * MMBInventoryTextY) + MMBInventoryTextX))
WORD MMBAltTextWidth * 8
#ifndef MMBIconPrep
#define MMBIconPrep
#endif // MMBIconPrep
#ifndef MMBInventoryObjs
#define MMBInventoryObjs
#endif // MMBInventoryObjs
#endif // MMBInventoryOrEquippedWeaponNameCentered
#ifdef MMBEquippedWeaponNameOnly
#inctevent lyn "Modules/MMBDrawEquippedWeaponNameOnly.elf" "Internal/Definitions.elf"
WORD MMBTextAltColor
WORD (2 * ((32 * MMBInventoryTextY) + MMBInventoryTextX))
#endif // MMBEquippedWeaponNameOnly
#ifdef MMBEquippedWeaponNameOnlyCentered
#inctevent lyn "Modules/MMBDrawEquippedWeaponNameOnlyCentered.elf" "Internal/Definitions.elf"
WORD MMBTextAltColor
WORD (2 * ((32 * MMBInventoryTextY) + MMBInventoryTextX))
WORD MMBAltTextWidth * 8
#endif // MMBEquippedWeaponNameOnlyCentered
// Minimug modules
#ifdef MMBMinimug
#inctevent lyn "Modules/MMBDrawMinimug.elf" "Internal/Definitions.elf"
WORD MMBMinimugX
WORD MMBMinimugY
WORD MMBMinimugTileIndexStart
WORD MMBMinimugPaletteIndex
#endif // MMBMinimug
#ifdef MMBMinimugEnemyFlip
#inctevent lyn "Modules/MMBDrawMinimugEnemyFlip.elf" "Internal/Definitions.elf"
WORD MMBMinimugX
WORD MMBMinimugY
WORD MMBMinimugTileIndexStart
WORD MMBMinimugPaletteIndex
#endif // MMBMinimugEnemyFlip
// Combination modules
#ifdef MMBHPStatus
#inctevent lyn "Modules/MMBDrawHPStatus.elf" "Internal/Definitions.elf"
WORD MMBHPStatusX
WORD MMBHPStatusY
WORD MMBHeight
#ifndef MMBNumberDrawing
#define MMBNumberDrawing
#endif // MMBNumberDrawing
#endif // MMBHPStatus
#ifdef MMBHP
#inctevent lyn "Modules/MMBDrawHP.elf" "Internal/Definitions.elf"
WORD MMBHPX
WORD MMBHPY
WORD MMBHeight
#ifndef MMBNumberDrawing
#define MMBNumberDrawing
#endif // MMBNumberDrawing
#endif // MMBHP
#ifdef MMBDEFRES
#inctevent lyn "Modules/MMBDrawDEFRES.elf" "Internal/Definitions.elf"
WORD (2 * ((32 * MMBDEFRESY) + MMBDEFRESX))
SHORT ((MMBDEFRESX+3)*8) (MMBDEFRESY*8)
WORD MMBHeight
WORD ((MMBDEFRESPaletteIndex << 12) | MMBDEFRESVRAMTile)
POIN MMBDEFLabelGraphic
POIN MMBRESLabelGraphic
ALIGN 4
MMBDEFLabelGraphic:
#incext Png2Dmp "Modules/DEFLabel.png"
ALIGN 4
MMBRESLabelGraphic:
#incext Png2Dmp "Modules/RESLabel.png"
#ifndef MMBNumberDrawing
#define MMBNumberDrawing
#endif // MMBNumberDrawing
#endif // MMBDEFRES
#ifdef MMBAVODOD
#inctevent lyn "Modules/MMBDrawAVODOD.elf" "Internal/Definitions.elf"
WORD (2 * ((32 * MMBAVODODY) + MMBAVODODX))
SHORT ((MMBAVODODX+3)*8) (MMBAVODODY*8)
WORD MMBHeight
WORD ((MMBAVODODPaletteIndex << 12) | MMBAVODODVRAMTile)
POIN MMBAVOLabelGraphic
POIN MMBDODLabelGraphic
ALIGN 4
MMBAVOLabelGraphic:
#incext Png2Dmp "Modules/AVOLabel.png"
ALIGN 4
MMBDODLabelGraphic:
#incext Png2Dmp "Modules/DODLabel.png"
#inctevent lyn "Modules/MMBAVOGetter.elf" "Internal/Definitions.elf"
#inctevent lyn "Modules/MMBDODGetter.elf" "Internal/Definitions.elf"
#ifndef MMBNumberDrawing
#define MMBNumberDrawing
#endif // MMBNumberDrawing
#endif // MMBAVODOD
// Bar modules
#ifdef MMBHPBar
#inctevent lyn "Modules/MMBDrawHPBar.elf" "Internal/Definitions.elf"
WORD MMBHPBarX
WORD MMBHPBarY
WORD MMBHPBarTileWidth
WORD MMBHPBarBase
#ifndef MMBBarDrawing
#define MMBBarDrawing
#endif // MMBBarDrawing
#endif // MMBHPBar
#ifdef MMBHPBarStatus
#inctevent lyn "Modules/MMBDrawHPBarStatus.elf" "Internal/Definitions.elf"
WORD MMBHPBarX
WORD MMBHPBarY
WORD MMBHPBarTileWidth
WORD MMBHPBarBase
#ifndef MMBBarDrawing
#define MMBBarDrawing
#endif // MMBBarDrawing
#endif // MMBHPBarStatus
// Affinity modules
#ifdef MMBAffinity
#inctevent lyn "Modules/MMBDrawAffinity.elf" "Internal/Definitions.elf"
WORD MMBAffinityTile
BYTE MMBAffinityX MMBAffinityY
ALIGN 4
#ifndef MMBIconPrep
#define MMBIconPrep
#endif // MMBIconPrep
#ifndef MMBAffinityObjs
#define MMBAffinityObjs
#endif // MMBAffinityObjs
#endif // MMBAffinity
// Skills modules
#ifdef MMBSkillsAlternate
#inctevent lyn "Modules/MMBDrawSkills.elf" "Internal/Definitions.elf"
WORD MMBSkillTile
#inctevent lyn "Modules/MMBDrawSkillAlternatingObjs.elf" "Internal/Definitions.elf"
WORD MMBHeight
SHORT (4 << 12) | MMBSkillTile
BYTE MMBSkillsX MMBSkillsY
#ifndef MMBIconPrep
#define MMBIconPrep
#endif // MMBIconPrep
#endif // MMBSkillsAlternate
// Label modules
// Label drawing switchboard
#ifdef MMBASLabel
ALIGN 4
MMBASLabelGraphic:
#incext Png2Dmp "Modules/ASLabel.png"
#ifndef MMBLabelDrawing
#define MMBLabelDrawing
#endif // MMBLabelDrawing
#endif // MMBASLabel
#ifdef MMBATKLabel
ALIGN 4
MMBATKLabelGraphic:
#incext Png2Dmp "Modules/ATKLabel.png"
#ifndef MMBLabelDrawing
#define MMBLabelDrawing
#endif // MMBLabelDrawing
#endif // MMBATKLabel
#ifdef MMBAVOLabel
ALIGN 4
MMBAVOLabelGraphic:
#incext Png2Dmp "Modules/AVOLabel.png"
#ifndef MMBLabelDrawing
#define MMBLabelDrawing
#endif // MMBLabelDrawing
#endif // MMBAVOLabel
#ifdef MMBCHRLabel
ALIGN 4
MMBCHRLabelGraphic:
#incext Png2Dmp "Modules/CHRLabel.png"
#ifndef MMBLabelDrawing
#define MMBLabelDrawing
#endif // MMBLabelDrawing
#endif // MMBCHRLabel
#ifdef MMBCRTLabel
ALIGN 4
MMBCRTLabelGraphic:
#incext Png2Dmp "Modules/CRTLabel.png"
#ifndef MMBLabelDrawing
#define MMBLabelDrawing
#endif // MMBLabelDrawing
#endif // MMBCRTLabel
#ifdef MMBDEFLabel
ALIGN 4
MMBDEFLabelGraphic:
#incext Png2Dmp "Modules/DEFLabel.png"
#ifndef MMBLabelDrawing
#define MMBLabelDrawing
#endif // MMBLabelDrawing
#endif // MMBDEFLabel
#ifdef MMBDODLabel
ALIGN 4
MMBDODLabelGraphic:
#incext Png2Dmp "Modules/DODLabel.png"
#ifndef MMBLabelDrawing
#define MMBLabelDrawing
#endif // MMBLabelDrawing
#endif // MMBDODLabel
#ifdef MMBEXPLabel
ALIGN 4
MMBEXPLabelGraphic:
#incext Png2Dmp "Modules/EXPLabel.png"
#ifndef MMBLabelDrawing
#define MMBLabelDrawing
#endif // MMBLabelDrawing
#endif // MMBEXPLabel
#ifdef MMBHITLabel
ALIGN 4
MMBHITLabelGraphic:
#incext Png2Dmp "Modules/HITLabel.png"
#ifndef MMBLabelDrawing
#define MMBLabelDrawing
#endif // MMBLabelDrawing
#endif // MMBHITLabel
#ifdef MMBLevelLabel
ALIGN 4
MMBLevelLabelGraphic:
#incext Png2Dmp "Modules/LevelLabel.png"
#ifndef MMBLabelDrawing
#define MMBLabelDrawing
#endif // MMBLabelDrawing
#endif // MMBLevelLabel
#ifdef MMBRESLabel
ALIGN 4
MMBRESLabelGraphic:
#incext Png2Dmp "Modules/RESLabel.png"
#ifndef MMBLabelDrawing
#define MMBLabelDrawing
#endif // MMBLabelDrawing
#endif // MMBRESLabel
#ifdef MMBRTGLabel
ALIGN 4
MMBRTGLabelGraphic:
#incext Png2Dmp "Modules/RTGLabel.png"
#ifndef MMBLabelDrawing
#define MMBLabelDrawing
#endif // MMBLabelDrawing
#endif // MMBRTGLabel
// Number modules
#ifdef MMBLevelNumber
#inctevent lyn "Modules/MMBDrawLevelNumber.elf" "Internal/Definitions.elf"
WORD MMBLevelX
WORD MMBLevelY
WORD MMBHeight
#ifndef MMBNumberDrawing
#define MMBNumberDrawing
#endif // MMBNumberDrawing
#endif // MMBLevelNumber
#ifdef MMBEXPNumber
#inctevent lyn "Modules/MMBDrawEXPNumber.elf" "Internal/Definitions.elf"
WORD MMBEXPX
WORD MMBEXPY
WORD MMBHeight
#ifndef MMBNumberDrawing
#define MMBNumberDrawing
#endif // MMBNumberDrawing
#endif // MMBEXPNumber
// Number drawing switchboard
#ifdef MMBASNumber
#inctevent lyn "Modules/MMBASGetter.elf" "Internal/Definitions.elf"
#ifndef MMBNumberListDrawing
#define MMBNumberListDrawing
#endif // MMBNumberListDrawing
#ifndef MMBBattleStruct
#define MMBBattleStruct
#endif // MMBBattleStruct
#endif // MMBASNumber
#ifdef MMBATKNumber
#inctevent lyn "Modules/MMBATKGetter.elf" "Internal/Definitions.elf"
#ifndef MMBNumberListDrawing
#define MMBNumberListDrawing
#endif // MMBNumberListDrawing
#ifndef MMBBattleStruct
#define MMBBattleStruct
#endif // MMBBattleStruct
#endif // MMBATKNumber
#ifdef MMBAVONumber
#inctevent lyn "Modules/MMBAVOGetter.elf" "Internal/Definitions.elf"
#ifndef MMBNumberListDrawing
#define MMBNumberListDrawing
#endif // MMBNumberListDrawing
#ifndef MMBBattleStruct
#define MMBBattleStruct
#endif // MMBBattleStruct
#endif // MMBAVONumber
#ifdef MMBCHRNumber
#inctevent lyn "Modules/MMBCHRGetter.elf" "Internal/Definitions.elf"
#ifndef MMBNumberListDrawing
#define MMBNumberListDrawing
#endif // MMBNumberListDrawing
#ifndef MMBBattleStruct
#define MMBBattleStruct
#endif // MMBBattleStruct
#endif // MMBCHRNumber
#ifdef MMBCRTNumber
#inctevent lyn "Modules/MMBCRTGetter.elf" "Internal/Definitions.elf"
#ifndef MMBNumberListDrawing
#define MMBNumberListDrawing
#endif // MMBNumberListDrawing
#ifndef MMBBattleStruct
#define MMBBattleStruct
#endif // MMBBattleStruct
#endif // MMBCRTNumber
#ifdef MMBDEFNumber
#inctevent lyn "Modules/MMBDEFGetter.elf" "Internal/Definitions.elf"
#ifndef MMBNumberListDrawing
#define MMBNumberListDrawing
#endif // MMBNumberListDrawing
#ifndef MMBBattleStruct
#define MMBBattleStruct
#endif // MMBBattleStruct
#endif // MMBDEFNumber
#ifdef MMBDODNumber
#inctevent lyn "Modules/MMBDODGetter.elf" "Internal/Definitions.elf"
#ifndef MMBNumberListDrawing
#define MMBNumberListDrawing
#endif // MMBNumberListDrawing
#ifndef MMBBattleStruct
#define MMBBattleStruct
#endif // MMBBattleStruct
#endif // MMBDODNumber
#ifdef MMBHITNumber
#inctevent lyn "Modules/MMBHITGetter.elf" "Internal/Definitions.elf"
#ifndef MMBNumberListDrawing
#define MMBNumberListDrawing
#endif // MMBNumberListDrawing
#ifndef MMBBattleStruct
#define MMBBattleStruct
#endif // MMBBattleStruct
#endif // MMBHITNumber
#ifdef MMBRESNumber
#inctevent lyn "Modules/MMBRESGetter.elf" "Internal/Definitions.elf"
#ifndef MMBNumberListDrawing
#define MMBNumberListDrawing
#endif // MMBNumberListDrawing
#ifndef MMBBattleStruct
#define MMBBattleStruct
#endif // MMBBattleStruct
#endif // MMBRESNumber
#ifdef MMBRTGNumber
#inctevent lyn "Modules/MMBRTGGetter.elf" "Internal/Definitions.elf"
#ifndef MMBNumberListDrawing
#define MMBNumberListDrawing
#endif // MMBNumberListDrawing
#ifndef MMBBattleStruct
#define MMBBattleStruct
#endif // MMBBattleStruct
#endif // MMBRTGNumber
// Module helpers
#ifdef MMBNumberDrawing
#inctevent lyn "Internal/MMBDrawNumberOAM.elf" "Internal/Definitions.elf"
#inctevent lyn "Internal/MMBDrawUnsignedNumber.elf" "Internal/Definitions.elf"
#inctevent lyn "Internal/MMBDrawSignedNumber.elf" "Internal/Definitions.elf"
#endif // MMBNumberDrawing
#ifdef MMBBarDrawing
#inctevent lyn "Internal/MMBDrawBar.elf" "Internal/Definitions.elf"
#endif // MMBBarDrawing
#ifdef MMBBattleStruct
#inctevent lyn "Internal/MMBPrepStats.elf" "Internal/Definitions.elf"
#endif // MMBBattleStruct
#ifdef MMBIconPrep
#inctevent lyn "Internal/MMBPrepIcons.elf" "Internal/Definitions.elf"
#endif // MMBIconPrep
#ifdef MMBAffinityObjs
#inctevent lyn "Internal/MMBDrawAffinityObjs.elf" "Internal/Definitions.elf"
WORD MMBHeight
#endif // MMBAffinityObjs
#ifdef MMBInventoryObjs
#inctevent lyn "Internal/MMBDrawInventoryObjs.elf" "Internal/Definitions.elf"
WORD MMBHeight
SHORT (0x04 << 12) | MMBInventoryTileIndex
BYTE MMBInventoryX MMBInventoryY
#endif // MMBInventoryObjs
ALIGN 4
#ifdef MMBNumberListDrawing
#inctevent lyn "Internal/MMBDrawNumberList.elf" "Internal/Definitions.elf"
WORD MMBHeight
ALIGN 4
MMBNumberTable:
#ifdef MMBASNumber
POIN MMBASGetter
SHORT MMBASX
SHORT MMBASY
#endif // MMBASNumber
#ifdef MMBATKNumber
POIN MMBATKGetter
SHORT MMBATKX
SHORT MMBATKY
#endif // MMBATKNumber
#ifdef MMBAVONumber
POIN MMBAVOGetter
SHORT MMBAVOX
SHORT MMBAVOY
#endif // MMBAVONumber
#ifdef MMBCHRNumber
POIN MMBCHRGetter
SHORT MMBCHRX
SHORT MMBCHRY
#endif // MMBCHRNumber
#ifdef MMBCRTNumber
POIN MMBCRTGetter
SHORT MMBCRTX
SHORT MMBCRTY
#endif // MMBCRTNumber
#ifdef MMBDEFNumber
POIN MMBDEFGetter
SHORT MMBDEFX
SHORT MMBDEFY
#endif // MMBDEFNumber
#ifdef MMBDODNumber
POIN MMBDODGetter
SHORT MMBDODX
SHORT MMBDODY
#endif // MMBDODNumber
#ifdef MMBHITNumber
POIN MMBHITGetter
SHORT MMBHITX
SHORT MMBHITY
#endif // MMBHITNumber
#ifdef MMBRESNumber
POIN MMBRESGetter
SHORT MMBRESX
SHORT MMBRESY
#endif // MMBRESNumber
#ifdef MMBRTGNumber
POIN MMBRTGGetter
SHORT MMBRTGX
SHORT MMBRTGY
#endif // MMBRTGNumber
WORD 0
#endif // MMBNumberListDrawing
ALIGN 4
#ifdef MMBLabelDrawing
#inctevent lyn "Internal/MMBDrawLabelList.elf" "Internal/Definitions.elf"
ALIGN 4
MMBLabelTable:
#ifdef MMBASLabel
POIN MMBASLabelGraphic
SHORT ((MMBASLabelPaletteIndex << 12) | MMBASLabelVRAMTile)
SHORT (2 * ((32 * MMBASLabelY) + MMBASLabelX)) | ((MMBASLabelTileCount << 12))
#endif // MMBASLabel
#ifdef MMBATKLabel
POIN MMBATKLabelGraphic
SHORT ((MMBATKLabelPaletteIndex << 12) | MMBATKLabelVRAMTile)
SHORT (2 * ((32 * MMBATKLabelY) + MMBATKLabelX)) | ((MMBATKLabelTileCount << 12))
#endif // MMBATKLabel
#ifdef MMBAVOLabel
POIN MMBAVOLabelGraphic
SHORT ((MMBAVOLabelPaletteIndex << 12) | MMBAVOLabelVRAMTile)
SHORT (2 * ((32 * MMBAVOLabelY) + MMBAVOLabelX)) | ((MMBAVOLabelTileCount << 12))
#endif // MMBAVOLabel
#ifdef MMBCHRLabel
POIN MMBCHRLabelGraphic
SHORT ((MMBCHRLabelPaletteIndex << 12) | MMBCHRLabelVRAMTile)
SHORT (2 * ((32 * MMBCHRLabelY) + MMBCHRLabelX)) | ((MMBCHRLabelTileCount << 12))
#endif // MMBCHRLabel
#ifdef MMBCRTLabel
POIN MMBCRTLabelGraphic
SHORT ((MMBCRTLabelPaletteIndex << 12) | MMBCRTLabelVRAMTile)
SHORT (2 * ((32 * MMBCRTLabelY) + MMBCRTLabelX)) | ((MMBCRTLabelTileCount << 12))
#endif // MMBCRTLabel
#ifdef MMBDEFLabel
POIN MMBDEFLabelGraphic
SHORT ((MMBDEFLabelPaletteIndex << 12) | MMBDEFLabelVRAMTile)
SHORT (2 * ((32 * MMBDEFLabelY) + MMBDEFLabelX)) | ((MMBDEFLabelTileCount << 12))
#endif // MMBDEFLabel
#ifdef MMBDODLabel
POIN MMBDODLabelGraphic
SHORT ((MMBDODLabelPaletteIndex << 12) | MMBDODLabelVRAMTile)
SHORT (2 * ((32 * MMBDODLabelY) + MMBDODLabelX)) | ((MMBDODLabelTileCount << 12))
#endif // MMBDODLabel
#ifdef MMBEXPLabel
POIN MMBEXPLabelGraphic
SHORT ((MMBEXPLabelPaletteIndex << 12) | MMBEXPLabelVRAMTile)
SHORT (2 * ((32 * MMBEXPLabelY) + MMBEXPLabelX)) | ((MMBEXPLabelTileCount << 12))
#endif // MMBEXPLabel
#ifdef MMBHITLabel
POIN MMBHITLabelGraphic
SHORT ((MMBHITLabelPaletteIndex << 12) | MMBHITLabelVRAMTile)
SHORT (2 * ((32 * MMBHITLabelY) + MMBHITLabelX)) | ((MMBHITLabelTileCount << 12))
#endif // MMBHITLabel
#ifdef MMBLevelLabel
POIN MMBLevelLabelGraphic
SHORT ((MMBLevelLabelPaletteIndex << 12) | MMBLevelLabelVRAMTile)
SHORT (2 * ((32 * MMBLevelLabelY) + MMBLevelLabelX)) | ((MMBLevelLabelTileCount << 12))
#endif // MMBLevelLabel
#ifdef MMBRESLabel
POIN MMBRESLabelGraphic
SHORT ((MMBRESLabelPaletteIndex << 12) | MMBRESLabelVRAMTile)
SHORT (2 * ((32 * MMBRESLabelY) + MMBRESLabelX)) | ((MMBRESLabelTileCount << 12))
#endif // MMBRESLabel
#ifdef MMBRTGLabel
POIN MMBRTGLabelGraphic
SHORT ((MMBRTGLabelPaletteIndex << 12) | MMBRTGLabelVRAMTile)
SHORT (2 * ((32 * MMBRTGLabelY) + MMBRTGLabelX)) | ((MMBRTGLabelTileCount << 12))
#endif // MMBRTGLabel
WORD 0
#endif // MMBLabelDrawing
ALIGN 4
MMBBuildRoutines:
#ifdef MMBIconPrep
POIN MMBPrepIcons
#endif // MMBIconPrep
#ifdef MMBStandardTilemap
POIN MMBDrawTilemap
#endif // MMBStandardTilemap
#ifdef MMBName
POIN MMBDrawNameUncentered
#endif // MMBName
#ifdef MMBNameCentered
POIN MMBDrawNameCentered
#endif // MMBNameCentered
#ifdef MMBNameAffinityShifted
POIN MMBDrawNameAffinityShifted
#endif // MMBNameAffinityShifted
#ifdef MMBMinimug
POIN MMBDrawMinimug
#endif // MMBMinimug
#ifdef MMBMinimugEnemyFlip
POIN MMBDrawMinimugEnemyFlip
#endif // MMBMinimugEnemyFlip
#ifdef MMBInventory
POIN MMBDrawInventory
#endif // MMBInventory
#ifdef MMBEquippedWeapon
POIN MMBDrawEquippedWeapon
#endif // MMBEquippedWeapon
#ifdef MMBEquippedWeaponName
POIN MMBDrawEquippedWeaponName
#endif // MMBEquippedWeaponName
#ifdef MMBEquippedWeaponNameCentered
POIN MMBDrawEquippedWeaponNameCentered
#endif // MMBEquippedWeaponNameCentered
#ifdef MMBEquippedWeaponNameOnly
POIN MMBDrawEquippedWeaponNameOnly
#endif // MMBEquippedWeaponNameOnly
#ifdef MMBEquippedWeaponNameOnlyCentered
POIN MMBDrawEquippedWeaponNameOnlyCentered
#endif // MMBEquippedWeaponNameOnlyCentered
#ifdef MMBInventoryOrEquippedWeaponName
POIN MMBDrawInventoryOrEquippedWeaponName
#endif // MMBInventoryOrEquippedWeaponName
#ifdef MMBInventoryOrEquippedWeaponNameCentered
POIN MMBDrawInventoryOrEquippedWeaponNameCentered
#endif // MMBInventoryOrEquippedWeaponNameCentered
#ifdef MMBHPBar
POIN MMBDrawHPBar
#endif // MMBHPBar
#ifdef MMBLabelDrawing
POIN MMBDrawLabelList
#endif // MMBLabelDrawing
#ifdef MMBAffinity
POIN MMBDrawAffinity
#endif // MMBAffinity
#ifdef MMBSkillsAlternate
POIN MMBDrawSkills
#endif // MMBSkillsAlternate
WORD 0
ALIGN 4
MMBDynamicRoutines:
#ifdef MMBBattleStruct
POIN MMBPrepStats
#endif // MMBBattleStruct
#ifdef MMBHPStatus
POIN MMBDrawHPStatus
#endif // MMBHPStatus
#ifdef MMBHP
POIN MMBDrawHP
#endif // MMBHP
#ifdef MMBDEFRES
POIN MMBDrawDEFRES
#endif // MMBDEFRES
#ifdef MMBAVODOD
POIN MMBDrawAVODOD
#endif // MMBAVODOD
#ifdef MMBLevelNumber
POIN MMBDrawLevelNumber
#endif // MMBLevelNumber
#ifdef MMBEXPNumber
POIN MMBDrawEXPNumber
#endif // MMBEXPNumber
#ifdef MMBNumberListDrawing
POIN MMBDrawNumberList
#endif // MMBNumberListDrawing
#ifdef MMBAffinityObjs
POIN MMBDrawAffinityObjs
#endif // MMBAffinityObjs
#ifdef MMBInventoryObjs
POIN MMBDrawInventoryObjs
#endif // MMBInventoryObjs
#ifdef MMBSkillsAlternate
POIN MMBDrawSkillAlternatingObjs
#endif // MMBSkillsAlternate
#ifdef MMBHPBarStatus
POIN MMBDrawHPBarStatus
#endif // MMBHPBarStatus
WORD 0