1
0
mirror of https://github.com/osmarks/ewo3.git synced 2026-05-30 01:12:08 +00:00

fix scaling constant, oops

This commit is contained in:
osmarks
2026-03-15 12:35:26 +00:00
parent bb2a102573
commit 79d9c1533f
+1 -1
View File
@@ -402,7 +402,7 @@ async fn game_tick(state: &mut GameState) -> Result<()> {
}
let original_size = plant.current_size;
plant.current_size += plant.genome.base_growth_rate(soil_nutrients, water, temperature, salt, terrain) * PLANT_GROWTH_SCALE * plant.current_size.max(0.1).powf(-0.25); // allometric scaling law
plant.current_size += plant.genome.base_growth_rate(soil_nutrients, water, temperature, salt, terrain) * PLANT_GROWTH_SCALE * plant.current_size.max(0.1).powf(0.75); // allometric scaling law (corrected (probably))
let difference = (plant.current_size - original_size).max(0.0);
if plant.can_reproduce() {