1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Added popup for keymasters/border guards similar to teleporters

This commit is contained in:
Ivan Savenko
2025-01-05 23:14:13 +00:00
parent 018503c5e8
commit 6d0dc9c5bb
10 changed files with 116 additions and 29 deletions

View File

@@ -803,6 +803,11 @@ std::string CGKeys::getObjectName() const
return VLC->generaltexth->tentColors[subID.getNum()] + " " + CGObjectInstance::getObjectName();
}
std::string CGKeys::getObjectDescription(PlayerColor player) const
{
return visitedTxt(wasMyColorVisited(player));
}
bool CGKeymasterTent::wasVisited (PlayerColor player) const
{
return wasMyColorVisited (player);