summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Automatic-battle-weather-on-certain-maps.md15
1 files changed, 5 insertions, 10 deletions
diff --git a/Automatic-battle-weather-on-certain-maps.md b/Automatic-battle-weather-on-certain-maps.md
index 378a3b9..451a0f2 100644
--- a/Automatic-battle-weather-on-certain-maps.md
+++ b/Automatic-battle-weather-on-certain-maps.md
@@ -110,19 +110,14 @@ Edit [engine/battle/core.asm](../blob/master/engine/battle/core.asm):
+ and a
+ ret z ; end
+ cp b
-+ jr nz, .wrong_group
-+ ld a, [hli] ; map
++ ld a, [hli] ; map, ignored if taking jump
++ jr nz, .wrong ; the jump after `.wrong` will be taken as well
+ cp c
-+ jr nz, .wrong_map
-+ ld a, [hl] ; weather
++.wrong
++ ld a, [hli] ; weather, ignored if taking jump
++ jr nz, .loop
+ ret
+
-+.wrong_group:
-+ inc hl ; skip map
-+.wrong_map
-+ inc hl ; skip weather
-+ jr .loop
-+
+INCLUDE "data/battle/automatic_weather.asm"
```