Now possible to start with 0 bomb capacity
This commit is contained in:
@@ -6,7 +6,8 @@
|
|||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
IncrementBombs:
|
IncrementBombs:
|
||||||
LDA !BOMB_UPGRADES ; get bomb upgrades
|
LDA !BOMB_UPGRADES ; get bomb upgrades
|
||||||
!ADD.l StartingMaxBombs : DEC
|
!ADD.l StartingMaxBombs : BEQ + ; Skip if we can't have bombs
|
||||||
|
DEC
|
||||||
|
|
||||||
CMP !BOMB_CURRENT
|
CMP !BOMB_CURRENT
|
||||||
|
|
||||||
|
|||||||
@@ -738,6 +738,7 @@ RTS
|
|||||||
Link_ReceiveItem_HUDRefresh:
|
Link_ReceiveItem_HUDRefresh:
|
||||||
LDA $7EF343 : BNE + ; skip if we have bombs
|
LDA $7EF343 : BNE + ; skip if we have bombs
|
||||||
LDA $7EF375 : BEQ + ; skip if we are filling no bombs
|
LDA $7EF375 : BEQ + ; skip if we are filling no bombs
|
||||||
|
LDA $7EF370 : !ADD.l StartingMaxBombs : BEQ + ; skip if we can't have bombs
|
||||||
DEC : STA $7EF375 ; decrease bomb fill count
|
DEC : STA $7EF375 ; decrease bomb fill count
|
||||||
LDA.b #$01 : STA $7EF343 ; increase actual bomb count
|
LDA.b #$01 : STA $7EF343 ; increase actual bomb count
|
||||||
+
|
+
|
||||||
@@ -753,6 +754,7 @@ RTL
|
|||||||
HandleBombAbsorbtion:
|
HandleBombAbsorbtion:
|
||||||
STA $7EF375 ; thing we wrote over
|
STA $7EF375 ; thing we wrote over
|
||||||
LDA $0303 : BNE + ; skip if we already have some item selected
|
LDA $0303 : BNE + ; skip if we already have some item selected
|
||||||
|
LDA $7EF370 : !ADD.l StartingMaxBombs : BEQ + ; skip if we can't have bombs
|
||||||
LDA.b #$04 : STA $0202 ; set selected item to bombs
|
LDA.b #$04 : STA $0202 ; set selected item to bombs
|
||||||
LDA.b #$01 : STA $0303 ; set selected item to bombs
|
LDA.b #$01 : STA $0303 ; set selected item to bombs
|
||||||
JSL.l HUD_RebuildLong
|
JSL.l HUD_RebuildLong
|
||||||
|
|||||||
Reference in New Issue
Block a user