diff --git a/src/lib.rs b/src/lib.rs index e1c68b5..377a431 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -181,7 +181,11 @@ impl<'a> UwUify<'a> { if !self.is_runtime { if random_value <= self.faces { - out.write_all(FACES[random_int!(&mut seeder, 0..FACES_SIZE)])?; + if self.ascii { + out.write_all(ASCII[random_int!(&mut seeder, 0..ASCII_SIZE)])?; + } else { + out.write_all(FACES[random_int!(&mut seeder, 0..FACES_SIZE)])?; + } out.write_all(b" ")?; } else if random_value <= self.actions { out.write_all(ACTIONS[random_int!(&mut seeder, 0..ACTIONS_SIZE)])?; diff --git a/src/main.rs b/src/main.rs index 0e1296b..04e95dc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -108,8 +108,8 @@ macro_rules! clap_panic { } macro_rules! is_runtime { - ($faces:expr, $actions:expr, $ascii:expr, $stutters:expr) => { - $faces > 0 || $actions > 0 || $ascii > 0 || $stutters > 0 + ($faces:expr, $actions:expr, $stutters:expr) => { + $faces > 0 || $actions > 0 || $stutters > 0 }; } @@ -130,7 +130,6 @@ fn main() { is_runtime!( matches.occurrences_of("faces"), matches.occurrences_of("actions"), - matches.occurrences_of("ascii-only"), matches.occurrences_of("stutters") ), )