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:
Sarjuuk
2020-10-17 12:27:59 +02:00
parent 003ac1c931
commit e2fe765980
12 changed files with 698 additions and 492 deletions

View File

@@ -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;