1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

fix showing "visited" message for Warrior's Tomb

This commit is contained in:
Andrey Filipenkov 2022-09-21 15:19:04 +03:00
parent 8e1c88e8c5
commit 6cd810e065

View File

@ -850,17 +850,16 @@ void CGOnceVisitable::initObj(CRandomGenerator & rand)
case Obj::WARRIORS_TOMB:
{
onSelect.addTxt(MetaString::ADVOB_TXT, 161);
onVisited.addTxt(MetaString::ADVOB_TXT, 163);
info.resize(2);
info.resize(1);
loadRandomArtifact(rand, info[0], 30, 50, 25, 5);
Bonus bonus(Bonus::ONE_BATTLE, Bonus::MORALE, Bonus::OBJECT, -3, ID);
info[0].reward.bonuses.push_back(bonus);
info[1].reward.bonuses.push_back(bonus);
info[0].limiter.numOfGrants = 1;
info[0].message.addTxt(MetaString::ADVOB_TXT, 162);
info[0].message.addReplacement(VLC->arth->objects[info[0].reward.artifacts.back()]->getName());
info[1].message.addTxt(MetaString::ADVOB_TXT, 163);
}
break;
case Obj::WAGON: