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

@@ -84,12 +84,23 @@ $config = array(
//'2' => 'Your Second World Name'
),
// loot
'loot_show_percentage' => true, // to true to show tooltip percent
// links
'items_url' => 'https://tibia.fandom.com/wiki/', // set to website which shows details about items.
// images
'outfit_images_url' => 'https://outfit-images.ots.me/outfit.php', // set to animoutfit.php for animated outfit
'outfit_images_wrong_looktypes' => [75, 126, 127, 266, 302], // this looktypes needs to have different margin-top and margin-left because they are wrong positioned
'item_images_url' => 'https://item-images.ots.me/1092/', // set to images/items if you host your own items in images folder
'item_images_extension' => '.gif',
// creatures
'creature_images_url' => 'images/monsters/', // set to images/monsters if you host your own creatures in images folder
'creature_images_extension' => '.gif',
'creature_images_preview' => false, // set to true to allow picture previews for creatures
// account
'account_management' => true, // disable if you're using other method to manage users (fe. tfs account manager)
'account_create_auto_login' => false, // auto login after creating account?