Skip to content

Commit

Permalink
fix 50 note streak #917
Browse files Browse the repository at this point in the history
  • Loading branch information
jnackmclain committed Nov 10, 2024
1 parent 9533fa0 commit 60b571f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _ark/dx/track/track_ui/dx_track_streak_funcs.dta
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
;gh style note streak text popups above the track
{func
dx_note_streak_popup
($instrument $num_gems_combo)
($instrument)
{set $dx_bpm {* {* 60 {/ 1 {- {beat_to_seconds {+ {int {+ 0.5 {seconds_to_beat {/ {beatmatch get_song_ms} 1000}}}} 1}} {beat_to_seconds {int {+ 0.5 {seconds_to_beat {/ {beatmatch get_song_ms} 1000}}}}}}}} $speedmod}} ;grab current bpm same way the bpm counter does but not dependent on it
{set $dx_streak_timer 4} ;fallback if somehow the cond fails to set something
{cond
Expand Down Expand Up @@ -105,14 +105,14 @@
($enabled $instrument $num_gems_combo)
{if {&& $enabled {! {gamemode in_mode trainer}}}
{if {== {mod $num_gems_combo {dx_adjust_streak_popup_interval $instrument $num_gems_combo}} 0}
{dx_note_streak_popup $instrument $num_gems_combo}
{dx_note_streak_popup $instrument}
}
}
}
{func
dx_adjust_streak_popup_interval
($instrument $num_gems_combo)
{set $interval {if_else {>= $num_gems_combo 50} 100 50}} ;adjust interval higher or lower based on combo
{set $interval {if_else {> $num_gems_combo 50} 100 50}} ;adjust interval higher or lower based on combo
{switch $instrument ;specify interval to the specific instrument
(guitar {set $dx_streak_interval_guitar $interval})
(bass {set $dx_streak_interval_bass $interval})
Expand Down

0 comments on commit 60b571f

Please sign in to comment.