用户:Maple/PokemonMaxLinks.js

来自口袋百科
跳转至: 导航搜索

注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox/Safari:按住“Shift”的同时单击“刷新”,或按“Ctrl-F5”或“Ctrl-R”(Mac为“⌘-R”)
  • Google Chrome:按“Ctrl-Shift-R”(Mac为“⌘-Shift-R”)
  • Internet Explorer:按住“Ctrl”的同时单击“刷新”,或按“Ctrl-F5”
  • Opera:在“工具→首选项”中清除缓存
var Bushou = [
['主人公',1,1,3,65,60,65,4],
['主人公',2,1,24,75,70,80,6],
['主人公',3,1,25,80,85,100,8],
['主人公',1,0,3,65,60,65,4],
['主人公',2,0,24,75,70,80,6],
['主人公',3,0,25,80,85,100,8],
['信长',1,1,26,89,94,92,5],
['信长',2,1,27,96,100,100,8],
['阿市',1,0,6,48,73,90,4],
['阿市',2,0,28,54,83,98,5],
['秀吉',1,1,15,66,65,78,6],
['秀吉',2,1,29,76,88,88,7],
['秀吉',3,1,30,80,98,98,8],
['元亲',1,1,4,82,81,81,6],
['元亲',2,1,31,90,92,91,7],
['訚千代',1,0,5,74,68,72,5],
['訚千代',2,0,32,84,78,82,6],
['元就',1,1,8,69,90,86,7],
['元就',2,1,33,79,100,96,8],
['光秀',1,1,10,77,82,82,5],
['光秀',2,1,34,88,92,92,6],
['义弘',1,1,7,90,63,62,6],
['义弘',2,1,35,98,73,72,7],
['宁宁',1,0,4,65,78,75,5],
['宁宁',2,0,36,75,84,85,6],
['信玄',1,1,4,82,96,86,7],
['信玄',2,1,37,92,100,96,8],
['政宗',1,1,5,86,82,80,7],
['政宗',2,1,38,96,92,90,8],
['谦信',1,1,5,90,66,81,7],
['谦信',2,1,39,99,76,91,8],
['义元',1,1,17,64,72,79,5],
['义元',2,1,40,75,82,88,6],
['氏康',1,1,8,80,78,84,7],
['氏康',2,1,41,90,94,94,8],
['浓姬',1,0,13,48,74,90,5],
['浓姬',2,0,42,54,84,97,6],
['小太郎',1,1,15,82,78,52,5],
['小太郎',2,1,43,92,89,62,6],
['家康',1,1,8,80,84,87,8],
['家康',2,1,44,88,94,97,8],
['半兵卫',1,1,13,36,90,70,5],
['半兵卫',2,1,45,42,99,80,6],
['官兵卫',1,1,14,60,90,62,5],
['官兵卫',2,1,46,70,98,70,6],
['宗茂',1,1,11,84,68,73,6],
['宗茂',2,1,47,94,78,83,7],
['加拉夏',1,0,13,42,63,78,5],
['加拉夏',2,0,48,52,73,87,5],
['半藏',1,1,11,87,77,62,5],
['半藏',2,1,49,94,88,72,6],
['女忍者',1,0,18,60,63,70,5],
['女忍者',2,0,50,70,73,80,5],
['幸村',1,1,7,87,78,80,6],
['幸村',2,1,51,95,84,90,7],
['孙市',1,1,10,89,79,74,6],
['孙市',2,1,52,95,88,84,7],
['兼续',1,1,4,65,88,79,7],
['兼续',2,1,53,75,97,89,7],
['绫御前',1,0,6,39,71,75,5],
['绫御前',2,0,54,49,81,86,5],
['甲斐姬',1,0,15,73,62,70,5],
['甲斐姬',2,0,55,83,72,80,6],
['阿国',1,0,18,65,63,79,3],
['阿国',2,0,56,75,73,88,4],
['兰丸',1,1,16,69,72,66,4],
['兰丸',2,1,57,79,82,76,5],
['忠胜',1,1,14,92,68,81,6],
['忠胜',2,1,58,100,77,89,6],
['稻姬',1,0,10,78,56,68,5],
['稻姬',2,0,59,88,63,79,6],
['庆次',1,1,7,92,40,73,6],
['庆次',2,1,60,100,50,86,7],
['三成',1,1,11,46,85,72,5],
['三成',2,1,61,55,96,84,5],
['清正',1,1,16,82,64,67,5],
['清正',2,1,62,92,74,77,6],
['正则',1,1,14,88,37,63,5],
['正则',2,1,63,97,50,73,6],
['经久',0,1,19,52,95,90,7],
['直家',0,1,15,70,95,79,6],
['晴贤',0,1,7,82,70,66,6],
['隆信',0,1,21,88,59,82,7],
['直茂',0,1,8,84,84,81,7],
['氏乡',0,1,20,73,81,82,7],
['茶茶',0,0,19,34,69,78,2],
['江',0,0,2,33,55,75,4],
['初',0,0,20,32,55,74,4],
['一益',0,1,11,79,80,65,6],
['长秀',0,1,16,75,73,68,5],
['嘉隆',0,1,4,74,55,61,6],
['有乐斋',0,1,9,7,5,71,2],
['成政',0,1,5,79,33,66,5],
['具教',0,1,14,96,21,83,6],
['村重',0,1,3,70,42,73,6],
['政秀',0,1,21,26,79,67,5],
['长可',0,1,1,79,31,75,5],
['吉乃',0,0,6,54,72,79,2],
['五德',0,0,10,48,61,72,2],
['秀长',0,1,18,68,78,77,5],
['小六',0,1,7,75,74,69,4],
['高虎',0,1,13,70,87,72,6],
['吉继',0,1,16,72,86,64,6],
['行长',0,1,17,31,72,70,6],
['利休',0,1,20,68,66,75,5],
['秀赖',0,1,19,20,26,68,3],
['朝日',0,0,19,34,47,70,3],
['一丰',0,1,17,48,51,62,5],
['长康',0,1,1,68,61,63,5],
['治长',0,1,10,14,42,57,2],
['秀秋',0,1,2,23,23,23,3],
['仲',0,0,22,62,54,60,4],
['龙子',0,0,9,50,55,50,2],
['摩阿',0,0,13,57,73,50,3],
['千代',0,0,6,30,67,67,4],
['初芽',0,0,3,62,55,73,3],
['信亲',0,1,10,79,66,70,5],
['亲泰',0,1,8,73,78,72,6],
['盛亲',0,1,9,77,35,83,5],
['亲政',0,1,21,87,21,63,4],
['仪重',0,1,5,78,45,52,4],
['孝赖',0,1,2,49,80,62,5],
['忠澄',0,1,17,16,76,28,3],
['道雪',0,1,11,85,86,76,7],
['绍运',0,1,4,90,70,66,7],
['宗麟',0,1,4,69,78,83,6],
['石宗',0,1,17,38,88,80,6],
['鉴实',0,1,8,58,40,61,4],
['隆种',0,1,3,56,43,45,5],
['清',0,0,22,15,13,78,3],
['元春',0,1,7,92,71,80,7],
['隆景',0,1,1,69,90,84,7],
['辉元',0,1,2,41,26,82,5],
['武吉',0,1,9,80,66,62,5],
['恵琼',0,1,18,6,80,68,2],
['隆元',0,1,8,71,72,82,6],
['福原',0,1,9,48,80,68,5],
['秀满',0,1,21,78,44,72,5],
['利三',0,1,14,68,68,68,5],
['茂朝',0,1,16,60,36,64,3],
['光忠',0,1,19,65,40,58,3],
['行政',0,1,22,52,55,55,3],
['忠兴',0,1,7,76,72,78,6],
['藤孝',0,1,2,70,85,80,6],
['熙子',0,0,20,38,63,66,5],
['忠元',0,1,2,78,56,60,5],
['忠恒',0,1,3,73,56,70,5],
['贵久',0,1,14,66,87,85,7],
['久朗',0,1,12,71,69,60,5],
['政年',0,1,5,70,48,58,4],
['兼护',0,1,8,30,55,57,3],
['时尧',0,1,23,56,65,61,4],
['三太夫',0,1,5,87,89,34,3],
['盛清',0,1,5,68,47,61,3],
['果心居士',0,1,9,42,69,53,3],
['保长',0,1,10,80,62,66,5],
['清九郎',0,1,12,60,40,43,3],
['胜赖',0,1,7,82,56,79,6],
['晴幸',0,1,15,41,92,69,5],
['昌景',0,1,17,88,66,70,6],
['昌丰',0,1,8,70,76,70,5],
['信房',0,1,17,80,50,70,5],
['昌幸',0,1,18,74,93,74,7],
['幸隆',0,1,14,58,94,70,6],
['梅',0,0,12,32,50,50,3],
['千代女',0,0,10,60,67,68,4],
['惠',0,0,1,65,48,69,5],
['景纲',0,1,8,70,90,72,6],
['成实',0,1,5,85,53,66,5],
['纲元',0,1,1,66,69,60,4],
['常长',0,1,12,48,44,56,3],
['宗时',0,1,17,76,53,60,5],
['宗实',0,1,9,71,56,63,5],
['义',0,0,20,38,76,50,4],
['五郎八',0,0,13,58,59,50,4],
['景胜',0,1,11,82,71,64,6],
['义清',0,1,4,81,65,73,6],
['朝信',0,1,21,74,76,68,5],
['景家',0,1,7,90,12,59,5],
['高广',0,1,23,79,44,61,5],
['定満',0,1,19,55,92,74,5],
['弥太郎',0,1,14,92,2,55,4],
['实乃',0,1,20,37,77,61,4],
['华',0,0,22,70,57,50,5],
['船',0,0,8,27,61,48,4],
['氏亲',0,1,22,73,89,71,7],
['氏真',0,1,13,6,8,62,1],
['雪斋',0,1,15,50,92,77,6],
['正纲',0,1,4,44,52,62,5],
['泰朝',0,1,7,71,58,59,6],
['氏广',0,1,23,18,60,55,3],
['元真',0,1,3,50,58,63,4],
['濑名',0,0,9,48,74,50,2],
['早云',0,1,15,69,93,85,7],
['纲成',0,1,11,90,79,76,7],
['幻庵',0,1,22,2,83,80,5],
['氏政',0,1,1,63,78,79,7],
['氏照',0,1,21,74,70,78,7],
['氏邦',0,1,8,77,62,73,6],
['氏直',0,1,23,42,35,79,4],
['静',0,0,4,62,41,62,4],
['圆',0,0,16,58,50,62,3],
['道三',0,1,15,73,93,82,8],
['义龙',0,1,23,87,75,63,5],
['一铁',0,1,4,70,72,70,5],
['卜全',0,1,13,62,52,68,6],
['守就',0,1,5,46,70,66,4],
['小见',0,0,19,20,60,62,5],
['朝',0,0,6,57,68,50,3],
['甲斐',0,1,21,79,81,43,3],
['玄蕃',0,1,3,79,75,48,3],
['段藏',0,1,10,79,89,48,3],
['弥左卫门',0,1,9,80,77,57,3],
['猪助',0,1,3,72,68,63,3],
['忠次',0,1,16,72,74,71,6],
['直政',0,1,18,87,72,68,6],
['康政',0,1,11,83,51,70,6],
['正信',0,1,19,6,95,53,3],
['秀忠',0,1,19,18,73,75,5],
['数正',0,1,23,51,78,72,5],
['長安',0,1,13,2,62,71,2],
['天海',0,1,20,1,91,72,2],
['宗矩',0,1,14,90,80,66,3],
['龟',0,0,10,62,73,55,4],
['督',0,0,13,44,68,50,4],
['才藏',0,1,20,80,76,68,4],
['佐助',0,1,5,81,72,70,4],
['胜',0,0,15,53,48,72,4],
['十藏',0,1,16,81,80,62,4],
['鹤',0,0,20,75,43,72,4],
['伊势',0,0,9,66,52,61,4],
['甚八',0,1,3,76,48,80,4],
['镰之介',0,1,12,84,57,79,4],
['清海',0,1,12,82,53,65,4],
['伊三',0,1,1,80,43,65,4],
['义辉',0,1,18,92,45,92,6],
['义昭',0,1,23,14,86,80,3],
['久秀',0,1,15,62,92,65,6],
['十兵卫',0,1,14,91,32,50,5],
['信纲',0,1,7,95,42,70,5],
['卜传',0,1,4,95,30,50,4],
['阿通',0,0,6,67,51,50,3]
];

var Type_Name = ["普","斗","飞","毒","地","岩","虫","鬼","钢","火","水","草","电","超","冰","龙","恶"];
var Power_Name = [" ","气势","坚硬守护","全速力","激励","速攻","治愈之歌","魂心","坚硬装束","眼力","狙击","研磨","跳跃","擅长附赠","魄力","奇袭","友情","深呼吸","活泼","心情愉快","祛病","大声","舒适温度","贪婪","光辉勇气","满溢勇气","巨大野望","无尽野望","治愈之光","天下之梦","天下人","反抗心","雷神之声","谋略家","清澈眼瞳","喝彩","宁宁忍法","风林火山","独眼龙","军神","优雅的极致","顶梁柱","魔性之牙","浑沌之风","不折之心","无所事事","冷彻","风神之声","神秘波动","忍者的极意","小恶魔","武士的坚持","爱的猎人","爱与正义","包容力","顽皮公主","歌舞伎舞","一心一意的思念","天下无双","大和抚子","大歌舞伎","敏锐头脑","坚毅信念","男人的觉悟"];
var Gender1 = ['♀','♂'];
var Gender2 = ['deeppink','blue'];

var blnInpage = (location.href.indexOf('%E6%9C%80%E5%A4%A7%E8%BF%9E%E6%8E%A5')==-1);
if ( Pokemon == '雪妖女' ) { for (var i=0;i<Bushou.length;i++) { if (Bushou[i][2]==1) { maxlinks[i] = 0 }; } }
if ( Pokemon == '艾路雷朵' ) { for (var i=0;i<Bushou.length;i++) { if (Bushou[i][2]==0) { maxlinks[i] = 0 }; } }

