Skip to content

Commit

Permalink
tweak chance
Browse files Browse the repository at this point in the history
  • Loading branch information
callmeclover committed May 16, 2024
1 parent e621d53 commit e86f9c8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
23 changes: 21 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ pub async fn main_logic(options: &[(&str, usize)], tts: &mut Tts, enigo: &mut En
#[cfg(feature = "advanced")]
fn pen(pen: &mut PenInjector, rng: &mut rand::rngs::ThreadRng) {
let lists: Vec<(Vec<(&str, usize)>, usize)> = vec![
(PEN_BUTTONS.to_vec(), 5),
(PEN_MOVE.to_vec(), 3),
(PEN_BUTTONS.to_vec(), 3),
(PEN_MOVE.to_vec(), 5),
(PEN_SPECIAL.to_vec(), 1),
];
let index: WeightedIndex<usize> =
Expand Down
6 changes: 3 additions & 3 deletions src/lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,14 @@ pub static GAMEPAD_BUTTONS: [(&str, usize); 12] = [
("DPadRight", 1),
("DPadUp", 1),
("LeftShoulder", 1),
("LeftTrigger", 2),
("LeftTrigger", 3),
("RightShoulder", 1),
("RightTrigger", 2),
("RightTrigger", 3),
];

#[allow(dead_code)]
pub static GAMEPAD_MOVE: [(&str, usize); 2] = [
("LeftThumbstickMove", 2),
("LeftThumbstickMove", 3),
("RightThumbstickMove", 1)
];

Expand Down

0 comments on commit e86f9c8

Please sign in to comment.