Show items in dark rooms, written by Zarby89 and kan.

This commit is contained in:
Thomas Prescott
2020-06-04 20:23:18 -05:00
parent a3a35ad4ba
commit 616748b831
3 changed files with 28 additions and 2 deletions

25
darkroomitems.asm Normal file
View File

@@ -0,0 +1,25 @@
CheckReceivedItemPropertiesBeforeLoad:
LDA $7EC005 : BNE .lightOff
LDA.l AddReceivedItemExpanded_properties, X ;Restore Rando Code
RTL
.lightOff
PHX : PHY : PHB
LDA.l AddReceivedItemExpanded_properties, X ; get palette
REP #$30
AND #$0007 ; mask out palette
ASL #5 ; multiply by 32
ADC #$C610 ; offset to latter half
TAX ; give to destination
LDY #$C610 ; target palette SP0 colors 8-F
LDA #$000F ; 16 bytes
MVN $7E, $7E ; move palette
SEP #$30
PLB : PLY : PLX
INC $15
LDA #$00
RTL