MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / shipStatus

Method shipStatus

source/game/StarAiDatabase.cpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47AiSpeech 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
56AiSpeech AiDatabase::noCrewSpeech() const {
57 return m_noCrewSpeech;

Callers 1

showStatusMethod · 0.80

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected