summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-09-16 13:44:58 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2018-09-16 13:44:58 -0400
commitf329b317299300e3b231979f695d8d6c72642901 (patch)
tree08385fbe109afa5d0a709e7f7149caddc4378659
parentfd5283cd968caecbf8ed7064e8f47d3aa52c7b8a (diff)
wDebugFlags
-rw-r--r--Allow-tiles-to-have-different-attributes-in-different-blocks-(including-X-and-Y-flip).md14
-rw-r--r--Print-text-when-you-lose-a-trainer-battle.md4
2 files changed, 10 insertions, 8 deletions
diff --git a/Allow-tiles-to-have-different-attributes-in-different-blocks-(including-X-and-Y-flip).md b/Allow-tiles-to-have-different-attributes-in-different-blocks-(including-X-and-Y-flip).md
index 8e7044b..2e961ed 100644
--- a/Allow-tiles-to-have-different-attributes-in-different-blocks-(including-X-and-Y-flip).md
+++ b/Allow-tiles-to-have-different-attributes-in-different-blocks-(including-X-and-Y-flip).md
@@ -1001,9 +1001,11 @@ Edit [home/text.asm](../blob/master/home/text.asm):
Finally, edit [home.asm](../blob/master/home.asm):
```diff
--Unreferenced_Function2ebb::
-- ld a, [wMonStatusFlags]
-- bit 1, a
+-Unreferenced_CheckBPressedDebug::
+-; Used in debug ROMs to walk through walls and avoid encounters.
+-
+- ld a, [wDebugFlags]
+- bit DEBUG_FIELD_F, a
- ret z
-
- ldh a, [hJoyDown]
@@ -1019,10 +1021,10 @@ Finally, edit [home.asm](../blob/master/home.asm):
dec a
ret
--Unreferenced_Function2ecb::
+-Unreferenced_CheckFieldDebug::
- push hl
-- ld hl, wMonStatusFlags
-- bit 1, [hl]
+- ld hl, wDebugFlags
+- bit DEBUG_FIELD_F, [hl]
- pop hl
- ret
```
diff --git a/Print-text-when-you-lose-a-trainer-battle.md b/Print-text-when-you-lose-a-trainer-battle.md
index c88b03c..26a20fc 100644
--- a/Print-text-when-you-lose-a-trainer-battle.md
+++ b/Print-text-when-you-lose-a-trainer-battle.md
@@ -53,8 +53,8 @@ Anyway, it's quite simple to enable this feature. Edit [engine/battle/core.asm](
ld c, 40
call DelayFrames
- ld a, [wMonStatusFlags]
- bit 0, a
+ ld a, [wDebugFlags]
+ bit DEBUG_BATTLE_F, a
jr nz, .skip_win_loss_text
call PrintWinLossText
.skip_win_loss_text