summaryrefslogtreecommitdiff
path: root/server/src/data/demands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/data/demands.rs')
-rw-r--r--server/src/data/demands.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/data/demands.rs b/server/src/data/demands.rs
index 3f4b839d..ecfad402 100644
--- a/server/src/data/demands.rs
+++ b/server/src/data/demands.rs
@@ -57,8 +57,8 @@ pub fn generate_demands(
};
let base_cost = match r {
- Recipe::Passive { duration, .. } => 2. + duration * 0.1,
- Recipe::Active { duration, .. } => 2. + duration,
+ Recipe::Passive { speed, .. } => 2. + (1. / speed) * 0.1,
+ Recipe::Active { speed, .. } => 2. + (1. / speed),
Recipe::Instant { .. } => 1.,
};