| 45 | } |
| 46 | |
| 47 | AiSpeech AiDatabase::shipStatus(unsigned shipLevel) const { |
| 48 | // Find the first open speech set at this ship level or below. |
| 49 | auto i = m_shipStatus.upper_bound(shipLevel); |
| 50 | if (i != m_shipStatus.begin() && (--i)->first <= shipLevel) |
| 51 | return i->second; |
| 52 | |
| 53 | return {}; |
| 54 | } |
| 55 | |
| 56 | AiSpeech AiDatabase::noCrewSpeech() const { |
| 57 | return m_noCrewSpeech; |