* pleins de choses et j'ai pas le temps
* mais en gros
* le détecteur détecte les cellules
* ajout du sprite de Demeter
* ajout d'une limite dans la map
* la recharge ne peut plus de nouveau être utilisée après la fin de la région
This commit is contained in:
2026-05-29 16:35:42 +02:00
parent 8b794ee967
commit 79357982d0
41 changed files with 214 additions and 135 deletions

View File

@@ -7,7 +7,7 @@ func _ready():
func update():
%EnergyTextContainer.modulate = (
Color.WHITE if region.data.charges > 0
Color.WHITE if region.data.charges > 0 and region.data.state == RegionData.State.IN_PROGRESS
else Color.RED )
%EnergyText.text = str(region.data.charges)
if not region.data.pass_day_ended.is_connected(update):
@@ -17,7 +17,7 @@ func can_interact(_p : Player) -> bool:
return (
region != null
and region.data
and region.data.charges > 0
and region.data.charges > 0 and region.data.state == RegionData.State.IN_PROGRESS
)
func interact(_p: Player) -> bool: