;pass on a defined # of coins
;by smkdan
;act like tile 25

!Dest = $00C0
!Water = !False
!Secondary = !False;Can be set to !False or !True
!True = 1
!False = 0

db $42
JMP Code : JMP Code : JMP Code : JMP Return : JMP Return : JMP Return : JMP Return : JMP Code : JMP Code : JMP Code

Code:
Check:

	LDA #$05
	STA $7F9A82
	LDA #$2A
	STA $1DFC

	LDA #$05
	STA $71
	STZ $89
	STZ $88

Return:
	RTL