This commit is contained in:
@@ -68,9 +68,7 @@ impl ChoiceQueue {
|
||||
}
|
||||
|
||||
/// Check if we have any choices remaining.
|
||||
pub fn has_next(&self) -> bool {
|
||||
self.current.load(Ordering::Relaxed) < self.queue.read().len()
|
||||
}
|
||||
pub fn has_next(&self) -> bool { self.current.load(Ordering::Relaxed) < self.queue.read().len() }
|
||||
|
||||
/// This resorts the yet to be executed choices. This can be useful for dealing with situations
|
||||
/// such as Pokemon changing forms just after the very start of a turn, when turn order has
|
||||
@@ -163,7 +161,6 @@ mod tests {
|
||||
use crate::defines::LevelInt;
|
||||
use crate::dynamic_data::{DynamicLibrary, PassChoice};
|
||||
use crate::static_data::{AbilityIndex, Gender};
|
||||
use std::sync::Arc;
|
||||
#[test]
|
||||
fn create_empty_queue() {
|
||||
let queue = ChoiceQueue::new(Vec::new());
|
||||
|
||||
Reference in New Issue
Block a user