13
13
logger = logging .getLogger (__name__ )
14
14
15
15
16
+ @battle .utils .speedup_decorator
16
17
def ammes ():
17
18
battle_complete = 0
18
19
count_attacks = 0
@@ -36,6 +37,7 @@ def ammes():
36
37
logger .info ("Ammes battle complete" )
37
38
38
39
40
+ @battle .utils .speedup_decorator
39
41
def tanker ():
40
42
logger .info ("Fight start: Tanker" )
41
43
count_attacks = 0
@@ -63,6 +65,7 @@ def tanker():
63
65
xbox .tap_b ()
64
66
65
67
68
+ @battle .utils .speedup_decorator
66
69
def klikk ():
67
70
logger .info ("Fight start: Klikk" )
68
71
klikk_attacks = 0
@@ -125,6 +128,7 @@ def klikk():
125
128
memory .main .wait_frames (1 )
126
129
127
130
131
+ @battle .utils .speedup_decorator
128
132
def tros ():
129
133
logs .open_rng_track ()
130
134
logger .info ("Fight start: Tros" )
@@ -215,6 +219,7 @@ def tros():
215
219
memory .main .click_to_control ()
216
220
217
221
222
+ @battle .utils .speedup_decorator
218
223
def sin_fin ():
219
224
logger .info ("Fight start: Sin's Fin" )
220
225
screen .await_turn ()
@@ -266,6 +271,7 @@ def sin_fin():
266
271
xbox .click_to_battle ()
267
272
268
273
274
+ @battle .utils .speedup_decorator
269
275
def echuilles ():
270
276
logger .info ("Fight start: Sinspawn Echuilles" )
271
277
screen .await_turn ()
@@ -316,6 +322,7 @@ def echuilles():
316
322
logs .write_rng_track (memory .main .rng_10_array (array_len = 1 ))
317
323
318
324
325
+ @battle .utils .speedup_decorator
319
326
def geneaux ():
320
327
logger .info ("Fight start: Sinspawn Geneaux" )
321
328
xbox .click_to_battle ()
@@ -347,6 +354,7 @@ def geneaux():
347
354
memory .main .click_to_control ()
348
355
349
356
357
+ @battle .utils .speedup_decorator
350
358
def oblitzerator (early_haste ):
351
359
logger .info ("Fight start: Oblitzerator" )
352
360
xbox .click_to_battle ()
@@ -393,6 +401,7 @@ def oblitzerator(early_haste):
393
401
# logs.write_stats(memory.s32(memory.rng02()))
394
402
395
403
404
+ @battle .utils .speedup_decorator
396
405
def chocobo_eater ():
397
406
logger .info ("Fight start: Chocobo Eater" )
398
407
rng44Last = memory .main .rng_from_index (44 )
@@ -493,6 +502,7 @@ def chocobo_eater():
493
502
logger .info ("Chocobo Eater battle complete." )
494
503
495
504
505
+ @battle .utils .speedup_decorator
496
506
def gui ():
497
507
logger .info ("Fight start: Sinspawn Gui" )
498
508
xbox .click_to_battle ()
@@ -661,6 +671,7 @@ def gui():
661
671
xbox .tap_b ()
662
672
663
673
674
+ @battle .utils .speedup_decorator
664
675
def extractor ():
665
676
logger .info ("Fight start: Extractor" )
666
677
FFXC .set_neutral ()
@@ -719,6 +730,7 @@ def extractor():
719
730
720
731
721
732
# Process written by CrimsonInferno
733
+ @battle .utils .speedup_decorator
722
734
def spherimorph ():
723
735
logger .info ("Fight start: Spherimorph" )
724
736
xbox .click_to_battle ()
@@ -861,6 +873,7 @@ def spherimorph():
861
873
xbox .skip_dialog (5 )
862
874
863
875
876
+ @battle .utils .speedup_decorator
864
877
def crawler ():
865
878
logger .info ("Starting battle with Crawler" )
866
879
xbox .click_to_battle ()
@@ -924,6 +937,7 @@ def crawler():
924
937
memory .main .click_to_control ()
925
938
926
939
940
+ @battle .utils .speedup_decorator
927
941
def wendigo ():
928
942
logger .info ("Starting battle with Wendigo" )
929
943
@@ -1118,6 +1132,7 @@ def wendigo():
1118
1132
1119
1133
1120
1134
# Process written by CrimsonInferno
1135
+ @battle .utils .speedup_decorator
1121
1136
def evrae ():
1122
1137
logger .info ("Starting battle: Evrae" )
1123
1138
tidus_prep = 0
@@ -1270,6 +1285,7 @@ def evrae():
1270
1285
xbox .skip_scene_spec ()
1271
1286
1272
1287
1288
+ @battle .utils .speedup_decorator
1273
1289
def isaaru ():
1274
1290
xbox .click_to_battle ()
1275
1291
if memory .main .get_encounter_id () < 258 :
@@ -1292,6 +1308,7 @@ def isaaru():
1292
1308
FFXC .set_value ("btn_b" , 0 )
1293
1309
1294
1310
1311
+ @battle .utils .speedup_decorator
1295
1312
def evrae_altana ():
1296
1313
xbox .click_to_battle ()
1297
1314
if memory .main .get_encounter_id () != 266 :
@@ -1320,6 +1337,7 @@ def evrae_altana():
1320
1337
memory .main .click_to_control ()
1321
1338
1322
1339
1340
+ @battle .utils .speedup_decorator
1323
1341
def seymour_natus ():
1324
1342
aeon_summoned = False
1325
1343
while not memory .main .user_control ():
@@ -1396,6 +1414,7 @@ def seymour_natus():
1396
1414
return 0
1397
1415
1398
1416
1417
+ @battle .utils .speedup_decorator
1399
1418
def biran_yenke ():
1400
1419
logger .info ("Starting battle with Biran & Yenke" )
1401
1420
xbox .click_to_battle ()
@@ -1437,6 +1456,7 @@ def biran_yenke():
1437
1456
game_vars .end_game_version_set (end_game_version )
1438
1457
1439
1458
1459
+ @battle .utils .speedup_decorator
1440
1460
def seymour_flux ():
1441
1461
stage = 1
1442
1462
logger .info ("Start: Seymour Flux battle" )
@@ -1524,6 +1544,7 @@ def s_keeper_bahamut_crit() -> int:
1524
1544
return bahamut_crit
1525
1545
1526
1546
1547
+ @battle .utils .speedup_decorator
1527
1548
def s_keeper ():
1528
1549
xbox .click_to_battle ()
1529
1550
logger .info ("Start of Sanctuary Keeper fight" )
@@ -1570,6 +1591,7 @@ def s_keeper():
1570
1591
memory .main .click_to_control ()
1571
1592
1572
1593
1594
+ @battle .utils .speedup_decorator
1573
1595
def omnis ():
1574
1596
logger .info ("Fight start: Seymour Omnis" )
1575
1597
xbox .click_to_battle ()
@@ -1615,6 +1637,7 @@ def omnis():
1615
1637
memory .main .click_to_control ()
1616
1638
1617
1639
1640
+ @battle .utils .speedup_decorator
1618
1641
def bfa ():
1619
1642
if memory .main .get_gil_value () < 150000 :
1620
1643
swag_mode = True
@@ -1689,6 +1712,7 @@ def bfa():
1689
1712
xbox .tap_b ()
1690
1713
1691
1714
1715
+ @battle .utils .speedup_decorator
1692
1716
def yu_yevon ():
1693
1717
logger .info ("Ready for Yu Yevon." )
1694
1718
screen .await_turn () # No need for skipping dialog
0 commit comments