mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
suppress recipes with no cost
This commit is contained in:
parent
fe1cbec37c
commit
b3956517fc
@ -337,7 +337,9 @@ impl TradePricing {
|
||||
// (start with cheap ones to avoid changing material prices after evaluation)
|
||||
while price_sort(&result, &eqset.read(), &mut ordered_recipes) {
|
||||
ordered_recipes.retain(|e| {
|
||||
if e.material_cost < TradePricing::UNAVAILABLE_PRICE {
|
||||
if e.material_cost < 1e-5 {
|
||||
false
|
||||
} else if e.material_cost < TradePricing::UNAVAILABLE_PRICE {
|
||||
let actual_cost = calculate_material_cost(&result, &eqset.read(), e);
|
||||
add(
|
||||
&mut result.get_list_by_path_mut(&e.output),
|
||||
|
Loading…
Reference in New Issue
Block a user