mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Added support for daily income to flaggable objects
This commit is contained in:
@@ -34,6 +34,8 @@ void FlaggableInstanceConstructor::initTypeData(const JsonNode & config)
|
||||
VLC->generaltexth->registerString( config.getModScope(), visitMessageTextID, config["message"]);
|
||||
}
|
||||
}
|
||||
|
||||
dailyIncome = ResourceSet(config["dailyIncome"]);
|
||||
}
|
||||
|
||||
void FlaggableInstanceConstructor::initializeObject(FlaggableMapObject * flaggable) const
|
||||
@@ -50,4 +52,9 @@ const std::vector<std::shared_ptr<Bonus>> & FlaggableInstanceConstructor::getPro
|
||||
return providedBonuses;
|
||||
}
|
||||
|
||||
const ResourceSet & FlaggableInstanceConstructor::getDailyIncome() const
|
||||
{
|
||||
return dailyIncome;
|
||||
}
|
||||
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
|
||||
Reference in New Issue
Block a user