lets try this

This commit is contained in:
tsunyoku
2024-07-13 16:12:53 +01:00
parent 9f3f3731d2
commit 40c711e99a
2 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ use super::{DifficultyObject, SkillKind};
use std::cmp::Ordering;
const SPEED_SKILL_MULTIPLIER: f32 = 1300.0;
const SPEED_SKILL_MULTIPLIER: f32 = 1400.0;
const SPEED_STRAIN_DECAY_BASE: f32 = 0.3;
const AIM_SKILL_MULTIPLIER: f32 = 27.25;
+13 -2
View File
@@ -48,8 +48,19 @@ impl SkillKind {
let dist_exp =
jump_dist_exp + travel_dist_exp + (travel_dist_exp * jump_dist_exp).sqrt();
(result + dist_exp / (current.strain_time).max(TIMING_THRESHOLD))
.max(dist_exp / current.strain_time)
let mut aim_strain = (result
+ dist_exp / (current.strain_time).max(TIMING_THRESHOLD))
.max(dist_exp / current.strain_time);
let flow_bonus = (current.prev.and_then(|p| Some(p.0)).unwrap_or(0.0)
/ SINGLE_SPACING_TRESHOLD)
.powf(3.5);
if flow_bonus < 1.0 {
aim_strain *= 0.5 + 0.5 * flow_bonus.sqrt();
}
aim_strain
}
Self::Speed => {
if current.base.is_spinner() {