diff --git a/Makefile.toml b/Makefile.toml
index 92956fa..72dcc22 100644
--- a/Makefile.toml
+++ b/Makefile.toml
@@ -21,7 +21,7 @@ script = [
[tasks.fmt]
script_runner = "@shell"
script = [
-"cargo +nightly fmt -- --config format_code_in_doc_comments=true"
+"cargo +nightly fmt -- --config format_code_in_doc_comments=true --config imports_granularity=Module"
]
[tasks.testcov]
diff --git a/coverage/html/badges/flat.svg b/coverage/html/badges/flat.svg
index 4c9dba0..cbcfb5c 100644
--- a/coverage/html/badges/flat.svg
+++ b/coverage/html/badges/flat.svg
@@ -1,6 +1,6 @@
\ No newline at end of file
diff --git a/coverage/html/badges/flat_square.svg b/coverage/html/badges/flat_square.svg
index efc26f9..36d4829 100644
--- a/coverage/html/badges/flat_square.svg
+++ b/coverage/html/badges/flat_square.svg
@@ -1,13 +1,13 @@
\ No newline at end of file
diff --git a/coverage/html/badges/for_the_badge.svg b/coverage/html/badges/for_the_badge.svg
index 0956090..0cfc978 100644
--- a/coverage/html/badges/for_the_badge.svg
+++ b/coverage/html/badges/for_the_badge.svg
@@ -1,13 +1,13 @@
\ No newline at end of file
diff --git a/coverage/html/badges/plastic.svg b/coverage/html/badges/plastic.svg
index 16fde0e..68d3549 100644
--- a/coverage/html/badges/plastic.svg
+++ b/coverage/html/badges/plastic.svg
@@ -1,6 +1,6 @@
\ No newline at end of file
diff --git a/coverage/html/badges/social.svg b/coverage/html/badges/social.svg
index f5e0951..45c8c46 100644
--- a/coverage/html/badges/social.svg
+++ b/coverage/html/badges/social.svg
@@ -1,6 +1,6 @@
\ No newline at end of file
diff --git a/src/craft.rs b/src/craft.rs
index cbffb01..9f4cd95 100644
--- a/src/craft.rs
+++ b/src/craft.rs
@@ -210,6 +210,33 @@ impl<'a> Craft<'a> {
},
)
}
+
+ /// Create a "Three start" craft, testing only
+ pub fn three_star() -> Craft<'a> {
+ Self::new(
+ crate::specs::Recipe {
+ durability: 70,
+ progress: 3900,
+ quality: 10920,
+ progress_divider: 130,
+ quality_divider: 115,
+ progress_modifier: 80,
+ quality_modifier: 70,
+ },
+ crate::specs::Stats {
+ craftsmanship: 4041,
+ control: 3971,
+ max_cp: 595,
+ },
+ crate::io::Parameters {
+ threads: 8,
+ verbose: 2,
+ depth: 8,
+ desperate: false,
+ byregot_step: 10,
+ },
+ )
+ }
}
#[cfg(test)]
diff --git a/src/lib.rs b/src/lib.rs
index 96c4de4..b83a71f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -96,12 +96,9 @@
#![warn(missing_docs)]
-use crate::io::SolverResult;
-use crate::{
- craft::Craft,
- io::Parameters,
- specs::{Recipe, Stats},
-};
+use crate::craft::Craft;
+use crate::io::{Parameters, SolverResult};
+use crate::specs::{Recipe, Stats};
use std::sync::{Arc, Mutex};
use threadpool::ThreadPool;
diff --git a/src/solver.rs b/src/solver.rs
index 3ed2fe6..bbce062 100644
--- a/src/solver.rs
+++ b/src/solver.rs
@@ -16,7 +16,7 @@ pub fn next_action_picker_1<'a>(craft: &Craft<'a>) -> Vec