mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
Creature page overhaul
Updates the creature pages to show more information. You will need to reload your creatures. -modifies database with migration 31 -small customisations are allowed via config file. -functions added, getMonsterLink, getItemRarity, getCreatureImgPath, left, right, -added functions to twig. -view elements, immunities, summons, voices, loot, pushables, canpush, canwalk, runonhealth,hostile,attackable,rewardboss,defense,armor -filter bosses -show list as picture preview or names list
This commit is contained in:
@@ -24,16 +24,31 @@ $function = new TwigFunction('getStyle', function ($i) {
|
||||
});
|
||||
$twig->addFunction($function);
|
||||
|
||||
$function = new TwigFunction('getCreatureImgPath', function ($i) {
|
||||
return getCreatureImgPath($i);
|
||||
});
|
||||
$twig->addFunction($function);
|
||||
|
||||
$function = new TwigFunction('getLink', function ($s) {
|
||||
return getLink($s);
|
||||
});
|
||||
$twig->addFunction($function);
|
||||
|
||||
$function = new TwigFunction('generateLink', function ($s, $n, $b = false) {
|
||||
return generateLink($s, $n, $b);
|
||||
});
|
||||
$twig->addFunction($function);
|
||||
|
||||
$function = new TwigFunction('getPlayerLink', function ($s, $p) {
|
||||
return getPlayerLink($s, $p);
|
||||
});
|
||||
$twig->addFunction($function);
|
||||
|
||||
$function = new TwigFunction('getMonsterLink', function ($s, $p) {
|
||||
return getMonsterLink($s, $p);
|
||||
});
|
||||
$twig->addFunction($function);
|
||||
|
||||
$function = new TwigFunction('getGuildLink', function ($s, $p) {
|
||||
return getGuildLink($s, $p);
|
||||
});
|
||||
|
Reference in New Issue
Block a user