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

Method consoleAskUnlockSkills

source/gamemap/GameMap.cpp:2773–2789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2771}
2772
2773void GameMap::consoleAskUnlockSkills()
2774{
2775 for(Seat* seat : getSeats())
2776 {
2777 for(uint32_t i = 0; i < static_cast<uint32_t>(SkillType::countSkill); ++i)
2778 {
2779 SkillType skill = static_cast<SkillType>(i);
2780 if(skill == SkillType::nullSkillType)
2781 continue;
2782
2783 if(seat->isSkillDone(skill))
2784 continue;
2785
2786 seat->addSkill(skill);
2787 }
2788 }
2789}
2790
2791Creature* GameMap::getWorkerForPathFinding(Seat* seat)
2792{

Callers 1

cSrvUnlockSkillsFunction · 0.80

Calls 2

isSkillDoneMethod · 0.80
addSkillMethod · 0.80

Tested by

no test coverage detected