| 24 | } |
| 25 | |
| 26 | float 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 | |
| 32 | void StatSet::setStatBaseValue(String const& statName, float value) { |
| 33 | if (auto s = m_baseStats.ptr(statName)) { |