Fix the movement amount calculation

This commit is contained in:
2022-07-17 17:01:38 +01:00
parent a0ddbdae43
commit 6b2007ee1a
3 changed files with 14 additions and 3 deletions

View File

@ -53,6 +53,13 @@ func _physics_process(delta):
yield(get_tree().create_timer(0.1), "timeout") #TODO BAD WORKAROUND
$UI/DiceView.selected = false
$UI/CardView.selected = true
# if all 3 parts are done, select the DiceView again
if ($UI/DiceView.selected == false and
$UI/CardView.selected == false and
self.player_to_move == false):
$UI/DiceView.selected = true
func player_movement_input():