fix: adjust hitresult gen for mania on lazer

This commit is contained in:
MaxOhn
2024-11-11 20:15:18 +01:00
parent 78d7bd3873
commit e0c53af27a
10 changed files with 115 additions and 40 deletions
+6
View File
@@ -112,6 +112,7 @@ macro_rules! test_cases {
stars: $stars:literal,
hit_window: $hit_window:literal,
n_objects: $n_objects:literal,
n_hold_notes: $n_hold_notes:literal,
max_combo: $max_combo:literal,
is_convert: $is_convert:literal,
}) => {
@@ -119,6 +120,7 @@ macro_rules! test_cases {
stars: $stars,
hit_window: $hit_window,
n_objects: $n_objects,
n_hold_notes: $n_hold_notes,
max_combo: $max_combo,
is_convert: $is_convert,
}
@@ -531,6 +533,7 @@ fn basic_mania() {
stars: 3.358304846842773,
hit_window: 40.0,
n_objects: 594,
n_hold_notes: 121,
max_combo: 956,
is_convert: false,
};
@@ -538,6 +541,7 @@ fn basic_mania() {
stars: 4.6072892053157295,
hit_window: 40.0,
n_objects: 594,
n_hold_notes: 121,
max_combo: 956,
is_convert: false,
};
@@ -553,6 +557,7 @@ fn convert_mania() {
stars: 3.2033142085672255,
hit_window: 34.0,
n_objects: 1046,
n_hold_notes: 293,
max_combo: 1381,
is_convert: true,
};
@@ -560,6 +565,7 @@ fn convert_mania() {
stars: 4.2934063021960185,
hit_window: 34.0,
n_objects: 1046,
n_hold_notes: 293,
max_combo: 1381,
is_convert: true,
};
+6 -6
View File
@@ -359,9 +359,9 @@ fn convert_catch() {
fn basic_mania() {
test_cases! {
Mania: MANIA {
NM => { pp: 108.08430593303873, pp_difficulty: 108.08430593303873 };
EZ => { pp: 54.04215296651937, pp_difficulty: 108.08430593303873 };
DT => { pp: 222.79838979800365, pp_difficulty: 222.79838979800365 };
NM => { pp: 108.92297471705167, pp_difficulty: 108.92297471705167 };
EZ => { pp: 54.46148735852584, pp_difficulty: 108.92297471705167 };
DT => { pp: 224.52717042937203, pp_difficulty: 224.52717042937203 };
}
};
}
@@ -370,9 +370,9 @@ fn basic_mania() {
fn convert_mania() {
test_cases! {
Mania: OSU {
NM => { pp: 99.73849552661329, pp_difficulty: 99.73849552661329 };
EZ => { pp: 49.869247763306646, pp_difficulty: 99.73849552661329 };
DT => { pp: 195.23247718805612, pp_difficulty: 195.23247718805612 };
NM => { pp: 101.39189449271568, pp_difficulty: 101.39189449271568 };
EZ => { pp: 50.69594724635784, pp_difficulty: 101.39189449271568 };
DT => { pp: 198.46891237015896, pp_difficulty: 198.46891237015896 };
}
};
}