ref: 60b09f291d22f72838e29c91cd62ff0d041e2332
parent: 03cb8c53f1507091f09a17235416904d5ed29a49
parent: 15648960606da9b1e64c2171c5398d6a5f734b4f
author: Rangi <[email protected]>
date: Sun Sep 16 09:42:17 EDT 2018
Merge branch 'master' of https://github.com/pret/pokecrystal
--- a/constants/wram_constants.asm
+++ b/constants/wram_constants.asm
@@ -1,6 +1,11 @@
; wInputType:: ; c2c7
AUTO_INPUT EQU $ff
+; wDebugFlags:: ; c2cc
+ const_def
+ const DEBUG_BATTLE_F
+ const DEBUG_FIELD_F
+
; wCurDexMode:: ; c7d4
const_def
const DEXMODE_NEW
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -2371,8 +2371,8 @@
jr nz, .skip_heal
predef HealParty
.skip_heal
- ld a, [wMonStatusFlags]
- bit 0, a
+ ld a, [wDebugFlags]
+ bit DEBUG_BATTLE_F, a
jr nz, .skip_win_loss_text
call PrintWinLossText
@@ -2921,8 +2921,8 @@
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
--- a/engine/menus/intro_menu.asm
+++ b/engine/menus/intro_menu.asm
@@ -60,7 +60,7 @@
NewGame:
xor a
- ld [wMonStatusFlags], a
+ ld [wDebugFlags], a
call ResetWRAM
call NewGame_ClearTileMapEtc
call AreYouABoyOrAreYouAGirl
--- a/engine/pokemon/move_mon.asm
+++ b/engine/pokemon/move_mon.asm
@@ -1194,8 +1194,8 @@
ld hl, wPartyMon1Happiness
ld bc, PARTYMON_STRUCT_LENGTH
call AddNTimes
- ld a, [wMonStatusFlags]
- bit 1, a
+ ld a, [wDebugFlags]
+ bit DEBUG_FIELD_F, a
ld a, 1
jr nz, .got_init_happiness
ld a, [wBaseEggSteps]
--- a/engine/tilesets/tileset_palettes.asm
+++ b/engine/tilesets/tileset_palettes.asm
@@ -123,12 +123,12 @@
call FarCopyWRAM
ld a, BANK(wBGPals1)
ld de, wBGPals1 palette PAL_BG_WATER
- ld hl, MansionPalette1 + 6 palettes
+ ld hl, MansionPalette1 palette 6
ld bc, 1 palettes
call FarCopyWRAM
ld a, BANK(wBGPals1)
ld de, wBGPals1 palette PAL_BG_ROOF
- ld hl, MansionPalette1 + 8 palettes
+ ld hl, MansionPalette1 palette 8
ld bc, 1 palettes
call FarCopyWRAM
ret
--- a/home.asm
+++ b/home.asm
@@ -56,9 +56,11 @@
INCLUDE "home/window.asm"
INCLUDE "home/flag.asm"
-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]
@@ -74,10 +76,10 @@
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
--- a/wram.asm
+++ b/wram.asm
@@ -141,7 +141,7 @@
wAutoInputBank:: db ; c2ca
wAutoInputLength:: db ; c2cb
-wMonStatusFlags:: db
+wDebugFlags:: db
wGameLogicPaused:: db ; c2cd
wSpriteUpdatesEnabled:: db