mirror of
https://github.com/pret/poketcg2.git
synced 2026-03-21 17:45:06 -05:00
Merge pull request #59 from earthoul/scenario-debug
Scenario debug menu
This commit is contained in:
commit
171981661c
|
|
@ -41,6 +41,20 @@
|
|||
const DEBUGMENU_DUEL ; 5
|
||||
const DEBUGMENU_SLOT ; 6
|
||||
|
||||
; scenario debug menu options
|
||||
const_def
|
||||
const SCENARIODEBUGMENU_MODIFY_EVENTS ; 0
|
||||
const SCENARIODEBUGMENU_MODIFY_FLAGS ; 1
|
||||
const SCENARIODEBUGMENU_MODIFY_COUNTERS ; 2
|
||||
const SCENARIODEBUGMENU_MODIFY_CARD_COUNT ; 3
|
||||
const SCENARIODEBUGMENU_MODIFY_EXIT ; 4
|
||||
DEF NUM_SCENARIODEBUGMENU_ITEMS EQU const_value
|
||||
const SCENARIODEBUGMENU_VALUE_SELECTOR ; 5
|
||||
const SCENARIODEBUGMENU_VALUE_SELECTOR_COUNTER ; 6
|
||||
const SCENARIODEBUGMENU_VALUE_SELECTOR_CARD_COUNT ; 7
|
||||
|
||||
DEF NUM_DEBUGEVENTMENU_ITEMS EQU 11
|
||||
|
||||
; pause menu options
|
||||
const_def
|
||||
const PAUSEMENU_STATUS ; 0
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@
|
|||
const VAR_NPC_DECK_ID ; $3c
|
||||
const VAR_DUEL_START_THEME ; $3d
|
||||
const VAR_3E ; $3e
|
||||
DEF NUM_EVENT_VARS EQU const_value
|
||||
|
||||
; VAR_ISHIHARA_STATE values
|
||||
const_def 1
|
||||
|
|
|
|||
|
|
@ -285,9 +285,21 @@ MusicFadeOut:
|
|||
or a
|
||||
jr nz, .loop
|
||||
ret
|
||||
; 0x4498c
|
||||
|
||||
SECTION "Bank 11@499e", ROMX[$499e], BANK[$11]
|
||||
; a = frames for audio volume decrement
|
||||
SteppedMusicFadeOut:
|
||||
ld c, a
|
||||
ld b, a
|
||||
ld a, AUDVOL_FULL_VOLUME
|
||||
.loop_wait
|
||||
call DoFrame
|
||||
dec c
|
||||
jr nz, .loop_wait
|
||||
call SetVolume
|
||||
dec a
|
||||
ret z
|
||||
ld c, b
|
||||
jr .loop_wait
|
||||
|
||||
WaitForSFXToFinish::
|
||||
.loop_wait
|
||||
|
|
@ -296,9 +308,8 @@ WaitForSFXToFinish::
|
|||
or a
|
||||
jr nz, .loop_wait
|
||||
ret
|
||||
; 0x449a8
|
||||
|
||||
SECTION "Bank 11@5301", ROMX[$5301], BANK[$11]
|
||||
INCLUDE "engine/debug_scenario.asm"
|
||||
|
||||
; a = TCG_ISLAND or GR_ISLAND
|
||||
; set three opponents for the cup
|
||||
|
|
|
|||
1145
src/engine/debug_scenario.asm
Normal file
1145
src/engine/debug_scenario.asm
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -3142,7 +3142,7 @@ DebugModifyCountersNumberLabelText:
|
|||
textfw "カウンタ Nоˍ"
|
||||
done
|
||||
|
||||
DebugModifyCountersValuesText:
|
||||
DebugBlankValueSelectorText:
|
||||
textfw " "
|
||||
done
|
||||
|
||||
|
|
@ -3154,6 +3154,7 @@ DebugModifyCardCountCardNameText:
|
|||
textfw "【<RAMTEXT>】"
|
||||
done
|
||||
|
||||
; file (collection), deck, total
|
||||
DebugModifyCardCountValuesText:
|
||||
textfw "F D T"
|
||||
done
|
||||
|
|
|
|||
|
|
@ -2068,7 +2068,7 @@ TextOffsets::
|
|||
textpointer DebugModifyFlagsOnText ; 0x0808
|
||||
textpointer DebugModifyFlagsOffText ; 0x0809
|
||||
textpointer DebugModifyCountersNumberLabelText ; 0x080a
|
||||
textpointer DebugModifyCountersValuesText ; 0x080b
|
||||
textpointer DebugBlankValueSelectorText ; 0x080b
|
||||
textpointer DebugModifyCardCountNumberLabelText ; 0x080c
|
||||
textpointer DebugModifyCardCountCardNameText ; 0x080d
|
||||
textpointer DebugModifyCardCountValuesText ; 0x080e
|
||||
|
|
|
|||
18
src/wram.asm
18
src/wram.asm
|
|
@ -2656,7 +2656,23 @@ wMusicFadeOutVolume:: ; d677
|
|||
wd678:: ; d678
|
||||
ds $1
|
||||
|
||||
ds $7
|
||||
wScenarioDebugMenuCursorPosition:: ; d679
|
||||
ds $1
|
||||
|
||||
wScenarioDebugMenu_d67a:: ; d67a
|
||||
ds $1
|
||||
|
||||
wScenarioDebugMenuCurEventFlagItem:: ; d67b
|
||||
ds $1
|
||||
|
||||
wScenarioDebugMenuCurEventVarItem:: ; d67c
|
||||
ds $1
|
||||
|
||||
wScenarioDebugMenuCurEventItem:: ; d67d
|
||||
ds $1
|
||||
|
||||
wScenarioDebugMenuCurCardItem:: ; d67e
|
||||
ds $2
|
||||
|
||||
wd680:: ; d680
|
||||
ds $1
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user