MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / getSpellConfigInt32

Method getSpellConfigInt32

source/utils/ConfigManager.cpp:1495–1505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1493}
1494
1495int32_t ConfigManager::getSpellConfigInt32(const std::string& param) const
1496{
1497 auto it = mSpellConfig.find(param);
1498 if(it == mSpellConfig.end())
1499 {
1500 OD_LOG_ERR("Unknown parameter param=" + param);
1501 return 0;
1502 }
1503
1504 return Helper::toInt(it->second);
1505}
1506
1507double ConfigManager::getSpellConfigDouble(const std::string& param) const
1508{

Callers 15

checkSpellCastMethod · 0.80
castSpellMethod · 0.80
checkSpellCastMethod · 0.80
castSpellMethod · 0.80
checkSpellCastMethod · 0.80
castSpellMethod · 0.80
SpellEyeEvilMethod · 0.80
checkSpellCastMethod · 0.80
castSpellMethod · 0.80
SpellCallToWarMethod · 0.80
checkSpellCastMethod · 0.80
castSpellMethod · 0.80

Calls 1

toIntFunction · 0.85

Tested by

no test coverage detected