[jak2/jak3] Fix off by one bug in trick display (#4224)

fixes #3150 

the scoring system counts up to 16 (point-scoring) tricks, but the
opengoal-secret display system was ignoring the 16th one, causing score
discrepancies
This commit is contained in:
Matt Dallmeyer
2026-04-18 15:47:36 -07:00
committed by GitHub
parent 637990314b
commit a63cb1d212
2 changed files with 2 additions and 2 deletions
@@ -46,7 +46,7 @@
(when (not (-> this combo-in-progress?))
(set! (-> this combo-in-progress?) #t)
(reset-combo! this))
(when (< (-> this num-tricks-in-combo) 15)
(when (< (-> this num-tricks-in-combo) 16)
(set! (-> this tricks-in-combo (-> this num-tricks-in-combo)) trick)
(set! (-> this num-tricks-in-combo) (inc (-> this num-tricks-in-combo)))
(set! (-> this points-in-combo) (+ (-> this points-in-combo) points)))
@@ -26,7 +26,7 @@
(when (not (-> this combo-in-progress?))
(set! (-> this combo-in-progress?) #t)
(reset-combo! this))
(when (< (-> this num-tricks-in-combo) 15)
(when (< (-> this num-tricks-in-combo) 16)
(set! (-> this tricks-in-combo (-> this num-tricks-in-combo)) trick)
(set! (-> this num-tricks-in-combo) (inc (-> this num-tricks-in-combo)))
(set! (-> this points-in-combo) (+ (-> this points-in-combo) points)))