@@ -226,17 +226,22 @@ void CheckDummy(int i)
226226 Assert . That ( total , Is . GreaterThan ( 3 ) ) ;
227227
228228 // Check the nukie commander passed basic training and figured out how to breathe.
229- var totalSeconds = 30 ;
230- var totalTicks = ( int ) Math . Ceiling ( totalSeconds / server . Timing . TickPeriod . TotalSeconds ) ;
231- var increment = 5 ;
232- var resp = entMan . GetComponent < RespiratorComponent > ( player ) ;
233- var damage = entMan . GetComponent < DamageableComponent > ( player ) ;
234- for ( var tick = 0 ; tick < totalTicks ; tick += increment )
229+ // Starlight edit Start: Who needs to breathe anyway?
230+ if ( entMan . TryGetComponent < RespiratorComponent > ( player , out var resp ) )
235231 {
236- await pair . RunTicksSync ( increment ) ;
237- Assert . That ( resp . SuffocationCycles , Is . LessThanOrEqualTo ( resp . SuffocationCycleThreshold ) ) ;
238- Assert . That ( damage . TotalDamage , Is . EqualTo ( FixedPoint2 . Zero ) ) ;
232+ var totalSeconds = 30 ;
233+ var totalTicks = ( int ) Math . Ceiling ( totalSeconds / server . Timing . TickPeriod . TotalSeconds ) ;
234+ var increment = 5 ;
235+ // var resp = entMan.GetComponent<RespiratorComponent>(player);
236+ var damage = entMan . GetComponent < DamageableComponent > ( player ) ;
237+ for ( var tick = 0 ; tick < totalTicks ; tick += increment )
238+ {
239+ await pair . RunTicksSync ( increment ) ;
240+ Assert . That ( resp . SuffocationCycles , Is . LessThanOrEqualTo ( resp . SuffocationCycleThreshold ) ) ;
241+ Assert . That ( damage . TotalDamage , Is . EqualTo ( FixedPoint2 . Zero ) ) ;
242+ }
239243 }
244+ // Starlight edit End
240245
241246 // Check that the round does not end prematurely when agents are deleted in the outpost
242247 var nukies = dummyEnts . Where ( entMan . HasComponent < NukeOperativeComponent > ) . Append ( player ) . ToArray ( ) ;
0 commit comments