added temporary boots modifier

This commit is contained in:
Karkat
2018-05-26 14:51:06 -04:00
parent 90e4d40774
commit eb31b0e5e2
4 changed files with 25 additions and 1 deletions

15
boots.asm Normal file
View File

@@ -0,0 +1,15 @@
;================================================================================
; Boots State Modifier
;--------------------------------------------------------------------------------
!BOOTS_MODIFIER = "$7F50CE"
ModifyBoots:
PHA
LDA !BOOTS_MODIFIER : CMP.b #$01 : BNE +
PLA : AND $7EF379 : ORA.b #$04 : RTL ; yes boots
+ : CMP #$02 : BNE +
PLA : AND $7EF379 : AND.b #$FB : RTL ; no boots
+
PLA
AND $7EF379 ; regular boots
RTL
;--------------------------------------------------------------------------------