still attempting to allow enemies to handle their own animations. still a matter of improving performance and there's some issue when enemies reach rank 0?

This commit is contained in:
2026-06-24 03:00:23 -04:00
parent 8ae8ec3e58
commit 98ca292901
6 changed files with 84 additions and 86 deletions
+4 -13
View File
@@ -43,24 +43,15 @@ public partial class Main : Node
{
if(_turnController == _playerController)
{
ChangeTurn();
_playerController.EndTurn();
}
}
}
public async void ChangeTurn()
public void ChangeTurn()
{
if (_turnController != _playerController)
{
_turnController = _playerController;
await _playerController.StartTurn();
}
else
{
_turnController = _enemyController;
await _enemyController.StartTurn();
}
_turnController = _turnController == _playerController ? _enemyController : _playerController;
_turnController.StartTurn();
}
public void EndGame(PlayerController PLAYER)