diff options
author | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-26 17:47:05 -0500 |
---|---|---|
committer | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-26 17:47:05 -0500 |
commit | b5417fafec7dd37cb4be391f3bd3d4541a2a381e (patch) | |
tree | a4e7d08afb2e862186a138e82c8ef4785d82786d /text | |
parent | 2f98c2032fd47ada3484bfc37d590992f286d3d4 (diff) |
Split battle/ into data/ and engine/ components
Diffstat (limited to 'text')
-rw-r--r-- | text/battle_tower.asm | 1 | ||||
-rw-r--r-- | text/types.asm | 149 |
2 files changed, 0 insertions, 150 deletions
diff --git a/text/battle_tower.asm b/text/battle_tower.asm index 8ddd69b09..53af5a9e6 100644 --- a/text/battle_tower.asm +++ b/text/battle_tower.asm @@ -1,4 +1,3 @@ - BattleTowerText_0x1ec000: ; 0x1ec000 text "Hello, glad to" line "meet you!" diff --git a/text/types.asm b/text/types.asm deleted file mode 100644 index adc1b17ef..000000000 --- a/text/types.asm +++ /dev/null @@ -1,149 +0,0 @@ -PrintMonTypes: ; 5090d -; Print one or both types of [CurSpecies] -; on the stats screen at hl. - - push hl - call GetBaseData - pop hl - - push hl - ld a, [BaseType1] - call .Print - - ; Single-typed monsters really - ; have two of the same type. - ld a, [BaseType1] - ld b, a - ld a, [BaseType2] - cp b - pop hl - jr z, .hide_type_2 - - ld bc, SCREEN_WIDTH - add hl, bc - -.Print: - ld b, a - jr PrintType - -.hide_type_2 - ; Erase any type name that was here before. - ; Seems to be pointless in localized versions. - ld a, " " - ld bc, SCREEN_WIDTH - 3 - add hl, bc - ld [hl], a - inc bc - add hl, bc - ld bc, 5 - jp ByteFill -; 5093a - - -PrintMoveType: ; 5093a -; Print the type of move b at hl. - - push hl - ld a, b - dec a - ld bc, MOVE_LENGTH - ld hl, Moves - call AddNTimes - ld de, StringBuffer1 - ld a, BANK(Moves) - call FarCopyBytes - ld a, [StringBuffer1 + MOVE_TYPE] - pop hl - - ld b, a - - -PrintType: ; 50953 -; Print type b at hl. - - ld a, b - - push hl - add a - ld hl, TypeNames - ld e, a - ld d, 0 - add hl, de - ld a, [hli] - ld e, a - ld d, [hl] - pop hl - - jp PlaceString -; 50964 - - -GetTypeName: ; 50964 -; Copy the name of type [wd265] to StringBuffer1. - - ld a, [wd265] - ld hl, TypeNames - ld e, a - ld d, 0 - add hl, de - add hl, de - ld a, [hli] - ld h, [hl] - ld l, a - ld de, StringBuffer1 - ld bc, 13 - jp CopyBytes -; 5097b - - -TypeNames: ; 5097b - dw Normal - dw Fighting - dw Flying - dw Poison - dw Ground - dw Rock - dw Bird - dw Bug - dw Ghost - dw Steel - dw Normal - dw Normal - dw Normal - dw Normal - dw Normal - dw Normal - dw Normal - dw Normal - dw Normal - dw CurseType - dw Fire - dw Water - dw Grass - dw Electric - dw Psychic - dw Ice - dw Dragon - dw Dark - -Normal: db "NORMAL@" -Fighting: db "FIGHTING@" -Flying: db "FLYING@" -Poison: db "POISON@" -CurseType: db "???@" -Fire: db "FIRE@" -Water: db "WATER@" -Grass: db "GRASS@" -Electric: db "ELECTRIC@" -Psychic: db "PSYCHIC@" -Ice: db "ICE@" -Ground: db "GROUND@" -Rock: db "ROCK@" -Bird: db "BIRD@" -Bug: db "BUG@" -Ghost: db "GHOST@" -Steel: db "STEEL@" -Dragon: db "DRAGON@" -Dark: db "DARK@" - -; 50a28 |