1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Pandora and events work as rewardable object

This commit is contained in:
nordsoft
2023-09-15 15:29:41 +02:00
parent 06f01c3b82
commit c1c13cfafb
7 changed files with 236 additions and 475 deletions

View File

@@ -162,11 +162,8 @@ public:
template <typename Handler> void serialize(Handler &h, const int version)
{
h & static_cast<CArmedInstance&>(*this);
h & static_cast<CRewardableObject&>(*this);
h & static_cast<IQuestObject&>(*this);
//h & rewardType;
//h & rID;
//h & rVal;
h & seerName;
}
protected:
@@ -181,7 +178,6 @@ class DLL_LINKAGE CGQuestGuard : public CGSeerHut
{
public:
void init(CRandomGenerator & rand) override;
void completeQuest() const override;
template <typename Handler> void serialize(Handler &h, const int version)
{