1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Support for objects from mods as campaign scenario bonuses

This commit is contained in:
Ivan Savenko
2025-05-29 17:24:45 +03:00
parent 87d5347e50
commit 2bf951a4cf
11 changed files with 110 additions and 20 deletions

View File

@@ -102,7 +102,6 @@ std::string CArtifact::getModScope() const
void CArtifact::registerIcons(const IconRegistar & cb) const
{
cb(getIconIndex(), 0, "ARTIFACT", image);
cb(getIconIndex(), 0, "ARTIFACTLARGE", large);
}
ArtifactID CArtifact::getId() const
@@ -359,7 +358,7 @@ void CArtifact::setImage(int32_t newIconIndex, const std::string & newImage, con
{
iconIndex = newIconIndex;
image = newImage;
large = newLargeImage;
scenarioBonus = newLargeImage;
}