Skip to content

Commit c89c756

Browse files
committed
Use __SCOPE__ to simplify table_width
1 parent 13729e1 commit c89c756

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+78
-66
lines changed

src/audio/music1_headers.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ NumberOfSongs1:
22
db $1f
33

44
SongBanks1:
5-
table_width 1, SongBanks1
5+
table_width 1
66
db BANK(Music_Stop)
77
db BANK(Music_TitleScreen)
88
db BANK(Music_DuelTheme1)
@@ -37,7 +37,7 @@ SongBanks1:
3737
assert_table_length NUM_SONGS
3838

3939
SongHeaderPointers1:
40-
table_width 2, SongHeaderPointers1
40+
table_width 2
4141
dw Music_Stop
4242
dw Music_TitleScreen
4343
dw Music_DuelTheme1

src/audio/music2_headers.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ NumberOfSongs2:
22
db $1f
33

44
SongBanks2:
5-
table_width 1, SongBanks2
5+
table_width 1
66
db BANK(Music_Stop)
77
db BANK(Music_TitleScreen)
88
db BANK(Music_DuelTheme1)
@@ -37,7 +37,7 @@ SongBanks2:
3737
assert_table_length NUM_SONGS
3838

3939
SongHeaderPointers2:
40-
table_width 2, SongHeaderPointers2
40+
table_width 2
4141
dw Music_Stop
4242
dw NULL
4343
dw NULL

src/audio/sfx_headers.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ NumberOfSFX:
22
db NUM_SFX
33

44
SFXHeaderPointers:
5-
table_width 2, SFXHeaderPointers
5+
table_width 2
66
dw Sfx_Stop
77
dw Sfx_Cursor
88
dw Sfx_Confirm

src/data/auto_deck_machines.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ MACRO auto_deck
1010
ENDM
1111

1212
AutoDeckMachineEntries:
13-
table_width 6, AutoDeckMachineEntries
13+
table_width 6
1414

1515
; Fighting Auto Deck Machine
1616
auto_deck AllFightingPokemonCardList, AllFightingPokemonText, AllFightingPokemonDescriptionText

src/data/cards.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; convenience once the meaning of all fields is figured out.
33

44
CardPointers::
5-
table_width 2, CardPointers
5+
table_width 2
66
dw NULL
77
dw GrassEnergyCard
88
dw FireEnergyCard

src/data/deck_ai_pointers.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
DeckAIPointerTable::
2-
table_width 2, DeckAIPointerTable
2+
table_width 2
33
dw AIActionTable_SamPractice ; SAMS_PRACTICE_DECK
44
dw AIActionTable_GeneralDecks ; PRACTICE_PLAYER_DECK
55
dw AIActionTable_GeneralDecks ; SAMS_NORMAL_DECK

src/data/decks.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
DeckPointers::
2-
table_width 2, DeckPointers
2+
table_width 2
33
dw UnnamedDeck
44
dw UnnamedDeck2
55
dw SamsPracticeDeck

src/data/duel/animations/attack_animations.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PointerTable_AttackAnimation:
2-
table_width 2, PointerTable_AttackAnimation
2+
table_width 2
33
dw NULL ; ATK_ANIM_NONE
44
dw AttackAnimation_Hit ; ATK_ANIM_HIT
55
dw AttackAnimation_BigHit ; ATK_ANIM_BIG_HIT

src/data/duel/animations/duel_animations.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; data for each animation ID (see src/constants/sprite_constants.asm)
22
Animations:
3-
table_width 6, Animations
3+
table_width 6
44
; DUEL_ANIM_NONE
55
db NONE ; sprite ID
66
db NONE ; palette ID

src/data/duel/duel_configurations.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
DeckIDDuelConfigurations:
2-
table_width 10, DeckIDDuelConfigurations
2+
table_width 10
33
db SAMS_PRACTICE_DECK_ID ; deck ID
44
db SAM_PIC ; NPC portrait
55
tx SamNPCName ; name text ID

0 commit comments

Comments
 (0)