summaryrefslogtreecommitdiff
path: root/src/engine/deck_ai/decks/invincible_ronald.asm
blob: c2285779fc337d56904184b90c40440ffd04d99c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
AIActionTable_InvincibleRonald: ; 153e8 (5:53e8)
	dw .do_turn ; unused
	dw .do_turn
	dw .start_duel
	dw .forced_switch
	dw .ko_switch
	dw .take_prize

.do_turn ; 153f4 (5:53f4)
	call AIMainTurnLogic
	ret

.start_duel ; 153f8 (5:53f8)
	call InitAIDuelVars
	call .store_list_pointers
	call SetUpBossStartingHandAndDeck
	call TrySetUpBossStartingPlayArea
	ret nc
	call AIPlayInitialBasicCards
	ret

.forced_switch ; 15409 (5:5409)
	call AIDecideBenchPokemonToSwitchTo
	ret

.ko_switch ; 1540d (5:540d)
	call AIDecideBenchPokemonToSwitchTo
	ret

.take_prize ; 15411 (5:5411)
	call AIPickPrizeCards
	ret

.list_arena ; 15415 (5:5415)
	db KANGASKHAN
	db MAGMAR2
	db CHANSEY
	db GEODUDE
	db SCYTHER
	db GRIMER
	db $00

.list_bench ; 1541c (5:541c)
	db GRIMER
	db SCYTHER
	db GEODUDE
	db CHANSEY
	db MAGMAR2
	db KANGASKHAN
	db $00

.list_retreat ; 15423 (5:5423)
	ai_retreat GRIMER, -1
	db $00

.list_energy ; 15426 (5:5426)
	ai_energy GRIMER,     1, -1
	ai_energy MUK,        3, -1
	ai_energy SCYTHER,    4, +1
	ai_energy MAGMAR2,    2, +0
	ai_energy GEODUDE,    2, +0
	ai_energy GRAVELER,   3, +0
	ai_energy CHANSEY,    4, +0
	ai_energy KANGASKHAN, 4, -1
	db $00

.list_prize ; 1543f (5:543f)
	db GAMBLER
	db $00

.store_list_pointers ; 15441 (5:5441)
	store_list_pointer wAICardListAvoidPrize, .list_prize
	store_list_pointer wAICardListArenaPriority, .list_arena
	store_list_pointer wAICardListBenchPriority, .list_bench
	store_list_pointer wAICardListPlayFromHandPriority, .list_bench
	; missing store_list_pointer wAICardListRetreatBonus, .list_retreat
	store_list_pointer wAICardListEnergyBonus, .list_energy
	ret
; 0x1546f