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

Method getSpellConfigDouble

source/utils/ConfigManager.cpp:1507–1517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1505}
1506
1507double ConfigManager::getSpellConfigDouble(const std::string& param) const
1508{
1509 auto it = mSpellConfig.find(param);
1510 if(it == mSpellConfig.end())
1511 {
1512 OD_LOG_ERR("Unknown parameter param=" + param);
1513 return 0.0;
1514 }
1515
1516 return Helper::toDouble(it->second);
1517}
1518
1519int32_t ConfigManager::getSkillPoints(const std::string& res) const
1520{

Callers 7

castSpellMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80

Calls 1

toDoubleFunction · 0.85

Tested by

no test coverage detected