mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-29 00:41:38 +02:00
Moved artifact-related text to CArtifact class.
This commit is contained in:
@ -173,6 +173,10 @@ void MetaString::getLocalString(const std::pair<ui8,ui32> &txt, std::string &dst
|
||||
{
|
||||
dst = VLC->arth->artifacts[ser]->Description();
|
||||
}
|
||||
else if (type == ART_EVNTS)
|
||||
{
|
||||
dst = VLC->arth->artifacts[ser]->EventText();
|
||||
}
|
||||
else
|
||||
{
|
||||
std::vector<std::string> *vec;
|
||||
@ -202,9 +206,6 @@ void MetaString::getLocalString(const std::pair<ui8,ui32> &txt, std::string &dst
|
||||
case ADVOB_TXT:
|
||||
vec = &VLC->generaltexth->advobtxt;
|
||||
break;
|
||||
case ART_EVNTS:
|
||||
vec = &VLC->generaltexth->artifEvents;
|
||||
break;
|
||||
case SEC_SKILL_NAME:
|
||||
vec = &VLC->generaltexth->skillName;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user