mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
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:
@@ -1019,7 +1019,7 @@ $lang = array(
|
|||||||
'resistances' => "Resistances",
|
'resistances' => "Resistances",
|
||||||
'foundIn' => "This NPC can be found in",
|
'foundIn' => "This NPC can be found in",
|
||||||
'tameable' => "Tameable (%s)",
|
'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",
|
'waypoint' => "Waypoint",
|
||||||
'wait' => "Wait",
|
'wait' => "Wait",
|
||||||
'respawnIn' => "Respawn in: %s",
|
'respawnIn' => "Respawn in: %s",
|
||||||
|
|||||||
@@ -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)
|
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').'")'];
|
$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'))
|
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), [], ''];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user