MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / aiRatingToLevel

Function aiRatingToLevel

src/OpenLoco/src/Objects/CompetitorObject.cpp:131–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 };
130
131 [[nodiscard]] StringId aiRatingToLevel(const uint8_t rating)
132 {
133 return aiRatingToLevelArray[std::min(rating, static_cast<uint8_t>(aiRatingToLevelArray.size()))];
134 }
135}

Callers 2

drawAIdetailsFunction · 0.85
drawDescriptionMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected