implemented detail-page for pets

- plus food and talents, minus zones (those are just madning)
 - also addes some bc/classic information on pet scaling

* mucked about the modelviewer, always uses high quality version .. should muck about some more to add animation-info and remove the java-option
* fixed some minor issues in spell maxaffectedtaregs in spell is displayed properly and erronous adding all classes/races to globals if none where selected
* created own table for creatures which unifies creature_template, locales_creature, creature_template_addon and some creatureDisplayInfo.dbc information
* more work against listviews and general structure in global.js .. should probably split this file by class and reassemble it for use
This commit is contained in:
Sarjuuk
2013-07-02 22:10:25 +02:00
parent 4c974f87c5
commit a3f16f0e0d
31 changed files with 1839 additions and 1098 deletions

View File

@@ -582,9 +582,9 @@ class SpellList extends BaseType
case 'i': // MaxAffectedTargets
case 'I':
if ($lookup)
$base = $this->refSpells[$lookup]->getField('targets');
$base = $this->refSpells[$lookup]->getField('maxAffectedTargets');
else
$base = $this->getField('targets');
$base = $this->getField('maxAffectedTargets');
if (in_array($op, $signs) && is_numeric($oparg) && is_numeric($base))
eval("\$base = $base $op $oparg;");
@@ -1606,8 +1606,11 @@ class SpellList extends BaseType
);
}
(new CharClassList(array(['id', $classes])))->addGlobalsToJScript($refs);
(new CharRaceList(array(['id', $races])))->addGlobalsToJScript($refs);
if ($classes)
(new CharClassList(array(['id', $classes])))->addGlobalsToJScript($refs);
if ($races)
(new CharRaceList(array(['id', $races])))->addGlobalsToJScript($refs);
}
public function addRewardsToJScript(&$refs) { }