Skip to content

Commit cd647df

Browse files
authored
Don't pass redundant label names to table_width and list_start (#484)
1 parent cd1065b commit cd647df

Some content is hidden

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

48 files changed

+74
-63
lines changed

data/battle/stat_mod_names.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; The relevant move effect IDs correspond to the stats
33

44
StatModTextStrings:
5-
list_start StatModTextStrings
5+
list_start
66
li "ATTACK"
77
li "DEFENSE"
88
li "SPEED"

data/battle/stat_names.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; Stats that vitamins can raise or lower
22

33
VitaminStats:
4-
list_start VitaminStats
4+
list_start
55
li "HEALTH"
66
li "ATTACK"
77
li "DEFENSE"

data/battle_anims/base_coords.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FrameBlockBaseCoords:
2-
table_width 2, FrameBlockBaseCoords
2+
table_width 2
33
db $10, $68 ; BASECOORD_00
44
db $10, $70 ; BASECOORD_01
55
db $10, $78 ; BASECOORD_02

data/battle_anims/frame_blocks.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FrameBlockPointers:
2-
table_width 2, FrameBlockPointers
2+
table_width 2
33
dw FrameBlock00
44
dw FrameBlock01
55
dw FrameBlock02

data/battle_anims/subanimations.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SubanimationPointers:
2-
table_width 2, SubanimationPointers
2+
table_width 2
33
dw Subanim_0Star
44
dw Subanim_0StarTwice
55
dw Subanim_0StarThrice

data/credits/credits_text.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CreditsTextPointers:
22
; entries correspond to CRED_* constants
3-
table_width 2, CreditsTextPointers
3+
table_width 2
44
dw CredVersion
55
dw CredTajiri
66
dw CredTaOota

data/events/hidden_coins.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ MACRO hidden_coin
33
ENDM
44

55
HiddenCoinCoords:
6-
table_width 3, HiddenCoinCoords
6+
table_width 3
77
; map id, x, y
88
hidden_coin GAME_CORNER, 0, 8
99
hidden_coin GAME_CORNER, 1, 16

data/events/hidden_item_coords.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ MACRO hidden_item
33
ENDM
44

55
HiddenItemCoords:
6-
table_width 3, HiddenItemCoords
6+
table_width 3
77
; map id, x, y
88
hidden_item VIRIDIAN_FOREST, 1, 18
99
hidden_item VIRIDIAN_FOREST, 16, 42

data/events/trades.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
TradeMons:
22
; entries correspond to TRADE_FOR_* constants
3-
table_width 3 + NAME_LENGTH, TradeMons
3+
table_width 3 + NAME_LENGTH
44
; give mon, get mon, dialog id, nickname
55
; The two instances of TRADE_DIALOGSET_EVOLUTION are a leftover
66
; from the Japanese Blue trades, which used species that evolve.

data/growth_rates.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ENDM
1111

1212
GrowthRateTable:
1313
; entries correspond to GROWTH_* (see constants/pokemon_data_constants.asm)
14-
table_width 4, GrowthRateTable
14+
table_width 4
1515
growth_rate 1, 1, 0, 0, 0 ; Medium Fast
1616
growth_rate 3, 4, 10, 0, 30 ; Slightly Fast
1717
growth_rate 3, 4, 20, 0, 70 ; Slightly Slow

data/items/names.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ItemNames::
2-
list_start ItemNames
2+
list_start
33
li "MASTER BALL"
44
li "ULTRA BALL"
55
li "GREAT BALL"

data/items/prices.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ItemPrices::
2-
table_width 3, ItemPrices
2+
table_width 3
33
bcd3 0 ; MASTER_BALL
44
bcd3 1200 ; ULTRA_BALL
55
bcd3 600 ; GREAT_BALL

data/maps/hide_show_data.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
MapHSPointers:
44
; entries correspond to map ids
5-
table_width 2, MapHSPointers
5+
table_width 2
66
dw PalletTownHS
77
dw ViridianCityHS
88
dw PewterCityHS
@@ -259,7 +259,7 @@ NoHS:
259259

