Dev Demo
* 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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user