summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2020-05-28 11:33:43 -0400
committerRangi <35663410+Rangi42@users.noreply.github.com>2020-05-28 11:33:43 -0400
commit94d18de93b94905a411775e4d00854e98fdfcdc5 (patch)
treeb6c4c93d781194252b0802aceec3cf6f4ea9d4c6
parentdf7ad42acbb75eddee66ad2926635f4d586d6b5b (diff)
Revert 476451188504b2e1ab4be7e92c3ce11af8b09602...df7ad42acbb75eddee66ad2926635f4d586d6b5b on Automatic battle weather on certain maps
-rw-r--r--Automatic-battle-weather-on-certain-maps.md15
1 files changed, 10 insertions, 5 deletions
diff --git a/Automatic-battle-weather-on-certain-maps.md b/Automatic-battle-weather-on-certain-maps.md
index 451a0f2..378a3b9 100644
--- a/Automatic-battle-weather-on-certain-maps.md
+++ b/Automatic-battle-weather-on-certain-maps.md
@@ -110,14 +110,19 @@ Edit [engine/battle/core.asm](../blob/master/engine/battle/core.asm):
+ and a
+ ret z ; end
+ cp b
-+ ld a, [hli] ; map, ignored if taking jump
-+ jr nz, .wrong ; the jump after `.wrong` will be taken as well
++ jr nz, .wrong_group
++ ld a, [hli] ; map
+ cp c
-+.wrong
-+ ld a, [hli] ; weather, ignored if taking jump
-+ jr nz, .loop
++ jr nz, .wrong_map
++ ld a, [hl] ; weather
+ ret
+
++.wrong_group:
++ inc hl ; skip map
++.wrong_map
++ inc hl ; skip weather
++ jr .loop
++
+INCLUDE "data/battle/automatic_weather.asm"
```