mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Implemented optional descriptions for market map objects
It is now possible to define description of an object with 'market' handler that will be shown on right-clicking the object. Similarly, added description to right-click popup to Hill Fort.
This commit is contained in:
@@ -118,6 +118,7 @@ protected:
|
||||
JsonNode predefinedOffer;
|
||||
int marketEfficiency;
|
||||
|
||||
std::string description;
|
||||
std::string title;
|
||||
std::string speech;
|
||||
|
||||
@@ -127,6 +128,7 @@ public:
|
||||
void randomizeObject(CGMarket * object, vstd::RNG & rng) const override;
|
||||
|
||||
const std::set<EMarketMode> & availableModes() const;
|
||||
bool hasDescription() const;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user