2-24-16 build changes
This commit is contained in:
@@ -25,13 +25,13 @@ public partial class DebugInfo : Control
|
||||
_map.FloorLoaded += _map_FloorLoaded;
|
||||
_gameRepo.EnemyDied += _gameRepo_EnemyDied;
|
||||
_player.PlayerDied += _player_PlayerDied;
|
||||
DeathCount.Text = _game.QuestData.DeathCount.ToString();
|
||||
}
|
||||
|
||||
private void _gameRepo_EnemyDied(IEnemy obj) => EnemyCount.Text = (EnemyCount.Text.ToInt() - 1).ToString();
|
||||
|
||||
private void _map_FloorLoaded()
|
||||
{
|
||||
DeathCount.Text = _game.QuestData.DeathCount.ToString();
|
||||
MapName.Text = _map.CurrentFloor.SceneFilePath.GetFile().TrimSuffix(".tscn");
|
||||
EnemyCount.Text = _map.CurrentFloor.GetChild(0).GetChildren().OfType<IDungeonRoom>().Select(x => x.GetChildren().OfType<IEnemy>()).Count().ToString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user