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

Method stat

source/game/StarStatistics.cpp:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37Json Statistics::stat(String const& name, Json def) const {
38 if (m_stats.contains(name))
39 return m_stats.get(name).value;
40 return def;
41}
42
43Maybe<String> Statistics::statType(String const& name) const {
44 if (m_stats.contains(name))

Callers 8

powerMultiplierMethod · 0.45
protectionMethod · 0.45
damageSourcesMethod · 0.45
powerMultiplierMethod · 0.45
damageSourcesMethod · 0.45
statisticMethod · 0.45
updateMethod · 0.45
StatMethod · 0.45

Calls 2

containsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected