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:
parent
896a148a7a
commit
025ad58561
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user