-------------------------------------------------------------------------------- Description: Sets swarmer count --------------------------------------------------------------------------------
| 982 | // Sets swarmer count |
| 983 | // -------------------------------------------------------------------------------- |
| 984 | void EveSwarm::SetCount( int count ) |
| 985 | { |
| 986 | while( m_count != count ) |
| 987 | { |
| 988 | if( m_count > count ) |
| 989 | { |
| 990 | RemoveSwarmer(); |
| 991 | } |
| 992 | else |
| 993 | { |
| 994 | AddSwarmer(); |
| 995 | } |
| 996 | m_targetIndex = TriRandInt( m_count ); |
| 997 | } |
| 998 | } |
| 999 | |
| 1000 | void EveSwarm::RegisterComponents() |
| 1001 | { |
no test coverage detected