Skip to content

Commit 26597e8

Browse files
authored
[jak1] Fix lavatube oranges autosplit (#4022)
Not sure if/how this ever worked. The old code splits if you mark the task complete from the debug menu, but not from normal gameplay. `autosplit-flag-task-complete!` checks if the `task-perm-list` has the `real-complete` flag. Other than the debug menu and couple special cases, it looks like `task-perm-list` entries only get marked `real-complete` here when we get a fuel-cell https://github.com/open-goal/jak-project/blob/aad1b53ce31ab0ef4c20ad7f6311cdda84f5c2bf/goal_src/jak1/engine/game/game-info.gc#L287-L300 Fixes one of the issues in #4021
1 parent 0cb2206 commit 26597e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

goal_src/jak1/pc/features/autosplit.gc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,9 @@
260260
(autosplit-flag-task-complete! res-ogre-secret ogre-secret)
261261
(autosplit-flag-task-complete! res-lavatube-end lavatube-end)
262262
(autosplit-flag-task-complete! res-lavatube-buzzer lavatube-buzzer)
263-
(autosplit-flag-task-complete! res-lavatube-balls lavatube-balls)
263+
;; oranges are special, they don't get marked complete in task-perm-list in normal gameplay
264+
(set! (-> *autosplit-info-jak1* res-lavatube-balls)
265+
(if (task-closed? (game-task lavatube-balls) (task-status need-resolution)) 1 0))
264266
(autosplit-flag-task-complete! res-intro intro)
265267
;; other misc tasks
266268
(set! (-> *autosplit-info-jak1* int-finalboss-movies)

0 commit comments

Comments
 (0)