added enchantments to DB

* added markdown [enchantment=123] and [emote=456]
 * updated item_stats to accomodate enchantments
 * updated tables for community content to handle emotes and enchantments

Spells:
 * getStatGain() now reads aura 123 as Spell Penetration
 * fixed error in tooltips when displaying effect ranges (e.g. 10 - 10 damage)
 * display the miscValue of aura 50, 102, 131 and 180 human readable

Emote:
 * no longer displays empty quickInfo on detail page
 * detail page no longer pretends to be a pet

Setup:
 * sync no longer regenerates all tables/files, when the supplied world-table affects nothing
 * fixed dependancy of ?_source from ?_achievment (damn plural-s)

Misc:
 * FireFox doesn't understand <node>.innerText, use <node>.textContent instead

please refresh the affected tables and files
   php aowow --sql=itemenchantment,item_stats
   php aowow --build=enchants,gems
This commit is contained in:
Sarjuuk
2015-07-31 12:05:52 +02:00
parent f6e15c35fc
commit 7f08708555
42 changed files with 1954 additions and 363 deletions

View File

@@ -570,6 +570,86 @@ var Markup = {
return str;
}
},
emote:
{
empty: true,
allowInReplies: true,
attr:
{
unnamed: { req: true, valid: /^[0-9]+$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
},
validate: function(attr)
{
if((attr.domain || attr.site) && Markup.dbpage)
return false;
return true;
},
toHtml: function(attr)
{
var id = attr.unnamed;
var domainInfo = Markup._getDatabaseDomainInfo(attr);
var url = domainInfo[0];
var nameCol = domainInfo[1];
if(g_emotes[id] && g_emotes[id][nameCol])
{
return '<a href="' + url + '?emote=' + id + '"' + Markup._addGlobalAttributes(attr) + '>' + Markup._safeHtml(g_emotes[id][nameCol]) + '</a>';
}
return '<a href="' + url + '?emote=' + id + '"' + Markup._addGlobalAttributes(attr) + '>(' + LANG.types[501][0] + ' #' + id + ')</a>';
},
toText: function(attr)
{
var id = attr.unnamed;
var domainInfo = Markup._getDatabaseDomainInfo(attr);
var nameCol = domainInfo[1];
if(g_emotes[id] && g_emotes[id][nameCol])
return Markup._safeHtml(g_emotes[id][nameCol]);
return LANG.types[501][0] + ' #' + id;
}
},
enchantment:
{
empty: true,
allowInReplies: true,
attr:
{
unnamed: { req: true, valid: /^[0-9]+$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
},
validate: function(attr)
{
if((attr.domain || attr.site) && Markup.dbpage)
return false;
return true;
},
toHtml: function(attr)
{
var id = attr.unnamed;
var domainInfo = Markup._getDatabaseDomainInfo(attr);
var url = domainInfo[0];
var nameCol = domainInfo[1];
if(g_enchantments[id] && g_enchantments[id][nameCol])
{
return '<a href="' + url + '?enchantment=' + id + '"' + Markup._addGlobalAttributes(attr) + '>' + Markup._safeHtml(g_enchantments[id][nameCol]) + '</a>';
}
return '<a href="' + url + '?enchantment=' + id + '"' + Markup._addGlobalAttributes(attr) + '>(' + LANG.types[502][0] + ' #' + id + ')</a>';
},
toText: function(attr)
{
var id = attr.unnamed;
var domainInfo = Markup._getDatabaseDomainInfo(attr);
var nameCol = domainInfo[1];
if(g_enchantments[id] && g_enchantments[id][nameCol])
return Markup._safeHtml(g_enchantments[id][nameCol]);
return LANG.types[502][0] + ' #' + id;
}
},
event:
{
empty: true,