[jak2/jak3] Check target state != target-continue, instead of = target-stance, for speedrun post-init things (#4193)

Without this change, in hero mode speedruns you aren't given jetboard,
guns, etc if you are immediately moving when the game starts

(left side has these changes, right side does not)


https://github.com/user-attachments/assets/d581ca13-3734-4389-9986-0f815c76e906
This commit is contained in:
Matt Dallmeyer
2026-04-08 09:36:22 -07:00
committed by GitHub
parent 3f686854e6
commit d2e9e6ea45
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -89,7 +89,7 @@
(if (string= *temp-string* "")
(initialize! *game-info* 'game (the-as game-save #f) "game-start")
(initialize! *game-info* 'game (the-as game-save #f) *temp-string*))
(until (and *target* (= (-> *target* next-state name) 'target-stance))
(until (and *target* (!= (-> *target* next-state name) 'target-continue))
(suspend))
(when (nonzero? (-> *speedrun-info* active-custom-category completed-task))
(task-resolution-close! (-> *speedrun-info* active-custom-category completed-task)))))))
+2 -2
View File
@@ -173,7 +173,7 @@
(logior! (-> *game-info* purchase-secrets) (game-secrets hero-mode))
(start 'play (get-continue-by-name *game-info* "wasstada-jump-training"))
(play-task (game-task arena-training-1) 'debug #f)
(until (and *target* (= (-> *target* next-state name) 'target-stance))
(until (and *target* (!= (-> *target* next-state name) 'target-continue))
(suspend))
(send-event *target* 'get-pickup (pickup-type gem) 1000.0)
(set! (-> *game-info* secrets) HERO_MODE_SECRETS)
@@ -195,7 +195,7 @@
(if (string= *temp-string* EMPTY_STRING)
(initialize! *game-info* 'game (the game-save #f) "intro-start" (the resetter-spec #f))
(initialize! *game-info* 'game (the game-save #f) *temp-string* (the resetter-spec #f)))
(until (and *target* (= (-> *target* next-state name) 'target-stance))
(until (and *target* (!= (-> *target* next-state name) 'target-continue))
(suspend))
(when (nonzero? (-> *speedrun-info* active-custom-category completed-task))
(task-resolution-close! (-> *speedrun-info* active-custom-category completed-task)))))))