11
11
12
12
logger = logging .getLogger (__name__ )
13
13
14
+ @battle .utils .speedup_decorator
14
15
def ammes ():
15
16
BattleComplete = 0
16
17
countAttacks = 0
@@ -34,6 +35,7 @@ def ammes():
34
35
logger .info ("Ammes battle complete" )
35
36
36
37
38
+ @battle .utils .speedup_decorator
37
39
def tanker ():
38
40
logger .info ("Fight start: Tanker" )
39
41
countAttacks = 0
@@ -61,6 +63,7 @@ def tanker():
61
63
xbox .tap_b ()
62
64
63
65
66
+ @battle .utils .speedup_decorator
64
67
def klikk ():
65
68
logger .info ("Fight start: Klikk" )
66
69
klikkAttacks = 0
@@ -123,6 +126,7 @@ def klikk():
123
126
memory .main .wait_frames (1 )
124
127
125
128
129
+ @battle .utils .speedup_decorator
126
130
def tros ():
127
131
logs .open_rng_track ()
128
132
logger .info ("Fight start: Tros" )
@@ -213,6 +217,7 @@ def tros():
213
217
memory .main .click_to_control ()
214
218
215
219
220
+ @battle .utils .speedup_decorator
216
221
def sin_fin ():
217
222
logger .info ("Fight start: Sin's Fin" )
218
223
screen .await_turn ()
@@ -264,6 +269,7 @@ def sin_fin():
264
269
xbox .click_to_battle ()
265
270
266
271
272
+ @battle .utils .speedup_decorator
267
273
def echuilles ():
268
274
logger .info ("Fight start: Sinspawn Echuilles" )
269
275
screen .await_turn ()
@@ -314,6 +320,7 @@ def echuilles():
314
320
logs .write_rng_track (memory .main .rng_10_array (array_len = 1 ))
315
321
316
322
323
+ @battle .utils .speedup_decorator
317
324
def geneaux ():
318
325
logger .info ("Fight start: Sinspawn Geneaux" )
319
326
xbox .click_to_battle ()
@@ -345,6 +352,7 @@ def geneaux():
345
352
memory .main .click_to_control ()
346
353
347
354
355
+ @battle .utils .speedup_decorator
348
356
def oblitzerator (early_haste ):
349
357
logger .info ("Fight start: Oblitzerator" )
350
358
xbox .click_to_battle ()
@@ -391,6 +399,7 @@ def oblitzerator(early_haste):
391
399
# logs.write_stats(memory.s32(memory.rng02()))
392
400
393
401
402
+ @battle .utils .speedup_decorator
394
403
def chocobo_eater ():
395
404
logger .info ("Fight start: Chocobo Eater" )
396
405
rng44Last = memory .main .rng_from_index (44 )
@@ -489,6 +498,7 @@ def chocobo_eater():
489
498
logger .info ("Chocobo Eater battle complete." )
490
499
491
500
501
+ @battle .utils .speedup_decorator
492
502
def gui ():
493
503
logger .info ("Fight start: Sinspawn Gui" )
494
504
xbox .click_to_battle ()
@@ -653,6 +663,7 @@ def gui():
653
663
xbox .tap_b ()
654
664
655
665
666
+ @battle .utils .speedup_decorator
656
667
def extractor ():
657
668
logger .info ("Fight start: Extractor" )
658
669
FFXC .set_neutral ()
@@ -711,6 +722,7 @@ def extractor():
711
722
712
723
713
724
# Process written by CrimsonInferno
725
+ @battle .utils .speedup_decorator
714
726
def spherimorph ():
715
727
logger .info ("Fight start: Spherimorph" )
716
728
xbox .click_to_battle ()
@@ -851,6 +863,7 @@ def spherimorph():
851
863
xbox .skip_dialog (5 )
852
864
853
865
866
+ @battle .utils .speedup_decorator
854
867
def crawler ():
855
868
logger .info ("Starting battle with Crawler" )
856
869
xbox .click_to_battle ()
@@ -914,6 +927,7 @@ def crawler():
914
927
memory .main .click_to_control ()
915
928
916
929
930
+ @battle .utils .speedup_decorator
917
931
def wendigo ():
918
932
logger .info ("Starting battle with Wendigo" )
919
933
@@ -1106,6 +1120,7 @@ def wendigo():
1106
1120
1107
1121
1108
1122
# Process written by CrimsonInferno
1123
+ @battle .utils .speedup_decorator
1109
1124
def evrae ():
1110
1125
logger .info ("Starting battle: Evrae" )
1111
1126
tidusPrep = 0
@@ -1258,6 +1273,7 @@ def evrae():
1258
1273
xbox .skip_scene_spec ()
1259
1274
1260
1275
1276
+ @battle .utils .speedup_decorator
1261
1277
def isaaru ():
1262
1278
xbox .click_to_battle ()
1263
1279
if memory .main .get_encounter_id () < 258 :
@@ -1280,6 +1296,7 @@ def isaaru():
1280
1296
FFXC .set_value ("btn_b" , 0 )
1281
1297
1282
1298
1299
+ @battle .utils .speedup_decorator
1283
1300
def evrae_altana ():
1284
1301
xbox .click_to_battle ()
1285
1302
if memory .main .get_encounter_id () != 266 :
@@ -1308,6 +1325,7 @@ def evrae_altana():
1308
1325
memory .main .click_to_control ()
1309
1326
1310
1327
1328
+ @battle .utils .speedup_decorator
1311
1329
def seymour_natus ():
1312
1330
aeonSummoned = False
1313
1331
while not memory .main .user_control ():
@@ -1384,6 +1402,7 @@ def seymour_natus():
1384
1402
return 0
1385
1403
1386
1404
1405
+ @battle .utils .speedup_decorator
1387
1406
def biran_yenke ():
1388
1407
logger .info ("Starting battle with Biran & Yenke" )
1389
1408
xbox .click_to_battle ()
@@ -1425,6 +1444,7 @@ def biran_yenke():
1425
1444
game_vars .end_game_version_set (endGameVersion )
1426
1445
1427
1446
1447
+ @battle .utils .speedup_decorator
1428
1448
def seymour_flux ():
1429
1449
stage = 1
1430
1450
logger .info ("Start: Seymour Flux battle" )
@@ -1511,6 +1531,7 @@ def s_keeper_bahamut_crit() -> int:
1511
1531
return bahamut_crit
1512
1532
1513
1533
1534
+ @battle .utils .speedup_decorator
1514
1535
def s_keeper ():
1515
1536
xbox .click_to_battle ()
1516
1537
logger .info ("Start of Sanctuary Keeper fight" )
@@ -1557,6 +1578,7 @@ def s_keeper():
1557
1578
memory .main .click_to_control ()
1558
1579
1559
1580
1581
+ @battle .utils .speedup_decorator
1560
1582
def omnis ():
1561
1583
logger .info ("Fight start: Seymour Omnis" )
1562
1584
xbox .click_to_battle ()
@@ -1602,6 +1624,7 @@ def omnis():
1602
1624
memory .main .click_to_control ()
1603
1625
1604
1626
1627
+ @battle .utils .speedup_decorator
1605
1628
def bfa ():
1606
1629
if memory .main .get_gil_value () < 150000 :
1607
1630
swagMode = True
@@ -1676,6 +1699,7 @@ def bfa():
1676
1699
xbox .tap_b ()
1677
1700
1678
1701
1702
+ @battle .utils .speedup_decorator
1679
1703
def yu_yevon ():
1680
1704
logger .info ("Ready for Yu Yevon." )
1681
1705
screen .await_turn () # No need for skipping dialog
0 commit comments