diff options
-rw-r--r-- | Automatic-battle-weather-on-certain-maps.md | 15 |
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" ``` |