mirror of
https://github.com/vcmi/vcmi.git
synced 2026-06-19 22:57:37 +02:00
getSourcesForSpell
This commit is contained in:
@@ -236,6 +236,12 @@ Bonus::Bonus(BonusDuration::Type Duration, BonusType Type, BonusSource Src, si32
|
||||
targetSourceType = BonusSource::OTHER;
|
||||
}
|
||||
|
||||
Bonus::Bonus(const Bonus & inst, const BonusSourceID & sourceId)
|
||||
: Bonus(inst)
|
||||
{
|
||||
sid = sourceId;
|
||||
}
|
||||
|
||||
std::shared_ptr<Bonus> Bonus::addPropagator(const TPropagatorPtr & Propagator)
|
||||
{
|
||||
propagator = Propagator;
|
||||
|
||||
@@ -86,6 +86,7 @@ struct DLL_LINKAGE Bonus : public std::enable_shared_from_this<Bonus>, public Se
|
||||
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, BonusValueType ValType);
|
||||
Bonus(const Bonus & inst, const BonusSourceID & sourceId);
|
||||
Bonus() = default;
|
||||
|
||||
template <typename Handler> void serialize(Handler &h)
|
||||
|
||||
@@ -120,7 +120,6 @@ public:
|
||||
virtual std::string bonusToString(const std::shared_ptr<Bonus>& bonus) const {return "";}; //description or bonus name
|
||||
virtual std::string nodeName() const;
|
||||
bool isHypothetic() const { return isHypotheticNode; }
|
||||
void setHypothetic(const bool hypothetic);
|
||||
|
||||
BonusList & getExportedBonusList();
|
||||
const BonusList & getExportedBonusList() const;
|
||||
|
||||
Reference in New Issue
Block a user