1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Message split for pandora box

This commit is contained in:
nordsoft
2023-09-17 18:02:24 +02:00
parent e3538f24ab
commit a517e6ad8e
6 changed files with 194 additions and 165 deletions

View File

@@ -33,6 +33,9 @@ protected:
bool wasVisitedBefore(const CGHeroInstance * contextHero) const;
void serializeJsonOptions(JsonSerializeFormat & handler) override;
virtual void grantRewardWithMessage(const CGHeroInstance * contextHero, int rewardIndex, bool markAsVisit) const;
virtual void selectRewardWthMessage(const CGHeroInstance * contextHero, const std::vector<ui32> & rewardIndeces, const MetaString & dialog) const;
public:
/// Visitability checks. Note that hero check includes check for hero owner (returns true if object was visited by player)