Skip to content

Commit a41b232

Browse files
committed
move boss fight logic to separate file
1 parent ea1f7e0 commit a41b232

File tree

18 files changed

+1700
-1735
lines changed

18 files changed

+1700
-1735
lines changed

area/MRR.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import time
22

3+
import battle.boss
34
import battle.main
45
import logs
56
import memory.main
@@ -259,7 +260,7 @@ def battleSite():
259260

260261

261262
def guiAndAftermath():
262-
battle.main.battleGui()
263+
battle.boss.gui()
263264

264265
checkpoint = 0
265266
while memory.main.getMap() != 93:

area/baaj.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import battle.boss
12
import battle.main
23
import memory.main
34
import menu
@@ -114,7 +115,7 @@ def Klikk_fight():
114115
xbox.clickToBattle()
115116
battle.main.useItem(0, 'none') # Tidus self-potion
116117
screen.awaitTurn()
117-
battle.main.Klikk()
118+
battle.boss.klikk()
118119

119120

120121
def distance(n1, n2):
@@ -248,7 +249,7 @@ def ABswimming2():
248249

249250
# Tros fight
250251
xbox.clickToBattle()
251-
battle.main.Tros()
252+
battle.boss.tros()
252253

253254
FFXC.set_neutral()
254255
while memory.main.getStoryProgress() < 111:

area/boats.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import battle.boss
12
import battle.main
23
import logs
34
import memory.main
@@ -46,9 +47,9 @@ def ssLiki():
4647
xbox.skipScene()
4748
elif memory.main.battleActive():
4849
print("Ready to start fight with Sin's Fin")
49-
battle.main.SinFin()
50+
battle.boss.sinFin()
5051
print("Sin's Fin fight complete. Waiting for next fight")
51-
battle.main.Echuilles()
52+
battle.boss.echuilles()
5253
print("Sinspawn Echuilles fight complete")
5354

5455

area/dreamZan.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import battle.boss
12
import battle.main
23
import battle.overdrive
34
import logs
@@ -231,7 +232,7 @@ def AfterAmmes():
231232
else:
232233
FFXC.set_neutral()
233234
if memory.main.turnReady():
234-
battle.main.Tanker()
235+
battle.boss.tanker()
235236
if memory.main.diagSkipPossible():
236237
xbox.tapB()
237238
elif memory.main.cutsceneSkipPossible():

area/gagazet.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import battle.boss
12
import battle.main
23
import logs
34
import memory.main
@@ -117,7 +118,7 @@ def toTheRonso():
117118
else:
118119
FFXC.set_neutral()
119120
if memory.main.turnReady():
120-
battle.main.biranYenke()
121+
battle.boss.biranYenke()
121122
elif memory.main.diagSkipPossible():
122123
xbox.tapB()
123124

@@ -197,7 +198,7 @@ def Flux():
197198
FFXC.set_neutral()
198199
if memory.main.battleActive():
199200
print("Flux battle start")
200-
battle.main.seymourFlux()
201+
battle.boss.seymourFlux()
201202
# FFXC.set_movement(0,1)
202203
memory.main.clickToControl3()
203204
if gameVars.endGameVersion() != 3:
@@ -470,7 +471,7 @@ def cave():
470471
xbox.tapB()
471472

472473
xbox.clickToBattle()
473-
battle.main.sKeeper()
474+
battle.boss.sKeeper()
474475

475476

476477
def wrapUp():

area/kilika.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import battle.boss
12
import battle.main
23
import logs
34
import memory.main
@@ -153,7 +154,7 @@ def forest1():
153154
nextBattle = rngTrack.comingBattles(area="kilika_woods", battleCount=1)[0]
154155
print("################# Next Battle:", nextBattle)
155156
elif checkpoint > 86:
156-
battle.main.Geneaux()
157+
battle.boss.geneaux()
157158
else:
158159
print("---------------This should be battle number:", kilikaBattles)
159160
print("---------------Reminder (north-bound only):", nextThree)

area/luca.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import battle.boss
12
import battle.main
23
import logs
34
import memory.main
@@ -118,7 +119,7 @@ def arrival():
118119
FFXC.set_movement(1, 0)
119120
memory.main.awaitEvent()
120121
FFXC.set_neutral()
121-
battle.main.Oblitzerator(earlyHaste)
122+
battle.boss.oblitzerator(earlyHaste)
122123
checkpoint += 1
123124
elif checkpoint == 50:
124125
memory.main.clickToEventTemple(4)

area/mTemple.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import battle.boss
12
import battle.main
23
import memory.main
34
import menu
@@ -298,7 +299,7 @@ def escape():
298299
xbox.tapB()
299300

300301
print("Done pathing. Now for the Wendigo fight.")
301-
battle.main.wendigo()
302+
battle.boss.wendigo()
302303
print("Wendigo fight over")
303304

304305

area/mWoods.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import battle.boss
12
import battle.main
23
import logs
34
import memory.main
@@ -122,7 +123,7 @@ def lakeRoad():
122123

123124
FFXC.set_neutral() # Engage Spherimorph
124125

125-
battle.main.spherimorph()
126+
battle.boss.spherimorph()
126127
print("Battle is over.")
127128
memory.main.clickToControl() # Jecht's memories
128129

@@ -201,7 +202,7 @@ def lake():
201202
elif memory.main.diagSkipPossible() or memory.main.menuOpen():
202203
xbox.menuB()
203204
xbox.clickToBattle()
204-
battle.main.negator()
205+
battle.boss.crawler()
205206

206207

207208
def afterCrawler():

area/miihen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import battle.boss
12
import battle.main
23
import logs
34
import memory.main
@@ -281,7 +282,7 @@ def midPoint():
281282
elif memory.main.battleActive():
282283
FFXC.set_neutral()
283284
print("Mi'ihen - ready for Chocobo Eater")
284-
battle.main.chocoEater()
285+
battle.boss.chocoboEater()
285286
print("Mi'ihen - Chocobo Eater complete")
286287

287288

0 commit comments

Comments
 (0)