Skip to content

Commit

Permalink
After-tests debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
captainerd committed May 24, 2024
1 parent 18ba27c commit 2379e39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
7 changes: 3 additions & 4 deletions neothesia/src/scene/menu_scene/iced_menu/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,15 @@ impl Page for StatsPage {
// Populate data into tracks
for (index, stats) in sorted_stats.iter().enumerate() {
let mut scores = stats.notes_hit + stats.correct_note_times * 10; // There are many ways to cook


// Apply penalties
// Apply penalties
if stats.notes_missed > 0 {
scores = scores.saturating_sub(stats.notes_missed);
}
}
if stats.wrong_notes > 0 {
scores = scores.saturating_sub(stats.wrong_notes);
}

// Final bonus addition
scores += stats.correct_note_times;

Expand Down
11 changes: 0 additions & 11 deletions neothesia/src/scene/playing_scene/midi_player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,17 +326,6 @@ impl PlayAlong {
.iter()
.position(|item| item.note_id == note_id)
{
/* if let None = self
.user_pressed_recently
.iter_mut()
.find(|item| item.note_id == note_id)
{
// Remove/take back. -1 a count_deleted (WRONG NOTE) added by update() if reached file_press_key(); ///
self.user_stats.wrong_notes -= 1;
}
*/

if timestamp
.duration_since(self.required_notes[index].timestamp)
.as_millis()
Expand Down

0 comments on commit 2379e39

Please sign in to comment.