Further massive amounts of work

This commit is contained in:
2022-06-06 13:54:59 +02:00
parent df662ce6b5
commit ce33ec0649
33 changed files with 848 additions and 80 deletions

View File

@@ -17,6 +17,16 @@ impl BattleRandom {
pub fn get_rng(&self) -> &Mutex<Random> {
&self.random
}
pub fn get(&self) -> i32 {
return self.get_rng().lock().unwrap().get();
}
pub fn get_max(&self, max: i32) -> i32 {
return self.get_rng().lock().unwrap().get_max(max);
}
pub fn get_between(&self, min: i32, max: i32) -> i32 {
return self.get_rng().lock().unwrap().get_between(min, max);
}
}
impl Debug for BattleRandom {