Unified naming

This commit is contained in:
slawkens
2021-01-07 11:47:57 +01:00
parent 1fa4b1e660
commit 98bd51436b
3 changed files with 8 additions and 8 deletions

View File

@@ -1425,8 +1425,8 @@ function right($str, $length) {
}
function getCreatureImgPath($creature){
$creature_path = config('creature_images_url');
$creature_gfx_name = trim(strtolower($creature)) . config('creature_images_extension');
$creature_path = config('creatures_images_url');
$creature_gfx_name = trim(strtolower($creature)) . config('creatures_images_extension');
if (!file_exists($creature_path . $creature_gfx_name)) {
$creature_gfx_name = str_replace(" ", "", $creature_gfx_name);
if (file_exists($creature_path . $creature_gfx_name)) {

View File

@@ -13,7 +13,7 @@ defined('MYAAC') or die('Direct access not allowed!');
$title = "Creatures";
if (empty($_REQUEST['creature'])) {
$preview = config('creature_images_preview');
$preview = config('creatures_images_preview');
$creatures = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'monsters` WHERE `hidden` != 1 '.(empty($_REQUEST['boss']) ? '': 'AND `rewardboss` = 1').' ORDER BY name asc')->fetchAll();
if ($preview) {
@@ -59,7 +59,7 @@ if (empty($_REQUEST['creature'])) {
$item['name'] = getItemNameById($item['id']);
$item['rarity_chance'] = round($item['chance'] / 1000, 2);
$item['rarity'] = getItemRarity($item['chance']);
$item['tooltip'] = ucfirst($item['name']) . '<br/>Chance: ' . $item['rarity'] . (config('creature_loot_percentage') ? ' ('. $item['rarity_chance'] .'%)' : '') . '<br/>Max count: ' . $item['count'];
$item['tooltip'] = ucfirst($item['name']) . '<br/>Chance: ' . $item['rarity'] . (config('creatures_loot_percentage') ? ' ('. $item['rarity_chance'] .'%)' : '') . '<br/>Max count: ' . $item['count'];
$loot_list[] = $item;
}