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

Show skill that can be learned in university on right click

As in title. Now if player has already visited university before, game
will show list of skills that can be learned in this university on right
click
This commit is contained in:
Ivan Savenko
2025-07-20 16:25:50 +03:00
parent 7fcb0246fb
commit fe2a981ddf
4 changed files with 29 additions and 2 deletions

View File

@@ -65,6 +65,8 @@ public:
std::vector<TradeItemBuy> availableItemsIds(EMarketMode mode) const override;
void onHeroVisit(IGameEventCallback & gameEvents, const CGHeroInstance * h) const override; //open window
std::vector<Component> getPopupComponents(PlayerColor player) const override;
bool wasVisited (PlayerColor player) const override;
template <typename Handler> void serialize(Handler &h)
{