bug fix (missed value multiplication)
This commit is contained in:
parent
0d721f8fb4
commit
0004324b4c
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ impl Harvestable for Field {
|
||||||
match self.wilted {
|
match self.wilted {
|
||||||
false => {
|
false => {
|
||||||
self.wilted = true;
|
self.wilted = true;
|
||||||
Ok(self.t1_seeds as f64 * config.seed_lifeforce.t1 + self.t2_seeds as f64 * config.seed_lifeforce.t2 + self.t3_seeds as f64 * config.seed_lifeforce.t3 + self.t4_seeds as f64 * config.seed_lifeforce.t4)
|
Ok((self.t1_seeds as f64 * config.seed_lifeforce.t1 + self.t2_seeds as f64 * config.seed_lifeforce.t2 + self.t3_seeds as f64 * config.seed_lifeforce.t3 + self.t4_seeds as f64 * config.seed_lifeforce.t4) * config.lifeforce_value.from_color(&self.color))
|
||||||
},
|
},
|
||||||
true => Err("cannot harvest wilted crop")
|
true => Err("cannot harvest wilted crop")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue