MediaWiki:Common.js: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 203: | Line 203: | ||
'Taunt Lv2': 'Compels magical creatures to focus their attention upon the caster through divine command.', | 'Taunt Lv2': 'Compels magical creatures to focus their attention upon the caster through divine command.', | ||
'Banish': 'Drives magical creatures and summoned beings away with overwhelming divine authority.' | 'Banish': 'Drives magical creatures and summoned beings away with overwhelming divine authority.' | ||
}; | |||
var mobileSpellTitles = { | |||
'Summon Arcane Servant - Attack': 'Servant - Attack', | |||
'Summon Arcane Servant - Defend': 'Servant - Defend', | |||
'Summon Minor Arcane Servant - Attack': 'Minor Servant - Attack', | |||
'Summon Minor Arcane Servant - Defend': 'Minor Servant - Defend', | |||
'Summon Greater Arcane Servant': 'Greater Servant' | |||
}; | }; | ||
| Line 218: | Line 226: | ||
function buildMobileSpellCard($sourceCard, iconType) { | function buildMobileSpellCard($sourceCard, iconType) { | ||
var title = $.trim($sourceCard.children('.wizlords-spell-card-title').first().text()); | var title = $.trim($sourceCard.children('.wizlords-spell-card-title').first().text()); | ||
var mobileTitle = mobileSpellTitles[title] || title; | |||
var $card = $('<div>').addClass('wizlords-mobile-spell-card'); | var $card = $('<div>').addClass('wizlords-mobile-spell-card'); | ||
var $icon = $('<div>').addClass('wizlords-mobile-spell-card-icon').append(getSpellIcon(iconType)); | var $icon = $('<div>').addClass('wizlords-mobile-spell-card-icon').append(getSpellIcon(iconType)); | ||
var $title = $('<div>').addClass('wizlords-mobile-spell-card-title').text( | var $title = $('<div>').addClass('wizlords-mobile-spell-card-title').text(mobileTitle); | ||
var $summary = $('<div>').addClass('wizlords-mobile-spell-card-summary').text(spellSummaries[title] || ''); | var $summary = $('<div>').addClass('wizlords-mobile-spell-card-summary').text(spellSummaries[title] || ''); | ||
var $rules = $('<div>').addClass('wizlords-mobile-spell-card-rules'); | var $rules = $('<div>').addClass('wizlords-mobile-spell-card-rules'); | ||