@@ -28,13 +28,13 @@ public class EndCondition
2828 public static EndCondition TrilemmaWin = new EndCondition ( 25 , new Color ( 209f / 255f , 63f / 255f , 138f / 255f ) , "trilemma" , 0 , Module . CustomGameMode . Standard ) ;
2929 public static EndCondition SantaWin = new EndCondition ( 26 , Roles . NeutralRoles . SantaClaus . RoleColor , "santa" , 4 , Module . CustomGameMode . Standard ) ;
3030
31- public static EndCondition NobodyWin = new EndCondition ( 48 , new Color ( 72f / 255f , 78f / 255f , 84f / 255f ) , "nobody" , 0 , Module . CustomGameMode . All ) . SetNoBodyWin ( true ) ;
32- public static EndCondition NobodySkeldWin = new EndCondition ( 49 , new Color ( 72f / 255f , 78f / 255f , 84f / 255f ) , "nobody.skeld" , 32 , Module . CustomGameMode . All ) . SetNoBodyWin ( true ) ;
33- public static EndCondition NobodyMiraWin = new EndCondition ( 50 , new Color ( 72f / 255f , 78f / 255f , 84f / 255f ) , "nobody.mira" , 32 , Module . CustomGameMode . All ) . SetNoBodyWin ( true ) ;
34- public static EndCondition NobodyPolusWin = new EndCondition ( 51 , new Color ( 72f / 255f , 78f / 255f , 84f / 255f ) , "nobody.polus" , 32 , Module . CustomGameMode . All ) . SetNoBodyWin ( true ) ;
35- public static EndCondition NobodyAirshipWin = new EndCondition ( 52 , new Color ( 72f / 255f , 78f / 255f , 84f / 255f ) , "nobody.airship" , 32 , Module . CustomGameMode . All ) . SetNoBodyWin ( true ) ;
31+ public static EndCondition NobodyWin = new EndCondition ( 48 , new Color ( 72f / 255f , 78f / 255f , 84f / 255f ) , "nobody" , 0 , Module . CustomGameMode . ActuallyAll ) . SetNoBodyWin ( true ) ;
32+ public static EndCondition NobodySkeldWin = new EndCondition ( 49 , new Color ( 72f / 255f , 78f / 255f , 84f / 255f ) , "nobody.skeld" , 32 , Module . CustomGameMode . ActuallyAll ) . SetNoBodyWin ( true ) ;
33+ public static EndCondition NobodyMiraWin = new EndCondition ( 50 , new Color ( 72f / 255f , 78f / 255f , 84f / 255f ) , "nobody.mira" , 32 , Module . CustomGameMode . ActuallyAll ) . SetNoBodyWin ( true ) ;
34+ public static EndCondition NobodyPolusWin = new EndCondition ( 51 , new Color ( 72f / 255f , 78f / 255f , 84f / 255f ) , "nobody.polus" , 32 , Module . CustomGameMode . ActuallyAll ) . SetNoBodyWin ( true ) ;
35+ public static EndCondition NobodyAirshipWin = new EndCondition ( 52 , new Color ( 72f / 255f , 78f / 255f , 84f / 255f ) , "nobody.airship" , 32 , Module . CustomGameMode . ActuallyAll ) . SetNoBodyWin ( true ) ;
3636
37- public static EndCondition NoGame = new EndCondition ( 64 , new Color ( 72f / 255f , 78f / 255f , 84f / 255f ) , "noGame" , 0 , Module . CustomGameMode . All ) . SetNoBodyWin ( true ) ;
37+ public static EndCondition NoGame = new EndCondition ( 64 , new Color ( 72f / 255f , 78f / 255f , 84f / 255f ) , "noGame" , 0 , Module . CustomGameMode . ActuallyAll ) . SetNoBodyWin ( true ) ;
3838
3939 public static EndCondition PavlovWin = new EndCondition ( 128 , Roles . NeutralRoles . Pavlov . RoleColor , "pavlov" , 1 , Module . CustomGameMode . Standard ) ;
4040 public static EndCondition MoriartyWin = new EndCondition ( 129 , Roles . NeutralRoles . Moriarty . RoleColor , "moriarty" , 1 , Module . CustomGameMode . Standard ) ;
@@ -49,6 +49,8 @@ public class EndCondition
4949 public static EndCondition PuppeteerWin = new EndCondition ( 138 , Roles . NeutralRoles . Puppeteer . RoleColor , "puppeteer" , 1 , Module . CustomGameMode . Standard ) ;
5050 public static EndCondition YellowTeamWin = new EndCondition ( 139 , Roles . BattleRoles . YellowTeam . RoleColor , "yellowTeam" , 1 , Module . CustomGameMode . Battle ) ;
5151 public static EndCondition GreenTeamWin = new EndCondition ( 140 , Roles . BattleRoles . GreenTeam . RoleColor , "greenTeam" , 1 , Module . CustomGameMode . Battle ) ;
52+ public static EndCondition InfectedWin = new EndCondition ( 141 , Palette . ImpostorRed , "infected" , 1 , Module . CustomGameMode . VirusCrisis ) ;
53+ public static EndCondition SurvivalWin = new EndCondition ( 142 , Palette . CrewmateBlue , "survival" , 1 , Module . CustomGameMode . VirusCrisis ) ;
5254
5355 public static HashSet < EndCondition > AllEnds = new HashSet < EndCondition > ( ) {
5456 CrewmateWinByVote , CrewmateWinByTask , CrewmateWinDisconnect ,
@@ -57,7 +59,7 @@ public class EndCondition
5759 JesterWin , JackalWin , ArsonistWin , EmpiricWin , PaparazzoWin , VultureWin , SpectreWin , SantaWin ,
5860 LoversWin , TrilemmaWin , AvengerWin ,
5961 NoGame , NobodyWin , NobodySkeldWin , NobodyMiraWin , NobodyPolusWin , NobodyAirshipWin ,
60- PavlovWin , MoriartyWin , MoriartyWinByKillHolmes , CascrubinterWin , GuesserWin , YandereWin , WerewolfWin , ChallengerWin , OracleWin , GhostWin , PuppeteerWin , YellowTeamWin , GreenTeamWin
62+ PavlovWin , MoriartyWin , MoriartyWinByKillHolmes , CascrubinterWin , GuesserWin , YandereWin , WerewolfWin , ChallengerWin , OracleWin , GhostWin , PuppeteerWin , YellowTeamWin , GreenTeamWin , InfectedWin , SurvivalWin ,
6163 } ;
6264
6365 public static EndCondition GetEndCondition ( GameOverReason gameOverReason )
@@ -749,6 +751,9 @@ public class PlayerStatistics
749751 public int AliveYellowTeam ;
750752 public int AliveGreenTeam ;
751753
754+ public int AliveInfected ;
755+ public int AliveSurvivals ;
756+
752757 public bool IsValid ;
753758
754759 //
@@ -821,6 +826,9 @@ public PlayerStatistics(ShipStatus __instance)
821826 AliveYellowTeam = 0 ;
822827 AliveGreenTeam = 0 ;
823828
829+ AliveInfected = 0 ;
830+ AliveSurvivals = 0 ;
831+
824832 Roles . Side side ;
825833
826834
@@ -1093,6 +1101,8 @@ public PlayerStatistics(ShipStatus __instance)
10931101 AliveOracle = GetAlivePlayers ( Roles . Side . Oracle ) ;
10941102 AliveYellowTeam = GetAlivePlayers ( Roles . Side . YellowTeam ) ;
10951103 AliveGreenTeam = GetAlivePlayers ( Roles . Side . GreenTeam ) ;
1104+ AliveInfected = GetAlivePlayers ( Roles . Side . Infected ) ;
1105+ AliveSurvivals = GetAlivePlayers ( Roles . Side . Survival ) ;
10961106
10971107 if ( ! Roles . Roles . Lover . loversAsIndependentSideOption . getBool ( ) )
10981108 {
0 commit comments