Skip to content

Commit 48e164e

Browse files
authored
Merge pull request #9 from HannibalSnekter/main
Many Small Changes
2 parents 5a553b5 + 8ff1ca9 commit 48e164e

File tree

10 files changed

+535
-77
lines changed

10 files changed

+535
-77
lines changed

FFX_Auto_Main.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#Gamestate, "none" for new game, or set to a specific section to start from the first save.
1111
#See the if statement tree below to determine starting position for Gamestate.
12-
Gamestate = "ThunderPlains"
12+
Gamestate = "Moonflow"
1313
StepCounter = 3
1414
#Gamestate = "Zanarkand"
1515
#StepCounter = 4
@@ -438,21 +438,22 @@ def reportGamestate():
438438
if Gamestate == "ThunderPlains" and StepCounter == 1:
439439
status = [False,False,False]
440440
reportGamestate()
441-
status = FFX_ThunderPlains.southPathing()
441+
status = FFX_ThunderPlains.southPathing(blitzWin)
442442
StepCounter = 2
443443

444444
if Gamestate == "ThunderPlains" and StepCounter == 2:
445445
FFX_ThunderPlains.agency()
446446
StepCounter = 3
447447

448448
if Gamestate == "ThunderPlains" and StepCounter == 3:
449-
FFX_ThunderPlains.northPathing(status)
449+
status = FFX_ThunderPlains.northPathing(status)
450+
rikkucharged = status[0]
450451
Gamestate = "Macalania"
451452
StepCounter = 1
452453

453454
if Gamestate == "Macalania" and StepCounter == 1:
454455
reportGamestate()
455-
FFX_mWoods.arrival()
456+
FFX_mWoods.arrival(rikkucharged)
456457
StepCounter = 2
457458

458459
if Gamestate == "Macalania" and StepCounter == 2:

FFX_Battle.py

Lines changed: 370 additions & 14 deletions
Large diffs are not rendered by default.

FFX_MRR.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def arrival():
111111
FFX_Battle.fleeAll()
112112
hpCheck = FFX_memory.getHP()
113113
print(hpCheck)
114-
if hpCheck[0] != 520 or hpCheck[5] != 644 or hpCheck[4] != 1030:
114+
if hpCheck[0] < 520 or hpCheck[3] < 644 or hpCheck[2] < 1030:
115115
FFX_Battle.healUp(3)
116116
else:
117117
print("No need to heal up. Moving onward.")

FFX_Moonflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def northBank():
271271
FFXC.set_value('AxisLy', 0)
272272

273273
FFX_Battle.mixTutorial()
274-
FFX_memory.fullPartyFormat('kimahri')
274+
FFX_memory.fullPartyFormat_New("postbunyip", 10)
275275

276276
FFXC.set_value('AxisLx', 1)
277277
FFXC.set_value('AxisLy', 1)

FFX_Screen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ def checkCharge(pos):
888888
FFX_Logs.writeLog("Character in position 2 is NOT charged.")
889889
return False
890890

891-
def partySize():
891+
def partySize_Old():
892892
if PixelTest(1401,791,(199, 162, 255)):
893893
return 3
894894
elif PixelTest(1401,747,(199, 162, 255)):

FFX_ThunderPlains.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@
77

88
FFXC = FFX_Xbox.FFXC
99

10-
def southPathing():
10+
def southPathing(blitzwin):
1111

1212
print("Start of the Thunder Plains section")
1313
checkpoint = 0
1414
stepCount = 0
1515
stepMax = 500
1616
complete = 0
17-
status = [False,False,False] #Rikku charged, Light Curtain, Lunar Curtain
18-
FFX_memory.fullPartyFormat('kimahri')
17+
status = [False,False,False,False] #Rikku charged, Light Curtain, Lunar Curtain, Grenade Thrown
18+
status[2] = blitzwin
19+
speedcount = FFX_memory.getSpeed()
20+
if speedcount >= 14:
21+
status[3] = True
22+
FFX_memory.fullPartyFormat_New('postbunyip', 11)
1923
while complete == 0:
2024
if FFX_Screen.dodgeLightning():
2125
print("Dodge")
@@ -224,7 +228,7 @@ def agency(blitzWin):
224228
FFX_Xbox.menuB()
225229
time.sleep(0.2)
226230
FFX_Xbox.menuRight()
227-
speedNeeded = 15 - speedCount #15 plus two (Spherimorph, Flux), minus 1 because it starts on 1
231+
speedNeeded = 14 - speedCount #15 plus two (Spherimorph, Flux), minus 1 because it starts on 1
228232
if speedNeeded > 1:
229233
speedNeeded = 1 #Limit so we don't over-spend and run out of money.
230234
if speedNeeded > 0:
@@ -473,4 +477,6 @@ def northPathing(status):
473477
FFXC.set_value('AxisLx', 1)
474478
FFX_Xbox.SkipDialog(6)
475479
FFXC.set_value('AxisLy', 0)
476-
FFXC.set_value('AxisLx', 0) #Approaching the party
480+
FFXC.set_value('AxisLx', 0) #Approaching the party
481+
482+
return status

FFX_home.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def desert1():
3030
if turnchar == 0:
3131
if tidusturns < 2:
3232
FFX_Battle.attack("none")
33-
elif len(FFX_memory.getBattleFormation()) > 2:
33+
elif FFX_memory.partySize() > 2:
3434
FFX_Battle.tidusFlee()
3535
else:
3636
FFX_Battle.defend()

FFX_mWoods.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@
77

88
FFXC = FFX_Xbox.FFXC
99

10-
def arrival():
10+
def arrival(rikkucharged):
1111
FFX_Screen.clickToMap1()
12-
FFX_memory.fullPartyFormat('kimahri')
12+
if rikkucharged == True:
13+
FFX_memory.fullPartyFormat_New("mwoodsgotcharge", 11)
14+
else:
15+
FFX_memory.fullPartyFormat_New("mwoodsneedcharge", 11)
1316
#Start by getting away from the save sphere
1417
FFXC.set_value('AxisLy', 1)
1518
FFXC.set_value('AxisLx', 1)
@@ -27,6 +30,7 @@ def arrival():
2730
lastCP = 0
2831
complete = 0
2932
woodsVars = [False, False, False] #Rikku's charge, Fish Scales, and Arctic Winds
33+
woodsVars[0] = rikkucharged
3034
#As a side note, Rikku is always charged in thunder plains.
3135
while complete == 0:
3236
if lastCP != checkpoint:

0 commit comments

Comments
 (0)