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

Method handleFirstTurn

source/ai/KeeperAI.cpp:882–890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

880}
881
882void KeeperAI::handleFirstTurn()
883{
884 Seat* seat = mPlayer.getSeat();
885 // We set the skills to research. We start with pending skills to not modify research
886 // order if it was already set in the level
887 std::vector<SkillType> skills = seat->getSkillPending();
888 SkillManager::buildRandomPendingSkillsForSeat(skills, seat);
889 seat->setSkillTree(skills);
890}

Callers

nothing calls this directly

Calls 2

setSkillTreeMethod · 0.80
getSeatMethod · 0.45

Tested by

no test coverage detected