@@ -65,10 +65,10 @@ internal class PlayerRoleInfo {
6565
6666 [ HarmonyPatch ( typeof ( AmongUsClient ) , nameof ( AmongUsClient . OnGameEnd ) ) ]
6767 public static class OnGameEndPatch {
68- public static GameOverReason gameOverReason = GameOverReason . HumansByTask ;
68+ public static GameOverReason gameOverReason = GameOverReason . CrewmatesByTask ;
6969 public static void Prefix ( AmongUsClient __instance , [ HarmonyArgument ( 0 ) ] ref EndGameResult endGameResult ) {
7070 gameOverReason = endGameResult . GameOverReason ;
71- if ( ( int ) endGameResult . GameOverReason >= 10 ) endGameResult . GameOverReason = GameOverReason . ImpostorByKill ;
71+ if ( ( int ) endGameResult . GameOverReason >= 10 ) endGameResult . GameOverReason = GameOverReason . ImpostorsByKill ;
7272
7373 // Reset zoomed out ghosts
7474 Helpers . toggleZoom ( reset : true ) ;
@@ -322,27 +322,27 @@ public static void Postfix(EndGameManager __instance) {
322322 textRenderer . text = "最后一名船员断开连接" ;
323323 textRenderer . color = Color . red ;
324324 break ;
325- case GameOverReason . ImpostorByKill :
325+ case GameOverReason . ImpostorsByKill :
326326 textRenderer . text = "内鬼胜利 - 杀光光" ;
327327 textRenderer . color = Color . red ;
328328 break ;
329- case GameOverReason . ImpostorBySabotage :
329+ case GameOverReason . ImpostorsBySabotage :
330330 textRenderer . text = "内鬼胜利 - 破坏飞船" ;
331331 textRenderer . color = Color . red ;
332332 break ;
333- case GameOverReason . ImpostorByVote :
333+ case GameOverReason . ImpostorsByVote :
334334 textRenderer . text = "内鬼胜利 - 通过投票,猜测或玩家断连" ;
335335 textRenderer . color = Color . red ;
336336 break ;
337- case GameOverReason . HumansByTask :
337+ case GameOverReason . CrewmatesByTask :
338338 textRenderer . text = "船员胜利 - 任务全部完成" ;
339339 textRenderer . color = Color . white ;
340340 break ;
341- case GameOverReason . HumansDisconnect :
341+ case GameOverReason . CrewmateDisconnect :
342342 textRenderer . text = "船员胜利 - 没有内鬼(和带刀中立)了!" ;
343343 textRenderer . color = Color . white ;
344344 break ;
345- case GameOverReason . HumansByVote :
345+ case GameOverReason . CrewmatesByVote :
346346 textRenderer . text = "船员胜利 - 内鬼(和带刀中立)被投完了!" ;
347347 textRenderer . color = Color . white ;
348348 break ;
@@ -480,7 +480,7 @@ private static bool CheckAndEndGameForTaskWin(ShipStatus __instance) {
480480 if ( HideNSeek . isHideNSeekGM && ! HideNSeek . taskWinPossible || PropHunt . isPropHuntGM ) return false ;
481481 if ( GameData . Instance . TotalTasks > 0 && GameData . Instance . TotalTasks <= GameData . Instance . CompletedTasks ) {
482482 //__instance.enabled = false;
483- GameManager . Instance . RpcEndGame ( GameOverReason . HumansByTask , false ) ;
483+ GameManager . Instance . RpcEndGame ( GameOverReason . CrewmatesByTask , false ) ;
484484 return true ;
485485 }
486486 return false ;
@@ -522,13 +522,13 @@ private static bool CheckAndEndGameForImpostorWin(ShipStatus __instance, PlayerS
522522 GameOverReason endReason ;
523523 switch ( GameData . LastDeathReason ) {
524524 case DeathReason . Exile :
525- endReason = GameOverReason . ImpostorByVote ;
525+ endReason = GameOverReason . ImpostorsByVote ;
526526 break ;
527527 case DeathReason . Kill :
528- endReason = GameOverReason . ImpostorByKill ;
528+ endReason = GameOverReason . ImpostorsByKill ;
529529 break ;
530530 default :
531- endReason = GameOverReason . ImpostorByVote ;
531+ endReason = GameOverReason . ImpostorsByVote ;
532532 break ;
533533 }
534534 GameManager . Instance . RpcEndGame ( endReason , false ) ;
@@ -540,24 +540,24 @@ private static bool CheckAndEndGameForImpostorWin(ShipStatus __instance, PlayerS
540540 private static bool CheckAndEndGameForCrewmateWin ( ShipStatus __instance , PlayerStatistics statistics ) {
541541 if ( HideNSeek . isHideNSeekGM && HideNSeek . timer <= 0 && ! HideNSeek . isWaitingTimer ) {
542542 //__instance.enabled = false;
543- GameManager . Instance . RpcEndGame ( GameOverReason . HumansByVote , false ) ;
543+ GameManager . Instance . RpcEndGame ( GameOverReason . CrewmatesByVote , false ) ;
544544 return true ;
545545 }
546546 if ( PropHunt . isPropHuntGM && PropHunt . timer <= 0 && PropHunt . timerRunning ) {
547- GameManager . Instance . RpcEndGame ( GameOverReason . HumansByVote , false ) ;
547+ GameManager . Instance . RpcEndGame ( GameOverReason . CrewmatesByVote , false ) ;
548548 return true ;
549549 }
550550 if ( statistics . TeamImpostorsAlive == 0 && statistics . TeamJackalAlive == 0 ) {
551551 //__instance.enabled = false;
552- GameManager . Instance . RpcEndGame ( GameOverReason . HumansByVote , false ) ;
552+ GameManager . Instance . RpcEndGame ( GameOverReason . CrewmatesByVote , false ) ;
553553 return true ;
554554 }
555555 return false ;
556556 }
557557
558558 private static void EndGameForSabotage ( ShipStatus __instance ) {
559559 //__instance.enabled = false;
560- GameManager . Instance . RpcEndGame ( GameOverReason . ImpostorBySabotage , false ) ;
560+ GameManager . Instance . RpcEndGame ( GameOverReason . ImpostorsBySabotage , false ) ;
561561 return ;
562562 }
563563
0 commit comments