1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00
This commit is contained in:
Laserlicht
2025-07-08 21:47:03 +02:00
parent cf32f00472
commit 3b63b837cc
2 changed files with 3 additions and 2 deletions

View File

@@ -203,6 +203,7 @@ JsonNode Bonus::toJsonNode() const
root["updater"] = updater->toJsonNode();
if(propagator)
root["propagator"].String() = vstd::findKey(bonusPropagatorMap, propagator);
if(hidden)
root["hidden"].Bool() = hidden;
return root;
}

View File

@@ -75,7 +75,7 @@ struct DLL_LINKAGE Bonus : public std::enable_shared_from_this<Bonus>, public Se
MetaString description;
PlayerColor bonusOwner = PlayerColor::CANNOT_DETERMINE;
bool hidden;
bool hidden = false;
Bonus(BonusDuration::Type Duration, BonusType Type, BonusSource Src, si32 Val, BonusSourceID sourceID);
Bonus(BonusDuration::Type Duration, BonusType Type, BonusSource Src, si32 Val, BonusSourceID sourceID, BonusSubtypeID subtype);