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

@@ -795,7 +795,7 @@ class Lang
// |4 - numeric switch <number> |4<singular>:<plural>[:<plural2>];
$var = preg_replace_callback('/([\d\.\,]+)([^\d]*)\|4([^:]*):([^:;]+)(?::([^;]+))?;/i', function ($m)
{
[$_, $num, $pad, $singular, $plural1, $plural2] = $m;
[$_, $num, $pad, $singular, $plural1, $plural2] = array_pad($m, 6, null);
if (self::$locId != LOCALE_RU || !$plural2)
return $num . $pad . ($num == 1 ? $singular : $plural1);