From 0f6b8015a12e9b05f9dc5546079011e8a808a388 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Fri, 5 Jul 2024 22:07:25 +0200 Subject: [PATCH] Misc/Fixup * Loc EN: removed unnessecary 'to translate' backets * npc: add missing index to loot tabs to kill a warning --- localization/locale_enus.php | 2 +- pages/npc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/localization/locale_enus.php b/localization/locale_enus.php index 3dae0f75..3d65fd29 100644 --- a/localization/locale_enus.php +++ b/localization/locale_enus.php @@ -1019,7 +1019,7 @@ $lang = array( 'resistances' => "Resistances", 'foundIn' => "This NPC can be found in", 'tameable' => "Tameable (%s)", - 'spirit' => "[tooltip name=spirit][Only visible to dead players][/tooltip][span class=tip tooltip=spirit][Spirit][/span]", + 'spirit' => "[tooltip name=spirit]Only visible to dead players[/tooltip][span class=tip tooltip=spirit]Spirit[/span]", 'waypoint' => "Waypoint", 'wait' => "Wait", 'respawnIn' => "Respawn in: %s", diff --git a/pages/npc.php b/pages/npc.php index 0f49318d..1b57073d 100644 --- a/pages/npc.php +++ b/pages/npc.php @@ -705,7 +705,7 @@ class NpcPage extends GenericPage foreach (DB::Aowow()->select('SELECT o.`id`, o.`lootId`, o.`name_loc0`, o.`name_loc2`, o.`name_loc3`, o.`name_loc4`, o.`name_loc6`, o.`name_loc8`, l.`difficulty` FROM ?_loot_link l JOIN ?_objects o ON o.`id` = l.`objectId` WHERE l.`npcId` = ?d', $id) as $l) $sourceFor[(($l['difficulty'] - 1) * 2) + 1] = [LOOT_GAMEOBJECT, $l['lootId'], $langref[$l['difficulty'] * ($mapType == 1 ? -1 : 1)], 'drops-object-'.$l['difficulty'], [], '$$WH.sprintf(LANG.lvnote_npcobjectsource, '.$l['id'].', "'.Util::localizedString($l, 'name').'")']; if ($lootId = $_altNPCs->getField('lootId')) - $sourceFor[($mode - 1) * 2] = [LOOT_CREATURE, $lootId, $langref[$mode], 'drops-'.abs($mode), []]; + $sourceFor[($mode - 1) * 2] = [LOOT_CREATURE, $lootId, $langref[$mode], 'drops-'.abs($mode), [], '']; } }