mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Added dummy message for artifacts that don't have pick-up texts.
This commit is contained in:
parent
e5783801af
commit
f6acc8c77b
@ -3818,7 +3818,16 @@ void CGArtifact::onHeroVisit( const CGHeroInstance * h ) const
|
||||
if(message.length())
|
||||
iw.text << message;
|
||||
else
|
||||
iw.text << std::pair<ui8, ui32> (MetaString::ART_EVNTS, subID);
|
||||
{
|
||||
if (VLC->arth->artifacts[subID]->EventText().size())
|
||||
iw.text << std::pair<ui8, ui32> (MetaString::ART_EVNTS, subID);
|
||||
else //fix for mod artifacts with no event text
|
||||
{
|
||||
iw.text.addTxt (MetaString::ADVOB_TXT, 183); //% has found treasure
|
||||
iw.text.addReplacement (h->name);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
break;
|
||||
case Obj::SPELL_SCROLL:
|
||||
|
Loading…
Reference in New Issue
Block a user