Skip to content

Commit

Permalink
revert: combat_manager
Browse files Browse the repository at this point in the history
  • Loading branch information
realstealthninja committed Jul 19, 2024
1 parent be8003c commit 97bd205
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scripts/combat_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,11 @@ func turn_start_player():
var direction: Vector2 = (path - player.position).normalized()
player.move_grid(direction)
await get_tree().create_timer(0.35).timeout
PlayerProperties.actions -= 1
print(PlayerProperties.actions)

func _physics_process(_delta):
if TURNORDER == TURN.PLAYER:
if PlayerProperties.actions != 0:
turn_start_player()
else:
end_turn()
else:
turn_start_npc()

Expand Down

0 comments on commit 97bd205

Please sign in to comment.