|
|
|
@ -194,13 +194,14 @@ func _process(delta): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _on_EndTurnButton_pressed(): |
|
|
|
|
if turn.layer == "country": |
|
|
|
|
for army in turn.object.armies: |
|
|
|
|
army.entity.current_turn_movable = true |
|
|
|
|
for boat in turn.object.boats: |
|
|
|
|
boat.entity.current_turn_movable = true |
|
|
|
|
turn.object.compute_balance() |
|
|
|
|
$Grid.selected_thing = null |
|
|
|
|
if turn_id != -1: |
|
|
|
|
if turn.layer == "country": |
|
|
|
|
for army in turn.object.armies: |
|
|
|
|
army.entity.current_turn_movable = true |
|
|
|
|
for boat in turn.object.boats: |
|
|
|
|
boat.entity.current_turn_movable = true |
|
|
|
|
turn.object.compute_balance() |
|
|
|
|
$Grid.selected_thing = null |
|
|
|
|
|
|
|
|
|
turn_id += 1 |
|
|
|
|
if turn_id == len(turns): turn_id = 0 |
|
|
|
|