mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Allow to ban spell scrolls
This commit is contained in:
parent
79c4d7d51f
commit
54ba4d50d6
@ -1265,6 +1265,17 @@ ObjectConfig::EObjectCategory TreasurePlacer::ObjectPool::getObjectCategory(Comp
|
||||
return ObjectConfig::EObjectCategory::RESOURCE;
|
||||
else if (name == "randomArtifact") //"artifact"
|
||||
return ObjectConfig::EObjectCategory::RANDOM_ARTIFACT;
|
||||
else if (name == "artifact")
|
||||
{
|
||||
if (id.primaryID == Obj::SPELL_SCROLL ) // randomArtifactTreasure
|
||||
{
|
||||
return ObjectConfig::EObjectCategory::SPELL_SCROLL;
|
||||
}
|
||||
else
|
||||
{
|
||||
return ObjectConfig::EObjectCategory::QUEST_ARTIFACT;
|
||||
}
|
||||
}
|
||||
else if (name == "denOfThieves")
|
||||
return ObjectConfig::EObjectCategory::OTHER;
|
||||
else if (name == "lighthouse")
|
||||
|
Loading…
Reference in New Issue
Block a user