mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
fix
This commit is contained in:
@@ -203,6 +203,7 @@ JsonNode Bonus::toJsonNode() const
|
|||||||
root["updater"] = updater->toJsonNode();
|
root["updater"] = updater->toJsonNode();
|
||||||
if(propagator)
|
if(propagator)
|
||||||
root["propagator"].String() = vstd::findKey(bonusPropagatorMap, propagator);
|
root["propagator"].String() = vstd::findKey(bonusPropagatorMap, propagator);
|
||||||
|
if(hidden)
|
||||||
root["hidden"].Bool() = hidden;
|
root["hidden"].Bool() = hidden;
|
||||||
return root;
|
return root;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ struct DLL_LINKAGE Bonus : public std::enable_shared_from_this<Bonus>, public Se
|
|||||||
MetaString description;
|
MetaString description;
|
||||||
PlayerColor bonusOwner = PlayerColor::CANNOT_DETERMINE;
|
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);
|
||||||
Bonus(BonusDuration::Type Duration, BonusType Type, BonusSource Src, si32 Val, BonusSourceID sourceID, BonusSubtypeID subtype);
|
Bonus(BonusDuration::Type Duration, BonusType Type, BonusSource Src, si32 Val, BonusSourceID sourceID, BonusSubtypeID subtype);
|
||||||
|
|||||||
Reference in New Issue
Block a user