Disassemble Func_1743b

This commit is contained in:
ElectroDeoxys
2019-09-15 09:27:36 +01:00
parent aafcf7d44b
commit 5e9ea902ef
2 changed files with 44 additions and 2 deletions
+43 -2
View File
@@ -6444,8 +6444,49 @@ CheckIfNotABossDeckID: ; 17426 (5:7426)
ret
; 0x1743b
Func_1743b ; 1743b (5:743b)
INCROM $1743b, $17474
; probability to return carry:
; - 50% if deck AI is playing is on the list;
; - 25% for all other decks.
Func_1743b: ; 1743b (5:743b)
push hl
push de
call CheckIfNotABossDeckID
jr c, .check_deck
pop de
pop hl
ret
.check_deck
ld a, [wOpponentDeckID]
cp MUSCLES_FOR_BRAINS_DECK_ID
jr z, .carry_50_percent
cp BLISTERING_POKEMON_DECK_ID
jr z, .carry_50_percent
cp WATERFRONT_POKEMON_DECK_ID
jr z, .carry_50_percent
cp BOOM_BOOM_SELFDESTRUCT_DECK_ID
jr z, .carry_50_percent
cp KALEIDOSCOPE_DECK_ID
jr z, .carry_50_percent
cp RESHUFFLE_DECK_ID
jr z, .carry_50_percent
; carry 25 percent
ld a, 4
call Random
cp 1
pop de
pop hl
ret
.carry_50_percent
ld a, 4
call Random
cp 2
pop de
pop hl
ret
; 0x17474
; checks if any bench Pokémon has same ID
; as input, and sets carry if it has more than
+1
View File
@@ -98,6 +98,7 @@ Func_200e5: ; 200e5 (8:40e5)
and $08
jp z, .loop_hand
.asm_20186 ; 20186 (8:4186)
call CreateHandCardList
ld hl, wDuelTempList
ld de, wTempHandCardList