master
Skye 2 years ago
parent a2a2d771d6
commit 01001f2ffa
Signed by: me
GPG Key ID: 0104BC05F41B77B8

@ -121,7 +121,7 @@ enum StateMachine {
} }
impl StateMachine { impl StateMachine {
fn new(mut rng: impl ::rand_core::RngCore) -> Self { pub fn new(mut rng: impl ::rand_core::RngCore) -> Self {
match rng.next_u32() % 10 { match rng.next_u32() % 10 {
0 => StateMachine::Uwu { left: 3 }, 0 => StateMachine::Uwu { left: 3 },
1 => StateMachine::CatgirlNonsense(CatgirlNonsenseMachine::new()), 1 => StateMachine::CatgirlNonsense(CatgirlNonsenseMachine::new()),
@ -160,7 +160,7 @@ impl StateMachine {
} }
} }
fn generate(self, mut rng: impl ::rand_core::RngCore) -> (Self, char) { pub fn generate(self, mut rng: impl ::rand_core::RngCore) -> (Self, char) {
match self { match self {
StateMachine::Uwu { left } => match left { StateMachine::Uwu { left } => match left {
3 => (StateMachine::Uwu { left: 2 }, 'u'), 3 => (StateMachine::Uwu { left: 2 }, 'u'),

Loading…
Cancel
Save