mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Enchantments
* forgot notFound message * added Enchantments Tab to Spell Detail Page
This commit is contained in:
@@ -569,6 +569,7 @@ class ItemList extends BaseType
|
||||
$x .= '<table width="100%"><tr>';
|
||||
|
||||
// Class
|
||||
if ($_slot)
|
||||
$x .= '<td>'.Lang::item('inventoryType', $_slot).'</td>';
|
||||
|
||||
// Subclass
|
||||
|
||||
@@ -394,6 +394,7 @@ $lang = array(
|
||||
'enchantment' => array(
|
||||
'details' => "Details",
|
||||
'activation' => "Aktivierung",
|
||||
'notFound' => "Diese Verzauberung existiert nicht.",
|
||||
'types' => array(
|
||||
1 => "Zauber (Auslösung)", 3 => "Zauber (Anlegen)", 7 => "Zauber (Benutzen)", 8 => "Prismatischer Sockel",
|
||||
5 => "Statistik", 2 => "Waffenschaden", 6 => "DPS", 4 => "Verteidigung"
|
||||
|
||||
@@ -389,6 +389,7 @@ $lang = array(
|
||||
'enchantment' => array(
|
||||
'details' => "Details",
|
||||
'activation' => "Activation",
|
||||
'notFound' => "This enchantment doesn't exist.",
|
||||
'types' => array(
|
||||
1 => "Proc Spell", 3 => "Equip Spell", 7 => "Use Spell", 8 => "Prismatic Socket",
|
||||
5 => "Statistics", 2 => "Weapon Damage", 6 => "DPS", 4 => "Defense"
|
||||
|
||||
@@ -395,6 +395,7 @@ $lang = array(
|
||||
'enchantment' => array(
|
||||
'details' => "Detalles",
|
||||
'activation' => "Activación",
|
||||
'notFound' => "Este encantamiento no existe.",
|
||||
'types' => array(
|
||||
1 => "[Proc Spell]", 3 => "[Equip Spell]", 7 => "[Use Spell]", 8 => "Ranura prismática",
|
||||
5 => "Atributos", 2 => "Daño de arma", 6 => "DPS", 4 => "Defensa"
|
||||
|
||||
@@ -394,6 +394,7 @@ $lang = array(
|
||||
'enchantment' => array(
|
||||
'details' => "En détail",
|
||||
'activation' => "Activation",
|
||||
'notFound' => "Cet enchantement n'existe pas.",
|
||||
'types' => array(
|
||||
1 => "[Proc Spell]", 3 => "[Equip Spell]", 7 => "[Use Spell]", 8 => "Châsse prismatique",
|
||||
5 => "Statistiques", 2 => "Dégâts d'arme", 6 => "DPS", 4 => "Défense"
|
||||
|
||||
@@ -394,6 +394,7 @@ $lang = array(
|
||||
'enchantment' => array(
|
||||
'details' => "Подробности",
|
||||
'activation' => "Активации",
|
||||
'notFound' => "Такой улучшение не существует.",
|
||||
'types' => array(
|
||||
1 => "[Proc Spell]", 3 => "[Equip Spell]", 7 => "[Use Spell]", 8 => "Бесцветное гнездо",
|
||||
5 => "Характеристики", 2 => "Урон оружия", 6 => "УВС", 4 => "Защита"
|
||||
|
||||
@@ -97,6 +97,7 @@ class EnchantmentPage extends GenericPage
|
||||
$spl = $this->subject->getRelSpell($sArr[0]);
|
||||
$this->effects[$i]['name'] = User::isInGroup(U_GROUP_EMPLOYEE) ? sprintf(Util::$dfnString, 'Type: '.$_ty, Lang::item('trigger', $sArr[1])) : Lang::item('trigger', $sArr[1]);
|
||||
$this->effects[$i]['proc'] = $sArr[3];
|
||||
$this->effects[$i]['value'] = $_qty ?: null;
|
||||
$this->effects[$i]['icon'] = array(
|
||||
'name' => !$spl ? Util::ucFirst(Lang::game('spell')).' #'.$sArr[0] : Util::localizedString($spl, 'name'),
|
||||
'id' => $sArr[0],
|
||||
|
||||
@@ -1124,6 +1124,25 @@ class SpellPage extends GenericPage
|
||||
$this->extendGlobalData($tbItem->getJSGlobals(GLOBALINFO_SELF));
|
||||
}
|
||||
|
||||
// tab: enchantments
|
||||
$conditions = array(
|
||||
'OR',
|
||||
['AND', ['type1', [1, 3, 7]], ['object1', $this->typeId]],
|
||||
['AND', ['type2', [1, 3, 7]], ['object2', $this->typeId]],
|
||||
['AND', ['type3', [1, 3, 7]], ['object3', $this->typeId]]
|
||||
);
|
||||
$enchList = new EnchantmentList($conditions);
|
||||
if (!$enchList->error)
|
||||
{
|
||||
$this->lvTabs[] = array(
|
||||
'file' => 'enchantment',
|
||||
'data' => $enchList->getListviewData(),
|
||||
'params' => []
|
||||
);
|
||||
|
||||
$this->extendGlobalData($enchList->getJSGlobals());
|
||||
}
|
||||
|
||||
// find associated NPC, Item and merge results
|
||||
// taughtbypets (unused..?)
|
||||
// taughtbyquest (usually the spell casted as quest reward teaches something; exclude those seplls from taughtBySpell)
|
||||
|
||||
Reference in New Issue
Block a user