Spells/Sounds

* get sounds from ScreenEffect.dbc and link to type Spell and type Sound
 * resolve ScreenEffect name in SpellDetailPage
Fixup
 * fix warning in UI escape sequence parsing
This commit is contained in:
Sarjuuk
2023-08-31 14:54:23 +02:00
parent 9b16f2d84a
commit ac34b47c26
8 changed files with 85 additions and 6 deletions

View File

@@ -131,6 +131,14 @@ class SoundPage extends GenericPage
impactarea = ?d
', $this->typeId, $this->typeId, $this->typeId, $this->typeId, $this->typeId, $this->typeId, $this->typeId, $this->typeId, $this->typeId, $this->typeId, $this->typeId, $this->typeId, $this->typeId, $this->typeId);
$seMiscValues = DB::Aowow()->selectCol('
SELECT `id` FROM ?_screeneffect_sounds WHERE
`ambienceDay` = ?d OR
`ambienceNight` = ?d OR
`musicDay` = ?d OR
`musicNight` = ?d
', $this->typeId, $this->typeId, $this->typeId, $this->typeId);
$cnd = array(
'OR',
['AND', ['effect1Id', 132], ['effect1MiscValue', $this->typeId]],
@@ -141,6 +149,14 @@ class SoundPage extends GenericPage
if ($displayIds)
$cnd[] = ['spellVisualId', $displayIds];
if ($seMiscValues)
$cnd[] = array(
'OR',
['AND', ['effect1AuraId', 260], ['effect1MiscValue', $seMiscValues]],
['AND', ['effect2AuraId', 260], ['effect2MiscValue', $seMiscValues]],
['AND', ['effect3AuraId', 260], ['effect3MiscValue', $seMiscValues]]
);
$spells = new SpellList($cnd);
if (!$spells->error)
{