(profile: CropProfile, suitabilityScore: number, healthScore: number)
| 1220 | currentBoost |
| 1221 | ); |
| 1222 | } |
| 1223 | |
| 1224 | function formatYield(profile: CropProfile, suitabilityScore: number, healthScore: number) { |
| 1225 | const multiplier = clamp(0.78 + suitabilityScore * 0.22 + healthScore * 0.12, 0.75, 1.25); |
| 1226 | return `${roundTo(profile.baseYield * multiplier)} t/ha`; |
| 1227 | } |
| 1228 |
no test coverage detected