mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Workaround for new artifacts r-click descriptions, they will be displayed in same way as OH3 artifacts.
This commit is contained in:
parent
080e037c54
commit
dad5771a09
@ -4388,7 +4388,13 @@ void CArtPlace::setArtifact(const CArtifactInstance *art)
|
||||
{
|
||||
image->enable();
|
||||
image->setFrame(locked ? GameConstants::ID_LOCK : art->artType->iconIndex);
|
||||
text = ourArt->artType->Description();
|
||||
|
||||
std::string artDesc = ourArt->artType->Description();
|
||||
if (vstd::contains (artDesc, '{'))
|
||||
text = artDesc;
|
||||
else
|
||||
text = '{' + ourArt->artType->Name() + "}\n\n" + artDesc; //workaround for new artifacts with single name, turns it to H3-style
|
||||
|
||||
if(art->artType->id == 1) //spell scroll
|
||||
{
|
||||
// we expect scroll description to be like this: This scroll contains the [spell name] spell which is added into your spell book for as long as you carry the scroll.
|
||||
|
Loading…
Reference in New Issue
Block a user