Skip to content

Commit

Permalink
Merge pull request #1 from BlaiZephyr/add_rounding
Browse files Browse the repository at this point in the history
add rounding to rust version
  • Loading branch information
Teero888 authored Nov 15, 2024
2 parents 4f62400 + 2457535 commit ef783b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ fn main() {
}
};
let new_tunes = calculate_tunes(((1.0 / scale) * 50.0) as i32);
println!("tune ground_control_speed {}\ntune ground_control_accel {}\ntune ground_friction {}\ntune ground_jump_impulse {}\ntune air_jump_impulse {}\ntune air_control_speed {}\ntune air_control_accel {}\ntune air_friction {}\ntune hook_fire_speed {}\ntune hook_drag_accel {}\ntune hook_drag_speed {}\ntune gravity {}\ntune velramp_start {}\ntune velramp_range {}\ntune gun_speed {}\ntune gun_lifetime {}\ntune grenade_speed {}\ntune grenade_lifetime {}\ntune laser_bounce_delay {}\ntune jetpack_strength {}\ntune shotgun_strength {}\ntune explosion_strength {}\ntune hammer_strength {}\ntune hook_duration {}\ntune hammer_fire_delay {}\ntune gun_fire_delay {}\ntune shotgun_fire_delay {}\ntune grenade_fire_delay {}\ntune laser_fire_delay {}\ntune ninja_fire_delay {}\ntune hammer_hit_fire_delay {}",
println!("tune ground_control_speed {:.2}\ntune ground_control_accel {:.2}\ntune ground_friction {:.2}\ntune ground_jump_impulse {:.2}\ntune air_jump_impulse {:.2}\ntune air_control_speed {:.2}\ntune air_control_accel {:.2}\ntune air_friction {:.2}\ntune hook_fire_speed {:.2}\ntune hook_drag_accel {:.2}\ntune hook_drag_speed {:.2}\ntune gravity {:.2}\ntune velramp_start {:.2}\ntune velramp_range {:.2}\ntune gun_speed {:.2}\ntune gun_lifetime {:.2}\ntune grenade_speed {:.2}\ntune grenade_lifetime {:.2}\ntune laser_bounce_delay {:.2}\ntune jetpack_strength {:.2}\ntune shotgun_strength {:.2}\ntune explosion_strength {:.2}\ntune hammer_strength {:.2}\ntune hook_duration {:.2}\ntune hammer_fire_delay {:.2}\ntune gun_fire_delay {:.2}\ntune shotgun_fire_delay {:.2}\ntune grenade_fire_delay {:.2}\ntune laser_fire_delay {:.2}\ntune ninja_fire_delay {:.2}\ntune hammer_hit_fire_delay {:.2}",
new_tunes.ground_control_speed, new_tunes.ground_control_accel, new_tunes.ground_friction, new_tunes.ground_jump_impulse, new_tunes.air_jump_impulse, new_tunes.air_control_speed, new_tunes.air_control_accel, new_tunes.air_friction, new_tunes.hook_fire_speed, new_tunes.hook_drag_accel, new_tunes.hook_drag_speed, new_tunes.gravity, new_tunes.velramp_start, new_tunes.velramp_range, new_tunes.gun_speed, new_tunes.gun_lifetime, new_tunes.grenade_speed, new_tunes.grenade_lifetime, new_tunes.laser_bounce_delay, new_tunes.jetpack_strength, new_tunes.shotgun_strength, new_tunes.explosion_strength, new_tunes.hammer_strength, new_tunes.hook_duration, new_tunes.hammer_fire_delay, new_tunes.gun_fire_delay, new_tunes.shotgun_fire_delay, new_tunes.grenade_fire_delay, new_tunes.laser_fire_delay, new_tunes.ninja_fire_delay, new_tunes.hammer_hit_fire_delay);
}

0 comments on commit ef783b4

Please sign in to comment.