From 54ba4d50d6c4777c7a296a8a5be66000ea73730b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zieli=C5=84ski?= Date: Mon, 23 Sep 2024 17:09:46 +0200 Subject: [PATCH] Allow to ban spell scrolls --- lib/rmg/modificators/TreasurePlacer.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/rmg/modificators/TreasurePlacer.cpp b/lib/rmg/modificators/TreasurePlacer.cpp index d6b680b2d..eb1b3c60f 100644 --- a/lib/rmg/modificators/TreasurePlacer.cpp +++ b/lib/rmg/modificators/TreasurePlacer.cpp @@ -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")