Remove Mobile, Battle Tower, Mystery Gift, and Odd Egg (#1)

This commit is contained in:
xCrystal
2023-07-24 21:13:11 +02:00
parent 74b8214272
commit fc7f2d4e0e
201 changed files with 101 additions and 73760 deletions

View File

@@ -176,25 +176,10 @@ FarCopyRadioText::
ld [MBC3RomBank], a
ret
MobileTextBorder::
; For mobile link battles only.
ld a, [wLinkMode]
cp LINK_MOBILE
ret c
; Draw a cell phone icon at the
; top right corner of the border.
hlcoord 19, 12
ld [hl], $5e ; top
hlcoord 19, 13
ld [hl], $5f ; bottom
ret
BattleTextbox::
; Open a textbox and print text at hl.
push hl
call SpeechTextbox
call MobileTextBorder
call UpdateSprites
call ApplyTilemap
pop hl

View File

@@ -202,16 +202,6 @@ Request2bpp::
ld a, TILES_PER_CYCLE
ldh [hTilesPerCycle], a
ld a, [wLinkMode]
cp LINK_MOBILE
jr nz, .NotMobile
ldh a, [hMobile]
and a
jr nz, .NotMobile
ld a, MOBILE_TILES_PER_CYCLE
ldh [hTilesPerCycle], a
.NotMobile:
ld a, e
ld [wRequested2bppSource], a
ld a, d
@@ -276,16 +266,6 @@ Request1bpp::
ld a, TILES_PER_CYCLE
ldh [hTilesPerCycle], a
ld a, [wLinkMode]
cp LINK_MOBILE
jr nz, .NotMobile
ldh a, [hMobile]
and a
jr nz, .NotMobile
ld a, MOBILE_TILES_PER_CYCLE
ldh [hTilesPerCycle], a
.NotMobile:
ld a, e
ld [wRequested1bppSource], a
ld a, d

View File

@@ -47,7 +47,7 @@ SECTION "lcd", ROM0[$0048]
jp LCD
SECTION "timer", ROM0[$0050]
jp MobileTimer
jp Timer
SECTION "serial", ROM0[$0058]
jp Serial

View File

@@ -2205,7 +2205,6 @@ GetMapMusic::
jr z, .mahoganymart
bit RADIO_TOWER_MUSIC_F, c
jr nz, .radiotower
farcall Function8b342
ld e, c
ld d, 0
.done

View File

@@ -841,10 +841,3 @@ InterpretBattleMenu::
farcall _InterpretBattleMenu
ld a, [wMenuCursorPosition]
ret
InterpretMobileMenu:: ; unreferenced
ldh a, [hROMBank]
ld [wMenuData_2DMenuItemStringsBank], a
farcall _InterpretMobileMenu
ld a, [wMenuCursorPosition]
ret

View File

@@ -102,10 +102,6 @@ PrintNum::
homecall _PrintNum
ret
MobilePrintNum::
homecall _MobilePrintNum
ret
FarPrintText::
ldh [hTempBank], a
ldh a, [hROMBank]

View File

@@ -6,10 +6,6 @@ Serial::
push de
push hl
ldh a, [hMobileReceive]
and a
jr nz, .mobile
ld a, [wPrinterConnectionOpen]
bit 0, a
jr nz, .printer
@@ -34,10 +30,6 @@ Serial::
ldh [rSC], a
jr .player2
.mobile
call MobileReceive
jr .end
.printer
call PrinterReceive
jr .end

View File

@@ -206,7 +206,6 @@ MACRO dict
endc
ENDM
dict "<MOBILE>", MobileScriptChar
dict "<LINE>", LineChar
dict "<NEXT>", NextLineChar
dict "<CR>", CarriageReturnChar
@@ -289,12 +288,6 @@ ENDM
call PrintLetterDelay
jp NextChar
MobileScriptChar::
ld c, l
ld b, h
farcall RunMobileScript
jp PlaceNextChar
MACRO print_name
push de
ld de, \1

View File

@@ -1,14 +1,6 @@
; Functions relating to the timer interrupt and the real-time-clock.
Timer:: ; unreferenced
push af
ldh a, [hMobile]
and a
jr z, .not_mobile
call MobileTimer
.not_mobile
pop af
Timer::
reti
LatchClock::