diff --git a/.gitignore b/.gitignore index 4ce6fdd..342c0fb 100644 --- a/.gitignore +++ b/.gitignore @@ -337,4 +337,5 @@ ASALocalRun/ .localhistory/ # BeatPulse healthcheck temp database -healthchecksdb \ No newline at end of file +healthchecksdb +.vs diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite deleted file mode 100644 index 45dadfe..0000000 Binary files a/.vs/slnx.sqlite and /dev/null differ diff --git a/Jester/GameEventListener.cs b/Jester/GameEventListener.cs index c32afc2..2c00df9 100644 --- a/Jester/GameEventListener.cs +++ b/Jester/GameEventListener.cs @@ -190,7 +190,7 @@ public void OnGameStarted(IGameStartedEvent e) // This prints out for all players if they are impostor or crewmate. foreach (var player in e.Game.Players) { - if (JesterGames[e.Game.Code].JesterOn && (player.Character.PlayerInfo.HatId == 27 || player.Character.PlayerInfo.HatId == 84)) + if (JesterGames[e.Game.Code].JesterOn && (player.Character.PlayerInfo.Hat == HatType.ElfHat || player.Character.PlayerInfo.Hat == HatType.DumSticker)) { Task.Run(async () => await OffWithYourHat(player).ConfigureAwait(false)); } @@ -263,7 +263,7 @@ private async Task TurnTheTables(IPlayerExileEvent e) if (!player.Character.PlayerInfo.IsDead && player.Character.PlayerInfo.IsImpostor) { _logger.LogInformation($"- {player.Character.PlayerInfo.PlayerName} is murdered by plugin."); - await player.Character.SetMurderedByAsync(player); + await player.Character.MurderPlayerAsync(player.Character); } } diff --git a/Jester/Jester.csproj b/Jester/Jester.csproj index 563f21f..e201df6 100644 --- a/Jester/Jester.csproj +++ b/Jester/Jester.csproj @@ -5,7 +5,7 @@ - +