260260
MissableObjects:
261261
; entries correspond to HS_* constants (see constants/hide_show_constants)
262-
table_width 3, MissableObjects
262+
table_width 3
263263
; format: map id, object id, HIDE/SHOW
264264

265265
PalletTownHS:

data/maps/map_header_banks.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; see also MapHeaderPointers
22
MapHeaderBanks::
3-
table_width 1, MapHeaderBanks
3+
table_width 1
44
db BANK(PalletTown_h)
55
db BANK(ViridianCity_h)
66
db BANK(PewterCity_h)

data/maps/map_header_pointers.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; see also MapHeaderBanks
22
MapHeaderPointers::
3-
table_width 2, MapHeaderPointers
3+
table_width 2
44
dw PalletTown_h
55
dw ViridianCity_h
66
dw PewterCity_h

data/maps/songs.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MapSongBanks::
2-
table_width 2, MapSongBanks
2+
table_width 2
33
db MUSIC_PALLET_TOWN, BANK(Music_PalletTown) ; PALLET_TOWN
44
db MUSIC_CITIES1, BANK(Music_Cities1) ; VIRIDIAN_CITY
55
db MUSIC_CITIES1, BANK(Music_Cities1) ; PEWTER_CITY

data/maps/sprite_sets.asm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; Valid sprite IDs for each outdoor map.
22

33
MapSpriteSets:
4-
table_width 1, MapSpriteSets
4+
table_width 1
55
db SPRITESET_PALLET_VIRIDIAN ; PALLET_TOWN
66
db SPRITESET_PALLET_VIRIDIAN ; VIRIDIAN_CITY
77
db SPRITESET_PEWTER_CERULEAN ; PEWTER_CITY
@@ -47,7 +47,7 @@ MapSpriteSets:
4747
; #3: sprite set ID if on the west or north side
4848
; #4: sprite set ID if on the east or south side
4949
SplitMapSpriteSets:
50-
table_width 4, SplitMapSpriteSets
50+
table_width 4
5151
db NORTH_SOUTH, 37, SPRITESET_PEWTER_CERULEAN, SPRITESET_PALLET_VIRIDIAN ; SPLITSET_ROUTE_2
5252
db NORTH_SOUTH, 50, SPRITESET_PEWTER_CERULEAN, SPRITESET_LAVENDER ; SPLITSET_ROUTE_10
5353
db EAST_WEST, 57, SPRITESET_VERMILION, SPRITESET_SILENCE_BRIDGE ; SPLITSET_ROUTE_11
@@ -63,7 +63,7 @@ SplitMapSpriteSets:
6363
assert_table_length NUM_SPLIT_SETS
6464

6565
SpriteSets:
66-
table_width SPRITE_SET_LENGTH, SpriteSets
66+
table_width SPRITE_SET_LENGTH
6767

6868
; SPRITESET_PALLET_VIRIDIAN
6969
db SPRITE_BLUE

data/maps/town_map_entries.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ENDM
55

66
; the appearance of towns and routes in the town map
77
ExternalMapEntries:
8-
table_width 3, ExternalMapEntries
8+
table_width 3
99
; x, y, name
1010
external_map 2, 11, PalletTownName
1111
external_map 2, 8, ViridianCityName

data/moves/animations.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AttackAnimationPointers:
2-
table_width 2, AttackAnimationPointers
2+
table_width 2
33
dw PoundAnim
44
dw KarateChopAnim
55
dw DoubleSlapAnim

data/moves/effects_pointers.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MoveEffectPointerTable:
22
; entries correspond to *_EFFECT constants
3-
table_width 2, MoveEffectPointerTable
3+
table_width 2
44
dw SleepEffect ; EFFECT_01
55
dw PoisonEffect ; POISON_SIDE_EFFECT1
66
dw DrainHPEffect ; DRAIN_HP_EFFECT

data/moves/moves.asm

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

1111
Moves:
1212
; Characteristics of each move.
13-
table_width MOVE_LENGTH, Moves
13+
table_width MOVE_LENGTH
1414
move POUND, NO_ADDITIONAL_EFFECT, 40, NORMAL, 100, 35
1515
move KARATE_CHOP, NO_ADDITIONAL_EFFECT, 50, NORMAL, 100, 25
1616
move DOUBLESLAP, TWO_TO_FIVE_ATTACKS_EFFECT, 15, NORMAL, 85, 10

