From 6cd810e065f4445d910cbe86b00be4a763b69fc9 Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Wed, 21 Sep 2022 15:19:04 +0300 Subject: [PATCH] fix showing "visited" message for Warrior's Tomb --- lib/mapObjects/CRewardableObject.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/mapObjects/CRewardableObject.cpp b/lib/mapObjects/CRewardableObject.cpp index 134f54b0c..34b57072d 100644 --- a/lib/mapObjects/CRewardableObject.cpp +++ b/lib/mapObjects/CRewardableObject.cpp @@ -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: