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:
Lee
2020-12-28 16:37:03 +00:00
parent 7e0fded595
commit 8e6bc73ca6
11 changed files with 559 additions and 156 deletions

View File

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