Allow early detonation of bombs and add build flag to remove static RNG

This commit is contained in:
2021-10-12 20:24:56 -07:00
parent 825d4a1ead
commit aeec3fe6c6
4 changed files with 34 additions and 7 deletions

View File

@@ -301,3 +301,22 @@ StoreSwordDamage:
LDA #$05
RTL
;--------------------------------------------------------------------------------
CheckDetonateBomb:
LDA.l SpecialWeapons : CMP.b #$01 : BNE .not_bomb_mode
.detonate_bombs
LDX.b #09
.check_ancilla
LDA.w $0C4A, X
CMP.b #$07
BNE .next_ancilla
LDA.b #03
STA.w $039F, X
.next_ancilla
DEX
BPL .check_ancilla
.not_bomb_mode
; what we wrote over
LDA.b #$80
TSB.b $3A
RTL
;--------------------------------------------------------------------------------