fix et amélioration diverses

This commit is contained in:
2025-10-17 18:47:16 +02:00
parent 4a76cb5302
commit ceae7af589
6 changed files with 8 additions and 9 deletions

View File

@@ -44,7 +44,6 @@ func draw_random_zone(
var random_step = 1
var zone_radius = noise_image_size.x - random_step
print(get_value_surface(noise_image))
while get_value_surface(noise_image) > zone_max_surface:
zone_radius -= random_step
ImageTools.draw_circle(

View File

@@ -42,3 +42,5 @@ func use(player : Player, zone : Player.ActionZone) -> bool:
func harvest(p : Plant, player: Player):
player.play_sfx("harvest")
p.harvest()
if player.planet:
player.planet.update_garden_score()