1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00

map editor: check hero artifacts during mod assessment

This commit is contained in:
godric3 2024-12-03 21:17:04 +01:00
parent 896a148a7a
commit 025ad58561

View File

@ -640,9 +640,19 @@ ModCompatibilityInfo MapController::modAssessmentMap(const CMap & map)
continue;
extractEntityMod(spellID.toEntity(VLC));
}
for(const auto & [_, slotInfo] : hero->artifactsWorn)
{
extractEntityMod(slotInfo.artifact->getTypeId().toEntity(VLC));
}
for(const auto & art : hero->artifactsInBackpack)
{
extractEntityMod(art.artifact->getTypeId().toEntity(VLC));
}
}
}
//TODO: terrains, artifacts?
//TODO: terrains?
return result;
}