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:
+1
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user