refonte du système de chunk et correction de bug/traduction

This commit is contained in:
2026-03-01 18:24:46 +01:00
parent d25d614c06
commit 37cd8a54dd
25 changed files with 470 additions and 375 deletions

View File

@@ -88,13 +88,8 @@ func can_use(player : Player, zone : Player.ActionZone) -> bool:
for area in zone.get_affected_areas():
if area is Plant:
is_there_a_plant_here = true
var is_there_contamination_in_zone = false
for tile in zone.get_tiles():
if not player.region.decontamination_layer.is_decontamined(tile):
is_there_contamination_in_zone = true
return not is_there_a_plant_here and not is_there_contamination_in_zone
return not is_there_a_plant_here and player.region.is_coords_decontaminated(zone.get_tiles())
func use(player : Player, zone : Player.ActionZone) -> bool:
if player.region == null: