First pass-through adding labels

Added items, equipment, and tracking/indicators
Added playername changes
Removed some defines
This commit is contained in:
cassidy
2021-12-01 23:06:28 -05:00
parent fcd9b949e8
commit 14b899d47a
48 changed files with 454 additions and 486 deletions

View File

@@ -1,43 +1,37 @@
;================================================================================
; Capacity Logic
;================================================================================
!BOMB_UPGRADES = "$7EF370"
!BOMB_CURRENT = "$7EF343"
;--------------------------------------------------------------------------------
IncrementBombs:
LDA !BOMB_UPGRADES ; get bomb upgrades
LDA BombCapacityUpgrades ; get bomb upgrades
!ADD.l StartingMaxBombs : BEQ + ; Skip if we can't have bombs
DEC
CMP !BOMB_CURRENT
CMP BombsEquipment
!BLT +
LDA !BOMB_CURRENT
LDA BombsEquipment
CMP.b #99 : !BGE +
INC : STA !BOMB_CURRENT
INC : STA BombsEquipment
+
RTL
;--------------------------------------------------------------------------------
!ARROW_UPGRADES = "$7EF371"
!ARROW_CURRENT = "$7EF377"
;--------------------------------------------------------------------------------
IncrementArrows:
LDA !ARROW_UPGRADES ; get arrow upgrades
LDA ArrowCapacityUpgrades ; get arrow upgrades
!ADD.l StartingMaxArrows : DEC
CMP !ARROW_CURRENT
CMP CurrentArrows
!BLT +
LDA !ARROW_CURRENT
LDA CurrentArrows
CMP.b #99 : !BGE +
INC : STA !ARROW_CURRENT
INC : STA CurrentArrows
+
RTL
;--------------------------------------------------------------------------------
CompareBombsToMax:
LDA !BOMB_UPGRADES ; get bomb upgrades
LDA BombCapacityUpgrades ; get bomb upgrades
!ADD.l StartingMaxBombs
CMP !BOMB_CURRENT
CMP BombsEquipment
RTL
;--------------------------------------------------------------------------------
;--------------------------------------------------------------------------------