mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
skill names and descriptions are fully managed by CSkillHandler
This commit is contained in:
@@ -37,11 +37,3 @@ void CGameInfo::setFromLib()
|
||||
skillh = VLC->skillh;
|
||||
objtypeh = VLC->objtypeh;
|
||||
}
|
||||
|
||||
const std::string & CGameInfo::skillInfo(int skill, int level) const
|
||||
{
|
||||
const std::string & desc = (*skillh)[SecondarySkill(skill)]->getDescription(level);
|
||||
if(desc.size() > 0)
|
||||
return desc;
|
||||
return generaltexth->skillInfoTexts[skill][level-1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user