data/moves/names.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MoveNames::
2-
list_start MoveNames
2+
list_start
33
li "POUND"
44
li "KARATE CHOP"
55
li "DOUBLESLAP"

data/moves/sfx.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MoveSoundTable:
2-
table_width 3, MoveSoundTable
2+
table_width 3
33
; ID, pitch mod, tempo mod
44
db SFX_POUND, $00, $80 ; POUND
55
db SFX_BATTLE_0C, $10, $80 ; KARATE_CHOP

data/moves/tmhm_moves.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; define constants for the item IDs and for the corresponding move values.
33

44
TechnicalMachines:
5-
table_width 1, TechnicalMachines
5+
table_width 1
66

77
FOR n, 1, NUM_TMS + 1
88
db TM{02d:n}_MOVE

data/pokemon/base_stats.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
BaseStats::
2-
table_width BASE_DATA_SIZE, BaseStats
2+
table_width BASE_DATA_SIZE
33
INCLUDE "data/pokemon/base_stats/bulbasaur.asm"
44
INCLUDE "data/pokemon/base_stats/ivysaur.asm"
55
INCLUDE "data/pokemon/base_stats/venusaur.asm"

data/pokemon/cries.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MACRO mon_cry
44
ENDM
55

66
CryData::
7-
table_width 3, CryData
7+
table_width 3
88
; base cry, pitch, length
99
mon_cry SFX_CRY_11, $00, $80 ; Rhydon
1010
mon_cry SFX_CRY_03, $00, $80 ; Kangaskhan

data/pokemon/dex_entries.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PokedexEntryPointers:
2-
table_width 2, PokedexEntryPointers
2+
table_width 2
33
dw RhydonDexEntry
44
dw KangaskhanDexEntry
55
dw NidoranMDexEntry

data/pokemon/dex_order.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PokedexOrder:
2-
table_width 1, PokedexOrder
2+
table_width 1
33
db DEX_RHYDON
44
db DEX_KANGASKHAN
55
db DEX_NIDORAN_M

data/pokemon/evos_moves.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
; - db 0 ; no more level-up moves
1010

1111
EvosMovesPointerTable:
12-
table_width 2, EvosMovesPointerTable
12+
table_width 2
1313
dw RhydonEvosMoves
1414
dw KangaskhanEvosMoves
1515
dw NidoranMEvosMoves

data/pokemon/names.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MonsterNames::
2-
table_width NAME_LENGTH - 1, MonsterNames
2+
table_width NAME_LENGTH - 1
33
db "RHYDON@@@@"
44
db "KANGASKHAN"
55
db "NIDORAN♂@@"

data/pokemon/palettes.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MonsterPalettes:
2-
table_width 1, MonsterPalettes
2+
table_width 1
33
db PAL_MEWMON ; MISSINGNO
44
db PAL_GREENMON ; BULBASAUR
55
db PAL_GREENMON ; IVYSAUR

data/sgb/sgb_palettes.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SuperPalettes:
22
; entries correspond to PAL_* constants
3-
table_width 2 * 4, SuperPalettes
3+
table_width 2 * 4
44
RGB 31,29,31, 21,28,11, 20,26,31, 03,02,02 ; PAL_ROUTE
55
RGB 31,29,31, 25,28,27, 20,26,31, 03,02,02 ; PAL_PALLET
66
RGB 31,29,31, 17,26,03, 20,26,31, 03,02,02 ; PAL_VIRIDIAN

data/sprites/sprites.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ MACRO overworld_sprite
55
ENDM
66

77
SpriteSheetPointerTable:
8-
table_width 4, SpriteSheetPointerTable
8+
table_width 4
99
; graphics, tile count
1010
overworld_sprite RedSprite, 12 ; SPRITE_RED
1111
overworld_sprite BlueSprite, 12 ; SPRITE_BLUE

data/tilemaps.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ENDM
55

