tjc12821

Untitled

Mar 3rd, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. int warlock_t::imps_spawned_during( timespan_t period )
  2. {
  3.   int count = 0;
  4.  
  5.   for ( auto ev : wild_imp_spawns )
  6.   {
  7.     timespan_t ex = debug_cast<actions::imp_delay_event_t*>( ev )->expected_time();
  8.  
  9.     if ( ex < period )
  10.       count++;
  11.   }
  12.  
  13.   return count;
  14. }
Add Comment
Please, Sign In to add comment