mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Spell/DetailPage
* finally set GCDCat var * (a smooth decade later and it turns out it was StartRecoveryCategory all along)
This commit is contained in:
@@ -2427,6 +2427,7 @@ class SpellListFilter extends Filter
|
||||
19 => [parent::CR_FLAG, 'attributes0', SPELL_ATTR0_LEVEL_DAMAGE_CALCULATION ], // scaling
|
||||
20 => [parent::CR_CALLBACK, 'cbReagents', ], // has Reagents [yn]
|
||||
22 => [parent::CR_CALLBACK, 'cbProficiency', null, null ], // proficiencytype [proficiencytype]
|
||||
// 26 => [parent::CR_NUMERIC, 'startRecoveryCategory', NUM_CAST_INT, false ], // gcd-cat
|
||||
25 => [parent::CR_BOOLEAN, 'skillLevelYellow' ], // rewardsskillups
|
||||
27 => [parent::CR_FLAG, 'attributes1', SPELL_ATTR1_CHANNELED_1, true ], // channeled [yn]
|
||||
28 => [parent::CR_NUMERIC, 'castTime', NUM_CAST_FLOAT ], // casttime [num]
|
||||
|
||||
@@ -46,7 +46,6 @@ $lang = array(
|
||||
'gains' => "Belohnungen",
|
||||
'login' => "Login",
|
||||
'forum' => "Forum",
|
||||
'n_a' => "n. v.",
|
||||
'siteRep' => "Ruf",
|
||||
'yourRepHistory'=> "Dein Ruf-Verlauf",
|
||||
'aboutUs' => "Über Aowow",
|
||||
@@ -1490,6 +1489,11 @@ $lang = array(
|
||||
'_seeMore' => "Mehr anzeigen",
|
||||
'_rankRange' => "Rang: %d - %d",
|
||||
'_showXmore' => "Zeige %d weitere",
|
||||
|
||||
'n_a' => "n. v.",
|
||||
'normal' => "Normal",
|
||||
'special' => "Besonders",
|
||||
|
||||
'currentArea' => '<Momentanes Gebiet>',
|
||||
'discovered' => "Durch Geistesblitz erlernt",
|
||||
'ppm' => "(%s Auslösungen pro Minute)",
|
||||
|
||||
@@ -46,7 +46,6 @@ $lang = array(
|
||||
'gains' => "Gains",
|
||||
'login' => "Login",
|
||||
'forum' => "Forum",
|
||||
'n_a' => "n/a",
|
||||
'siteRep' => "Reputation",
|
||||
'yourRepHistory'=> "Your Reputation History",
|
||||
'aboutUs' => "About us & contact",
|
||||
@@ -1490,6 +1489,11 @@ $lang = array(
|
||||
'_seeMore' => "See more",
|
||||
'_rankRange' => "Rank: %d - %d",
|
||||
'_showXmore' => "Show %d More",
|
||||
|
||||
'n_a' => "n/a",
|
||||
'normal' => "Normal",
|
||||
'special' => "Special",
|
||||
|
||||
'currentArea' => '<current area>',
|
||||
'discovered' => "Learned via discovery",
|
||||
'ppm' => "(%s procs per minute)",
|
||||
|
||||
@@ -46,7 +46,6 @@ $lang = array(
|
||||
'gains' => "Ganancias",
|
||||
'login' => "Ingresar",
|
||||
'forum' => "Foro",
|
||||
'n_a' => "n/d",
|
||||
'siteRep' => "Reputación",
|
||||
'yourRepHistory'=> "Tu Historial de Reputación",
|
||||
'aboutUs' => "Sobre Aowow",
|
||||
@@ -1490,6 +1489,11 @@ $lang = array(
|
||||
'_seeMore' => "Más información",
|
||||
'_rankRange' => "Rango: %d - %d",
|
||||
'_showXmore' => "Mostrar %d más",
|
||||
|
||||
'n_a' => "n/d",
|
||||
'normal' => "Normal",
|
||||
'special' => "Especial",
|
||||
|
||||
'currentArea' => '<current area>',
|
||||
'discovered' => "Aprendido via descubrimiento",
|
||||
'ppm' => "(%s procs por minuto)",
|
||||
|
||||
@@ -46,7 +46,6 @@ $lang = array(
|
||||
'gains' => "Gains",
|
||||
'login' => "[Login]",
|
||||
'forum' => "Forum",
|
||||
'n_a' => "n/d",
|
||||
'siteRep' => "Réputation",
|
||||
'yourRepHistory'=> "Votre historique de réputation",
|
||||
'aboutUs' => "À propos de Aowow",
|
||||
@@ -1490,6 +1489,11 @@ $lang = array(
|
||||
'_seeMore' => "[See more]",
|
||||
'_rankRange' => "Rang : %d - %d",
|
||||
'_showXmore' => "En afficher %d de plus",
|
||||
|
||||
'n_a' => "n/d",
|
||||
'normal' => "Standard",
|
||||
'special' => "Spécial",
|
||||
|
||||
'currentArea' => '<current area>',
|
||||
'discovered' => "Appris via une découverte",
|
||||
'ppm' => "(%s déclenchements par minute)",
|
||||
|
||||
@@ -46,7 +46,6 @@ $lang = array(
|
||||
'gains' => "Бонус",
|
||||
'login' => "[Login]",
|
||||
'forum' => "Форум",
|
||||
'n_a' => "нет",
|
||||
'siteRep' => "Репутация",
|
||||
'yourRepHistory'=> "История вашей репутации",
|
||||
'aboutUs' => "О Aowow",
|
||||
@@ -1490,6 +1489,11 @@ $lang = array(
|
||||
'_seeMore' => "[See more]",
|
||||
'_rankRange' => "Ранг: %d - %d",
|
||||
'_showXmore' => "Показать на %d больше",
|
||||
|
||||
'n_a' => "нет",
|
||||
'normal' => "Обычный",
|
||||
'special' => "Особый",
|
||||
|
||||
'currentArea' => '<current area>',
|
||||
'discovered' => "Изучается путём освоения местности",
|
||||
'ppm' => "(Срабатывает %s раз в минуту)",
|
||||
|
||||
@@ -47,7 +47,6 @@ $lang = array(
|
||||
'gains' => "获得",
|
||||
'login' => "登录",
|
||||
'forum' => "论坛",
|
||||
'n_a' => "n/a",
|
||||
'siteRep' => "站点声望",
|
||||
'yourRepHistory'=> "您的声望历史",
|
||||
'aboutUs' => "关于我们 & 联系我们",
|
||||
@@ -1490,6 +1489,11 @@ $lang = array(
|
||||
'_seeMore' => "[See more]",
|
||||
'_rankRange' => "排名: %d - %d",
|
||||
'_showXmore' => "[Show %d More]",
|
||||
|
||||
'n_a' => "n/a",
|
||||
'normal' => "普通",
|
||||
'special' => "特殊",
|
||||
|
||||
'currentArea' => '<当前区域>',
|
||||
'discovered' => "通过发现学习",
|
||||
'ppm' => "%s每分钟触发几率",
|
||||
|
||||
@@ -24,7 +24,7 @@ class SpellPage extends GenericPage
|
||||
protected $rangeName = '';
|
||||
protected $range = '';
|
||||
protected $gcd = '';
|
||||
protected $gcdCat = ''; // todo (low): nyi; find out how this works [n/a; normal; ..]
|
||||
protected $gcdCat = '';
|
||||
protected $school = '';
|
||||
protected $dispel = '';
|
||||
protected $mechanic = '';
|
||||
@@ -352,6 +352,18 @@ class SpellPage extends GenericPage
|
||||
$this->headIcons = [$this->subject->getField('iconString'), $this->subject->getField('stackAmount') ?: ($this->subject->getField('procCharges') > 1 ? $this->subject->getField('procCharges') : '')];
|
||||
$this->redButtons = $redButtons;
|
||||
$this->infobox = $infobox;
|
||||
$this->gcdCat = match((int)$this->subject->getField('startRecoveryCategory'))
|
||||
{
|
||||
133 => Lang::spell('normal'),
|
||||
330, // Mounts
|
||||
1156, // Heart of the Phoenix
|
||||
1159, // Ignis Grab and Slag Pot
|
||||
1164, // Kessel Run Elek
|
||||
1173, // Birmingham Test Spells
|
||||
1178, // Stealth (Druid Cat, Rogue, Hunter Cat Pets) + Charge (Warrior)
|
||||
1244 => Lang::spell('special'), // Argent Tournament Vehicle Jousting Abilities
|
||||
default => '' // n/a
|
||||
};
|
||||
|
||||
// minRange exists.. prepend
|
||||
if ($_ = $this->subject->getField('rangeMinHostile'))
|
||||
|
||||
@@ -88,23 +88,23 @@ endif;
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-left: 0; border-top: 0"><?=Lang::game('duration');?></th>
|
||||
<td width="100%" style="border-top: 0"><?=($this->duration ?: '<span class="q0">'.Lang::main('n_a').'</span>');?></td>
|
||||
<td width="100%" style="border-top: 0"><?=($this->duration ?: '<span class="q0">'.Lang::spell('n_a').'</span>');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-left: 0"><?=Lang::game('school'); ?></th>
|
||||
<td width="100%" style="border-top: 0"><?=($this->school ?: '<span class="q0">'.Lang::main('n_a').'</span>');?></td>
|
||||
<td width="100%" style="border-top: 0"><?=($this->school ?: '<span class="q0">'.Lang::spell('n_a').'</span>');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-left: 0"><?=Lang::game('mechanic');?></th>
|
||||
<td width="100%" style="border-top: 0"><?=($this->mechanic ?:'<span class="q0">'.Lang::main('n_a').'</span>');?></td>
|
||||
<td width="100%" style="border-top: 0"><?=($this->mechanic ?:'<span class="q0">'.Lang::spell('n_a').'</span>');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-left: 0"><?=Lang::game('dispelType');?></th>
|
||||
<td width="100%" style="border-top: 0"><?=($this->dispel ?: '<span class="q0">'.Lang::main('n_a').'</span>');?></td>
|
||||
<td width="100%" style="border-top: 0"><?=($this->dispel ?: '<span class="q0">'.Lang::spell('n_a').'</span>');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="border-bottom: 0; border-left: 0"><?=Lang::spell('_gcdCategory');?></th>
|
||||
<td style="border-bottom: 0"><?=($this->gcdCat ?: '<span class="q0">'.Lang::main('n_a').'</span>');?></td>
|
||||
<td style="border-bottom: 0"><?=($this->gcdCat ?: '<span class="q0">'.Lang::spell('n_a').'</span>');?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -123,7 +123,7 @@ endif;
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?=Lang::spell('_cooldown');?></th>
|
||||
<td><?=($this->cooldown ?: '<span class="q0">'.Lang::main('n_a').'</span>');?></td>
|
||||
<td><?=($this->cooldown ?: '<span class="q0">'.Lang::spell('n_a').'</span>');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><dfn title="<?=Lang::spell('_globCD').'">'.Lang::spell('_gcd');?></dfn></th>
|
||||
|
||||
Reference in New Issue
Block a user