66
TileIDListPointerTable:
77
; entries correspond to TILEMAP_* constants (see constants/gfx_constants.asm)
8-
table_width 3, TileIDListPointerTable
8+
table_width 3
99
; tilemap pointer, width, height
1010
tile_ids MonTiles, 7, 7
1111
tile_ids SlideDownMonTiles_7x5, 7, 5

data/tilesets/tileset_headers.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ MACRO tileset
77
ENDM
88

99
Tilesets:
10-
table_width 12, Tilesets
10+
table_width 12
1111
; name, 3 counter tiles, grass tile, animations
1212
tileset Overworld, -1, -1, -1, $52, TILEANIM_WATER_FLOWER
1313
tileset RedsHouse1, -1, -1, -1, -1, TILEANIM_NONE

data/tilesets/warp_tile_ids.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
WarpTileIDPointers:
2-
table_width 2, WarpTileIDPointers
2+
table_width 2
33
dw .OverworldWarpTileIDs
44
dw .RedsHouse1WarpTileIDs
55
dw .MartWarpTileIDs

data/trainers/ai_pointers.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TrainerAIPointers:
2-
table_width 3, TrainerAIPointers
2+
table_width 3
33
; one entry per trainer class
44
; first byte, number of times (per Pokémon) it can occur
55
; next two bytes, pointer to AI subroutine for trainer class

data/trainers/move_choices.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ENDM
88

99
; move choice modification methods that are applied for each trainer class
1010
TrainerClassMoveChoiceModifications:
11-
list_start TrainerClassMoveChoiceModifications
11+
list_start
1212
move_choices ; YOUNGSTER
1313
move_choices 1 ; BUG CATCHER
1414
move_choices 1 ; LASS

data/trainers/name_pointers.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ TrainerNamePointers:
22
; These are only used for trainers' defeat speeches.
33
; They were originally shortened variants of the trainer class names
44
; in the Japanese versions, but are now redundant with TrainerNames.
5-
table_width 2, TrainerNamePointers
5+
table_width 2
66
dw .YoungsterName
77
dw .BugCatcherName
88
dw .LassName

data/trainers/names.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TrainerNames::
2-
list_start TrainerNames
2+
list_start
33
li "YOUNGSTER"
44
li "BUG CATCHER"
55
li "LASS"

data/trainers/parties.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TrainerDataPointers:
2-
table_width 2, TrainerDataPointers
2+
table_width 2
33
dw YoungsterData
44
dw BugCatcherData
55
dw LassData

data/trainers/pic_pointers_money.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MACRO pic_money
44
ENDM
55

66
TrainerPicAndMoneyPointers::
7-
table_width 5, TrainerPicAndMoneyPointers
7+
table_width 5
88
; pic pointer, base reward money
99
; money received after battle = base money × level of last enemy mon
1010
pic_money YoungsterPic, 1500

data/types/names.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TypeNames:
2-
table_width 2, TypeNames
2+
table_width 2
33

44
dw .Normal
55
dw .Fighting

data/wild/grass_water.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
WildDataPointers:
2-
table_width 2, WildDataPointers
2+
table_width 2
33
dw NothingWildMons ; PALLET_TOWN
44
dw NothingWildMons ; VIRIDIAN_CITY
55
dw NothingWildMons ; PEWTER_CITY

data/yes_no_menu_strings.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ENDM
55

66
TwoOptionMenuStrings:
77
; entries correspond to *_MENU constants
8-
table_width 5, TwoOptionMenuStrings
8+
table_width 5
99
; width, height, blank line before first menu item?, text pointer
1010
two_option_menu 4, 3, FALSE, .YesNoMenu
1111
two_option_menu 6, 3, FALSE, .NorthWestMenu

engine/battle/battle_transitions.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ DEF NUM_BATTLE_TRANSITION_BITS EQU const_value
7777
; bit 1: set if enemy is at least 3 levels higher than player
7878
; bit 2: set if dungeon map
7979
BattleTransitions:
80-
table_width 2, BattleTransitions
80+
table_width 2
8181
dw BattleTransition_DoubleCircle ; %000
8282
dw BattleTransition_Spiral ; %001
8383
dw BattleTransition_Circle ; %010

0 commit comments

Comments
 (0)