2 Commits

Author SHA1 Message Date
638be9a256 check if absolute sens is on 2026-02-06 08:04:52 -08:00
8ea487a72a print absolute sens 2026-02-06 07:55:28 -08:00
3 changed files with 9 additions and 5 deletions

4
Cargo.lock generated
View File

@@ -208,9 +208,9 @@ checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589"
[[package]]
name = "strafesnet_roblox_bot_file"
version = "0.9.3"
version = "0.8.1"
source = "sparse+https://git.itzana.me/api/packages/strafesnet/cargo/"
checksum = "423d931e4f4f97406a86519a22172d1fc0d5b9d8c3b2d4553ae89b641bbd555c"
checksum = "33d0fa524476d8b6cf23269b0c9cff6334b70585546b807cb8ec193858defecd"
dependencies = [
"binrw",
"bitflags",

View File

@@ -5,6 +5,6 @@ edition = "2024"
[dependencies]
futures = "0.3.31"
strafesnet_roblox_bot_file = { version = "0.9.3", registry = "strafesnet" }
strafesnet_roblox_bot_file = { version = "0.8.1", registry = "strafesnet" }
tokio = { version = "1.48.0", features = ["macros", "rt-multi-thread", "fs"] }
tokio-stream = { version = "0.1.17", features = ["fs"] }

View File

@@ -43,15 +43,16 @@ async fn main()->Result<(),Error>{
const ONE_SECOND:u64=1<<32;
#[derive(Default)]
struct FoldState{
count:usize,
count:u64,
jumps:u64,
duration:u64,
settings:u64,
absolute_sens:u64,
outliers:Vec<PathBuf>,
}
impl std::fmt::Display for FoldState{
fn fmt(&self,f:&mut std::fmt::Formatter<'_>)->std::fmt::Result{
write!(f,"count={} jumps={} duration={:.3} settings={}",self.count,self.jumps,self.duration as f64/(ONE_SECOND as f64),self.settings)
write!(f,"count={} jumps={} duration={:.3} settings={} absolute_sens={}",self.count,self.jumps,self.duration as f64/(ONE_SECOND as f64),self.settings,self.absolute_sens)
}
}
impl FoldState{
@@ -76,6 +77,9 @@ async fn main()->Result<(),Error>{
.filter(|event|run_start.time<event.time)
.count() as u64;
}
if let Some(_setting)=block.setting_events.iter().find(|event|matches!(event.event.setting_type,v0::SettingType::AbsoluteSensitivity)&&event.event.value==1.0){
self.absolute_sens+=1;
}
}
}