$(function(){
tabFlagMap["furnace"] = false;
tabFuncMap.furnace = function(){
var index = 1;
var furnaceUnFindMsg = "没有找到装备,一定是你没充值VIP!";
if(curVersionIndex==""){
furnaceUnFindMsg = "作者不想给你们看~";
}else{
$.each(furnacetable,function(key,map){
var tr = $("
");
$("#furnaceTable tbody").append(tr);
var materialName = $(" | ").append(findMapTips(map.ID).append("×"+map["需求数"]));
var target = $(" | ").append(map["精元对象"]<0?"任意怪物×"+map["精元数"]:findMapTips(map["精元对象"]).append("×"+map["精元数"]));
var product = $(" | ").append(findMapTips(map["产物"]));
var product1 = $(" | ");
if(map["变异1"]>0){
product1 = $(" | ").append(findMapTips(map["变异1产物"]).append("("+map["变异1"]+")"));
}
var product2 = $(" | ");
if(map["变异2"]>0){
product2 = $(" | ").append(findMapTips(map["变异2产物"]).append("("+map["变异2"]+")"));
}
var effect = $(""+map.DESCRIPT+" | ");
var base = $(" | ");
if(map["基数"]>0){
base.append(map["基数"]);
}
tr.append($(""+map.INDEX+" | "));
tr.append(""+index+" | ");
tr.append(materialName);
tr.append(target);
tr.append(effect);
tr.append(base);
tr.append(product);
tr.append(product1);
tr.append(product2);
materialName.append(""+map["PY"]+"");
index++;
});
}
/*furnaceTable*/
$('#furnaceTable').dataTable( {
"pagingType": "full_numbers",
"language": {
"lengthMenu": "每页 _MENU_ 条记录",
"zeroRecords": furnaceUnFindMsg,
"info": "第 _PAGE_ 页 ( 总共 _PAGES_ 页 )",
"infoEmpty": "没有装备",
"infoFiltered": "(从 _MAX_ 条装备过滤)",
"search": "搜索(可用原料首字母):",
"paginate": {
"first": "首页(W)",
"last": "末页(S)",
"next": "下一页(D)",
"previous": "上一页(A)"
},
},
// 默认按照索引排序,且隐藏索引列
"order": [[ 0, "asc" ]],
"columnDefs": [
{
"targets": [ 0 ],
"visible": false,
"searchable": false
},
]
});
$('#furnaceTable th').css("text-align","center");
}
});