mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Quest/Detailpage
* fixed breadcrumb trail for quests categorized to subzones * display auto accept status in infobox
This commit is contained in:
@@ -1167,6 +1167,7 @@ $lang = array(
|
||||
'bonusTalents' => "%d |4Talentpunkt:Talentpunkte;",
|
||||
'spellDisplayed'=> ' (<a href="?spell=%d">%s</a> wird angezeigt)',
|
||||
'questPoolDesc' => 'Nur %d |4Quest kann:Quests können; aus diesem Tab gleichzeitig aktiv sein',
|
||||
'autoaccept' => 'Automatisches Annehmen',
|
||||
'questInfo' => array(
|
||||
0 => "Normal", 1 => "Gruppe", 21 => "Leben", 41 => "PvP", 62 => "Schlachtzug", 81 => "Dungeon", 82 => "Weltereignis",
|
||||
83 => "Legendär", 84 => "Eskorte", 85 => "Heroisch", 88 => "Schlachtzug (10)", 89 => "Schlachtzug (25)"
|
||||
|
||||
@@ -1167,6 +1167,7 @@ $lang = array(
|
||||
'bonusTalents' => "%d talent |4point:points;", // partly LEVEL_UP_CHAR_POINTS
|
||||
'spellDisplayed'=> ' (<a href="?spell=%d">%s</a> is displayed)',
|
||||
'questPoolDesc' => 'Only %d |4Quest:Quests; from this tab will be available at a time',
|
||||
'autoaccept' => 'Auto Accept',
|
||||
'questInfo' => array(
|
||||
0 => "Normal", 1 => "Group", 21 => "Life", 41 => "PvP", 62 => "Raid", 81 => "Dungeon", 82 => "World Event",
|
||||
83 => "Legendary", 84 => "Escort", 85 => "Heroic", 88 => "Raid (10)", 89 => "Raid (25)"
|
||||
|
||||
@@ -1167,6 +1167,7 @@ $lang = array(
|
||||
'bonusTalents' => "%d |4punto:puntos; de talento",
|
||||
'spellDisplayed'=> ' (mostrando <a href="?spell=%d">%s</a>)',
|
||||
'questPoolDesc' => 'Only %d |4Quest:Quests; from this tab will be available at a time',
|
||||
'autoaccept' => 'Auto aceptar',
|
||||
'questInfo' => array(
|
||||
0 => "Normal", 1 => "Élite", 21 => "Vida", 41 => "JcJ", 62 => "Banda", 81 => "Mazmorra", 82 => "Evento del mundo",
|
||||
83 => "Legendaria", 84 => "Escolta", 85 => "Heroica", 88 => "Banda (10)", 89 => "Banda (25)"
|
||||
|
||||
@@ -1167,6 +1167,7 @@ $lang = array(
|
||||
'bonusTalents' => "%d |4point:points; de talent",
|
||||
'spellDisplayed'=> ' (<a href="?spell=%d">%s</a> affichés)',
|
||||
'questPoolDesc' => 'Only %d |4Quest:Quests; from this tab will be available at a time',
|
||||
'autoaccept' => 'Acceptation Automatique',
|
||||
'questInfo' => array(
|
||||
0 => "Standard", 1 => "Groupe", 21 => "Vie", 41 => "JcJ", 62 => "Raid", 81 => "Donjon", 82 => "Évènement mondial",
|
||||
83 => "Légendaire", 84 => "Escorte", 85 => "Héroïque", 88 => "Raid (10)", 89 => "Raid (25)"
|
||||
|
||||
@@ -1167,6 +1167,7 @@ $lang = array(
|
||||
'bonusTalents' => "%d |4очко талантов:очка талантов:очков талантов;",
|
||||
'spellDisplayed'=> ' (показано: <a href="?spell=%d">%s</a>)',
|
||||
'questPoolDesc' => 'Only %d |4Quest:Quests; from this tab will be available at a time',
|
||||
'autoaccept' => 'Автопринятие',
|
||||
'questInfo' => array(
|
||||
0 => "Обычный", 1 => "Группа", 21 => "Жизнь", 41 => "PvP", 62 => "Рейд", 81 => "Подземелье", 82 => "Игровое событие",
|
||||
83 => "Легенда", 84 => "Сопровождение", 85 => "Героическое", 88 => "Рейд (10)", 89 => "Рейд (25)"
|
||||
|
||||
@@ -1167,6 +1167,7 @@ $lang = array(
|
||||
'bonusTalents' => "%d天赋|4点数:点数;",
|
||||
'spellDisplayed'=> ' (<a href="?spell=%d">%s</a> is displayed)',
|
||||
'questPoolDesc' => 'Only %d |4Quest:Quests; from this tab will be available at a time',
|
||||
'autoaccept' => '自动接收',
|
||||
'questInfo' => array(
|
||||
0 => "普通", 1 => "组队", 21 => "职业", 41 => "PvP", 62 => "团队", 81 => "地下城", 82 => "世界事件",
|
||||
83 => "传说", 84 => "护送", 85 => "英雄", 88 => "团队(10)", 89 => "团队(25)"
|
||||
|
||||
@@ -19,6 +19,19 @@ class QuestPage extends GenericPage
|
||||
protected $css = [['path' => 'Book.css']];
|
||||
protected $js = ['ShowOnMap.js'];
|
||||
|
||||
private $catExtra = array(
|
||||
3526 => 3524,
|
||||
363 => 14,
|
||||
220 => 215,
|
||||
188 => 141,
|
||||
1769 => 361,
|
||||
25 => 46,
|
||||
132 => 1,
|
||||
3431 => 3430,
|
||||
154 => 85,
|
||||
9 => 12
|
||||
);
|
||||
|
||||
private $powerTpl = '$WowheadPower.registerQuest(%d, %d, %s);';
|
||||
|
||||
public function __construct($pageCall, $id)
|
||||
@@ -44,8 +57,13 @@ class QuestPage extends GenericPage
|
||||
// recreate path
|
||||
$this->path[] = $this->subject->getField('cat2');
|
||||
if ($_ = $this->subject->getField('cat1'))
|
||||
{
|
||||
if (isset($this->catExtra[$_]))
|
||||
$this->path[] = $this->catExtra[$_];
|
||||
|
||||
$this->path[] = $_;
|
||||
}
|
||||
}
|
||||
|
||||
protected function generateTitle()
|
||||
{
|
||||
@@ -204,6 +222,10 @@ class QuestPage extends GenericPage
|
||||
if ($e)
|
||||
$infobox[] = implode('[br]', $e);
|
||||
|
||||
// auto accept
|
||||
if ($_flags & QUEST_FLAG_AUTO_ACCEPT)
|
||||
$infobox[] = Lang::quest('autoaccept');
|
||||
|
||||
// Repeatable
|
||||
if ($this->subject->isRepeatable())
|
||||
$infobox[] = Lang::quest('repeatable');
|
||||
|
||||
Reference in New Issue
Block a user