mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
SAI/Compat
* add changes from TC of the last three years * reduce redundancy when handling creature text * reserve more space in target, event, action parameters. Move own parameters further back to avoid confict with future param expansion by TC
This commit is contained in:
@@ -51,9 +51,7 @@ if ($this->quotes[0]):
|
||||
|
||||
$last = end($group);
|
||||
foreach ($group as $itr):
|
||||
$_ = ($itr['type'] != 4 ? $this->name.' '.Lang::npc('textTypes', $itr['type']).Lang::main('colon').($itr['lang'] ? '['.$itr['lang'].'] ' : null) : null).$itr['text'];
|
||||
|
||||
echo '<div><span class="s'.$itr['type'].'">'.($itr['range'] ? sprintf(Util::$dfnString, Lang::npc('textRanges', $itr['range']), $_) : $_).'</span></div>';
|
||||
echo sprintf(sprintf($itr['text'], $itr['prefix']), $this->name);
|
||||
echo ($itr == $last) ? null : "</li>\n<li>";
|
||||
endforeach;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user