mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +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;
|
return ObjectConfig::EObjectCategory::RESOURCE;
|
||||||
else if (name == "randomArtifact") //"artifact"
|
else if (name == "randomArtifact") //"artifact"
|
||||||
return ObjectConfig::EObjectCategory::RANDOM_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")
|
else if (name == "denOfThieves")
|
||||||
return ObjectConfig::EObjectCategory::OTHER;
|
return ObjectConfig::EObjectCategory::OTHER;
|
||||||
else if (name == "lighthouse")
|
else if (name == "lighthouse")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user