Profiler/Completion

* move spells w/o source to excludeGroup unavailable
   shouldn't hide. They may have been available in the past.
This commit is contained in:
Sarjuuk
2023-05-24 01:29:28 +02:00
parent a6f6e0b05d
commit d8d2676596

View File

@@ -211,6 +211,10 @@ if (!CLI)
$exAdd(Type::SPELL, $mount, PR_EXCLUDE_GROUP_REQ_TAILORING); $exAdd(Type::SPELL, $mount, PR_EXCLUDE_GROUP_REQ_TAILORING);
} }
foreach ($mountz->iterate() as $id => $_)
if (!$mountz->getSources($__, $___))
$exAdd(Type::SPELL, $id, PR_EXCLUDE_GROUP_UNAVAILABLE);
foreach (CLISetup::$localeIds as $l) foreach (CLISetup::$localeIds as $l)
{ {
set_time_limit(5); set_time_limit(5);
@@ -256,6 +260,10 @@ if (!CLI)
$companionz = new SpellList($condition); $companionz = new SpellList($condition);
$legit = DB::Aowow()->selectCol('SELECT `spellId2` FROM ?_items WHERE `class` = ?d AND `subClass` = ?d AND `spellId1` IN (?a) AND `spellId2` IN (?a)', ITEM_CLASS_MISC, 2, LEARN_SPELLS, $companionz->getFoundIDs()); $legit = DB::Aowow()->selectCol('SELECT `spellId2` FROM ?_items WHERE `class` = ?d AND `subClass` = ?d AND `spellId1` IN (?a) AND `spellId2` IN (?a)', ITEM_CLASS_MISC, 2, LEARN_SPELLS, $companionz->getFoundIDs());
foreach ($companionz->iterate() as $id => $_)
if (!$companionz->getSources($__, $___))
$exAdd(Type::SPELL, $id, PR_EXCLUDE_GROUP_UNAVAILABLE);
foreach (CLISetup::$localeIds as $l) foreach (CLISetup::$localeIds as $l)
{ {
set_time_limit(5); set_time_limit(5);
@@ -336,8 +344,11 @@ if (!CLI)
$cnd = array_merge($baseCnd, [['skillLine1', $s]]); $cnd = array_merge($baseCnd, [['skillLine1', $s]]);
$recipez = new SpellList($cnd); $recipez = new SpellList($cnd);
$created = ''; $created = '';
foreach ($recipez->iterate() as $__) foreach ($recipez->iterate() as $id => $__)
{ {
if (!$recipez->getSources($__, $___))
$exAdd(Type::SPELL, $id, PR_EXCLUDE_GROUP_UNAVAILABLE);
foreach ($recipez->canCreateItem() as $idx) foreach ($recipez->canCreateItem() as $idx)
{ {
$id = $recipez->getField('effect'.$idx.'CreateItemId'); $id = $recipez->getField('effect'.$idx.'CreateItemId');