var table = '<table class="color p_' + color + ' maxlinks' + (blnInpage?' collapsible collapsed':'') + '" style="text-align:center;margin-left:2em"><tbody><tr class="uncollapsible"><th class="sortable" style="width:90px">武将</th><th class="sortable">力量</th><th class="sortable">智慧</th><th class="sortable">魅力</th><th class="sortable">器用</th><th class="sortable" style="width:100px">武将之力</th><th class="sortable">最大连接</th></tr>';

for (var i=0;i<Bushou.length;i++) {
	Bushou[i][8]=maxlinks[i];
	Bushou[i][9]=i;
}
if ( blnInpage ) Bushou.sort(function s(a,b) {return b[8]-a[8];});

for (var i=0;i<Bushou.length;i++) {
	var v = Bushou[i][8];
	if ( blnInpage && v==0) continue;
	table += '<tr ' + (blnInpage?((v >= 80)? 'class="uncollapsible"':''):'') + '><td data-sort-value="'+Bushou[i][9]+'"><span style="float:right;color:'+Gender2[Bushou[i][2]]+'">'+Gender1[Bushou[i][2]]+'</span><a href="http://www.pokemon.name/wiki/'+Bushou[i][0]+'(武将)"'+((Bushou[i][1]>0)?' style="color:#684830;font-weight:bold"':'')+'>'+Bushou[i][0]+'</a>'+( (Bushou[i][1]>0)?["","<sup>I</sup>","<sup>II</sup>","<sup>III</sup>"][Bushou[i][1]] : '' ) + '</td>';
	table += '<td>' + Bushou[i][4] + '</td><td>' + Bushou[i][5] + '</td><td>' + Bushou[i][6] + '</td><td>' + Bushou[i][7] + '</td>';
	table += '<td>' + Power_Name[Bushou[i][3]] + '</td>';
	var cn = '';
	if ( v >= 90 ) {
		cn = 'color: #ce9c10; font-weight:bold;';
	} else if ( v >= 70 ) {
		cn = 'color: #7b6342;';
	} else if ( v >= 50 ) {
		cn = 'color: #b56b21;';
	} else if ( v == 0 ) {
		cn = 'color: red;';
	}
	table += '<td data-sort-value="'+v+'" style="' + cn + '">' + ( ( v > 0 ) ? v + "%" : "×" ) + '</td>';
	table += '</tr>\n';
}
if (blnInpage) table += '<tr class="collapsible-toggle unsortable" style="font-size:88%"><th colspan=7><span class="collapsible-toggleShow">▼更多▼</span><span class="collapsible-toggleHide">▲折叠▲</span></th></tr>';

table += '</tbody></table>';
document.write(table);
document.getElementById("js").innerHTML = '';