summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
Diffstat (limited to 'main.asm')
-rwxr-xr-xmain.asm12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.asm b/main.asm
index d7ffe829..f82c3b9d 100755
--- a/main.asm
+++ b/main.asm
@@ -928,7 +928,7 @@ WarpFound2: ; 073c (0:073c)
ld [$d73b],a ; save ID of used warp
ld a,[W_CURMAP]
ld [$d73c],a
- call CheckIfInOutsideMap ; check if the tileset number is 0 or the map is Route 12
+ call CheckIfInOutsideMap
jr nz,.indoorMaps
; this is for handling "outside" maps that can't have the 0xFF destination map
ld a,[W_CURMAP]
@@ -1144,13 +1144,12 @@ PlayMapChangeSound: ; 08c9 (0:08c9)
ret nz
jp GBFadeIn1
-; function to set the Z flag if the tileset number is 0 or the map is Route 12
-; strangely, Route 12 has tileset 0, so the check is redundant
CheckIfInOutsideMap: ; 08e1 (0:08e1)
+; If the player is in an outside map (a town or route), set the z flag
ld a,[W_CURMAPTILESET]
- and a
+ and a ; most towns/routes have tileset 0
ret z
- cp a,ROUTE_12
+ cp a,$17 ; Route 23 / Indigo Plateau
ret
; this function is an extra check that sometimes has to pass in order to warp, beyond just standing on a warp
@@ -54982,7 +54981,7 @@ ReadMove: ; 39884 (e:5884)
pop hl
ret
-; move choice modifiaction methods that are applied for each trainer class
+; move choice modification methods that are applied for each trainer class
; 0 is sentinel value
TrainerClassMoveChoiceModifications: ; 3989b (e:589b)
db 0 ; YOUNGSTER
@@ -55034,6 +55033,7 @@ db 1,0 ; AGATHA
db 1,3,0 ; LANCE
; trainer pic pointers and base money.
+; money received after battle = base money × level of highest-level enemy mon
dw YoungsterPic
db 0,$15,0