event build, not for production

This commit is contained in:
Karkat
2018-04-06 16:01:28 -04:00
parent 07f34b08f9
commit 04b5b4d50d
4 changed files with 540 additions and 125 deletions

View File

@@ -229,10 +229,6 @@ incsrc itemtext.asm
incsrc externalhooks.asm incsrc externalhooks.asm
;================================================================================ ;================================================================================
org $AF8000
incsrc tournament.asm
warnpc $B00000
;================================================================================
org $119100 ; PC 0x89100 org $119100 ; PC 0x89100
incbin map_icons.gfx incbin map_icons.gfx
warnpc $119401 warnpc $119401
@@ -242,6 +238,11 @@ Static_RNG: ; each line below is 512 bytes of rng
incsrc staticrng.asm incsrc staticrng.asm
warnpc $AF8401 warnpc $AF8401
;================================================================================ ;================================================================================
org $AF8400
incsrc tournament.asm
incsrc eventdata.asm
warnpc $B08000
;================================================================================
;Bank Map ;Bank Map
;$20 Code Bank ;$20 Code Bank
;$21 Reserved (Frame Hook & Init) ;$21 Reserved (Frame Hook & Init)

File diff suppressed because one or more lines are too long

View File

@@ -136,28 +136,30 @@ endmacro
;carry set if caught ;carry set if caught
;incsrc eventdata.asm ;incsrc eventdata.asm
ProcessEventItems: ProcessEventItems:
STA $FFFFFF
LDA $00 : PHA LDA $00 : PHA
LDA $01 : PHA LDA $01 : PHA
LDA $02 : PHA LDA $02 : PHA
PHY : PHP PHY : PHP
PHB : LDA.b #$AF : PHA : PLB
LDA $02D8 LDA $02D8
CMP.b #$E0 : !BLT + : CMP.b #$E5 : !BGE + ; Free Item Block CMP.b #$E0 : BNE +
!SUB #$E0 REP #$30 ; set 16-bit accumulator & index registers
LDA $7EF450 : ASL : TAX
LDA.l EventDataOffsets, X : !ADD #EventDataTable : STA $00
;REP #$30 ; set 16-bit accumulator & index registers SEP #$20 ; set 8-bit accumulator
;AND.w #$00FF : ASL : TAX LDA.b #$AF : STA $02
;LDA.l EventDataOffsets, X : !ADD.w #EventDataTable : STA $00
;SEP #$20 ; set 8-bit accumulator JSL.l LoadDialogAddressIndirect
;PHK : PLA : STA $02 LDA $7EF450 : INC : STA $7EF450
;JSL.l LoadDialogAddressIndirect SEP #$10 ; set 8-bit index registers
LDX.b #$01 : BRA .done
;SEP #$10 ; set 8-bit index registers
;LDX.b #$01 : BRA .done
+ +
LDX.b #$00 LDX.b #$00
.done .done
PLB
PLP : PLY PLP : PLY
PLA : STA $02 PLA : STA $02
PLA : STA $01 PLA : STA $01
@@ -166,13 +168,13 @@ RTS
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
AddReceivedItemExpandedGetItem: AddReceivedItemExpandedGetItem:
PHX PHX
;JSR.w ProcessEventItems : CPX.b #$00 : BEQ ++ JSR.w ProcessEventItems : CPX.b #$00 : BEQ ++
; ;JSL.l Main_ShowTextMessage ;JSL.l Main_ShowTextMessage
; LDA !GOAL_COUNTER : INC : STA !GOAL_COUNTER LDA !GOAL_COUNTER : INC : STA !GOAL_COUNTER
; LDA.b #$01 : STA $7F50A0 LDA.b #$01 : STA $7F50A0
; BRL .done BRL .done
;++ ++
;STA $FFFFFF ;STA $FFFFFF
LDA $02D8 ; check inventory LDA $02D8 ; check inventory
JSL.l FreeDungeonItemNotice JSL.l FreeDungeonItemNotice

View File

@@ -109,7 +109,7 @@ db #$00 ; #$00 = Off (default) - #$01 = On
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
org $308032 ; PC 0x180032 org $308032 ; PC 0x180032
OpenMode: OpenMode:
db #$00 ; #$00 = Normal (default) - #$01 = Open db #$01 ; #$00 = Normal (default) - #$01 = Open
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
org $308033 ; PC 0x180033 org $308033 ; PC 0x180033
HeartBeep: HeartBeep: