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

Method statBaseValue

source/game/StarStatSet.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26float StatSet::statBaseValue(String const& statName) const {
27 if (auto s = m_baseStats.ptr(statName))
28 return *s;
29 throw StatusException::format("No such base stat '{}' in StatSet", statName);
30}
31
32void StatSet::setStatBaseValue(String const& statName, float value) {
33 if (auto s = m_baseStats.ptr(statName)) {

Callers 1

TESTFunction · 0.80

Calls 2

formatFunction · 0.50
ptrMethod · 0.45

Tested by 1

TESTFunction · 0.64