summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/engine/bank01.asm6
-rw-r--r--src/engine/home.asm12
2 files changed, 9 insertions, 9 deletions
diff --git a/src/engine/bank01.asm b/src/engine/bank01.asm
index d459c81..6f1fe91 100644
--- a/src/engine/bank01.asm
+++ b/src/engine/bank01.asm
@@ -1072,7 +1072,7 @@ DuelMenu_Attack: ; 46fc (1:46fc)
ld d, $00
ld hl, wDuelTempList
add hl, de
- ld d, [hl] ; card index within the deck (0 to 59)
+ ld d, [hl] ; card's deck index (0 to 59)
inc hl
ld e, [hl] ; attack index (0 or 1)
call CopyMoveDataAndDamage_FromDeckIndex
@@ -1288,7 +1288,7 @@ CheckIfEnoughEnergiesToMove: ; 488f (1:488f)
ld d, $0
ld hl, wDuelTempList
add hl, de
- ld d, [hl] ; card index within the deck (0 to 59)
+ ld d, [hl] ; card's deck index (0 to 59)
inc hl
ld e, [hl] ; attack index (0 or 1)
call _CheckIfEnoughEnergiesToMove
@@ -1299,7 +1299,7 @@ CheckIfEnoughEnergiesToMove: ; 488f (1:488f)
; check if a pokemon card has enough energy attached to it in order to use a move
; input:
-; d = card index within the deck (0 to 59)
+; d = deck index of card (0 to 59)
; e = attack index (0 or 1)
; wAttachedEnergies and wTotalAttachedEnergies
; returns: carry if not enough energy, nc if enough energy.
diff --git a/src/engine/home.asm b/src/engine/home.asm
index b9fe48f..3a03bd8 100644
--- a/src/engine/home.asm
+++ b/src/engine/home.asm
@@ -3017,7 +3017,7 @@ DrawCardFromDeck: ; 10cf (0:10cf)
; 0x10e8
; add a card to the top of the turn holder's deck
-; the card is identified by register a, which contains the card number within the deck (0-59)
+; the card is identified by register a, which contains the deck index (0-59) of the card
ReturnCardToDeck: ; 10e8 (0:10e8)
push hl
push af
@@ -3038,7 +3038,7 @@ ReturnCardToDeck: ; 10e8 (0:10e8)
; search a card in the turn holder's deck, extract it, and set its location to
; CARD_LOCATION_JUST_DRAWN. AddCardToHand is meant to be called next.
-; the card is identified by register a, which contains the card number within the deck (0-59)
+; the card is identified by register a, which contains the deck index (0-59) of the card
SearchCardInDeckAndAddToHand: ; 10fc (0:10fc)
push af
push hl
@@ -3075,7 +3075,7 @@ SearchCardInDeckAndAddToHand: ; 10fc (0:10fc)
; 0x1123
; adds a card to the turn holder's hand and increments the number of cards in the hand
-; the card is identified by register a, which contains the card number within the deck (0-59)
+; the card is identified by register a, which contains the deck index (0-59) of the card
AddCardToHand: ; 1123 (0:1123)
push af
push hl
@@ -3101,7 +3101,7 @@ AddCardToHand: ; 1123 (0:1123)
; 0x1139
; removes a card from the turn holder's hand and decrements the number of cards in the hand
-; the card is identified by register a, which contains the card number within the deck (0-59)
+; the card is identified by register a, which contains the deck index (0-59) of the card
RemoveCardFromHand: ; 1139 (0:1139)
push af
push hl
@@ -3140,7 +3140,7 @@ RemoveCardFromHand: ; 1139 (0:1139)
; 0x1160
; moves a card to the turn holder's discard pile, as long as it is in the hand
-; the card is identified by register a, which contains the card number within the deck (0-59)
+; the card is identified by register a, which contains the deck index (0-59) of the card
MoveHandCardToDiscardPile: ; 1160 (0:1160)
call GetTurnDuelistVariable
ld a, [hl]
@@ -3173,7 +3173,7 @@ PutCardInDiscardPile: ; 116a (0:116a)
; search a card in the turn holder's discard pile, extract it, and set its location to
; CARD_LOCATION_JUST_DRAWN. AddCardToHand is meant to be called next.
-; the card is identified by register a, which contains the card number within the deck (0-59)
+; the card is identified by register a, which contains the deck index (0-59) of the card
MoveDiscardPileCardToHand: ; 1182 (0:1182)
push hl
push de