mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/exe/print.rs')
-rw-r--r--src/exe/print.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/exe/print.rs b/src/exe/print.rs
index 1fb4801..1cafc56 100644
--- a/src/exe/print.rs
+++ b/src/exe/print.rs
@@ -158,5 +158,14 @@ fn print_schematic(s: &Schematic)
{
if !labels.is_empty() && labels != "[]" {println!("Tags: {:?}", labels);}
}
+ let (cost, sandbox) = s.compute_total_cost();
+ if !cost.is_empty()
+ {
+ println!("Build cost: {cost}{}", if sandbox {" (Sandbox only)"} else {""});
+ }
+ else if sandbox
+ {
+ println!("Can only be built in the Sandbox");
+ }
println!("\n{s}");
}