Misc/Fixup

* Loc EN: removed unnessecary 'to translate' backets
 * npc: add missing index to loot tabs to kill a warning
This commit is contained in:
Sarjuuk
2024-07-05 22:07:25 +02:00
parent bd5200de85
commit 0f6b8015a1
2 changed files with 2 additions and 2 deletions

View File

@@ -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",

View File

@@ -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), [], ''];
}
}