skillGrp = new Array(83);
skillGrp[1] = "受身";
skillGrp[2] = "運気";
skillGrp[3] = "運搬";
skillGrp[4] = "自動防御";
skillGrp[5] = "ガード性能";
skillGrp[6] = "回復";
skillGrp[7] = "回復速度";
skillGrp[8] = "拡散弾追加";
skillGrp[9] = "加護";
skillGrp[10] = "雷耐性";
skillGrp[11] = "貫通弾強化";
skillGrp[12] = "貫通弾追加";
skillGrp[13] = "気絶";
skillGrp[14] = "気まぐれ";
skillGrp[15] = "斬れ味";
skillGrp[16] = "食いしん坊";
skillGrp[17] = "気配";
skillGrp[18] = "達人";
skillGrp[19] = "広域回復";
skillGrp[20] = "広域解毒";
skillGrp[21] = "攻撃";
skillGrp[22] = "採取";
skillGrp[23] = "散弾強化";
skillGrp[24] = "散弾追加";
skillGrp[25] = "睡眠";
skillGrp[26] = "全耐性UP";
skillGrp[27] = "千里眼";
skillGrp[28] = "装填";
skillGrp[29] = "耐寒";
skillGrp[30] = "耐暑";
skillGrp[31] = "体力";
skillGrp[32] = "匠";
skillGrp[33] = "種広域化";
skillGrp[34] = "弾調合";
skillGrp[35] = "地図";
skillGrp[36] = "聴覚保護";
skillGrp[37] = "調合成功率";
skillGrp[38] = "通常弾強化";
skillGrp[39] = "通常弾追加";
skillGrp[40] = "釣り";
skillGrp[41] = "胴系統+1";
skillGrp[42] = "胴系統+2";
skillGrp[43] = "胴系統倍加";
skillGrp[44] = "投擲";
skillGrp[45] = "研ぎ師";
skillGrp[46] = "毒";
skillGrp[47] = "特殊攻撃";
skillGrp[48] = "肉";
skillGrp[49] = "盗み無効";
skillGrp[50] = "爆弾強化";
skillGrp[51] = "はらへり";
skillGrp[52] = "反動";
skillGrp[53] = "火耐性";
skillGrp[54] = "風圧";
skillGrp[55] = "笛";
skillGrp[56] = "防御";
skillGrp[57] = "麻痺";
skillGrp[58] = "水耐性";
skillGrp[59] = "龍耐性";
skillGrp[60] = "榴弾追加";
skillGrp[61] = "錬金術";
skillGrp[62] = "連射";
skillGrp[63] = "高速収集";
skillGrp[64] = "回避性能";
skillGrp[65] = "底力";
skillGrp[66] = "効果持続";
skillGrp[67] = "スタミナ";
skillGrp[68] = "装填数";
skillGrp[69] = "精密射撃";
skillGrp[70] = "モンスター";
skillGrp[71] = "食事";
skillGrp[72] = "剥ぎ取り";
skillGrp[73] = "地形";
skillGrp[74] = "抗菌・抗毒";
skillGrp[75] = "耐雪";
skillGrp[76] = "氷耐性";
skillGrp[77] = "耐震";
skillGrp[78] = "広域";
skillGrp[79] = "声帯";
skillGrp[80] = "肉焼き";
skillGrp[81] = "砲術師";
function ShowBoguList()
{
html = "";
html += "
";
html += "頭装備 |
";
html += FormatHeadList();
html += "
";
headlist.innerHTML = html;
html = "";
html += "";
html += "胴装備 |
";
html += FormatArmorList();
html += "
";
armorlist.innerHTML = html;
html = "";
html += "";
html += "腕装備 |
";
html += FormatArmList();
html += "
";
armlist.innerHTML = html;
html = "";
html += "";
html += "腰装備 |
";
html += FormatWaistList();
html += "
";
waistlist.innerHTML = html;
html = "";
html += "";
html += "脚装備 |
";
html += FormatFootList();
html += "
";
footlist.innerHTML = html;
html = "";
html += "";
html += "装飾品 |
";
html += FormatSoshList();
html += "
";
soshlist.innerHTML = html;
}
//------------------------------------------
// 頭装備のリスト作成
//------------------------------------------
function FormatHeadList()
{
thtml = "";
for (i=1; i<253; i++) {
tval = SearchBogu(headspec[i]);
if (tval.length > 0) {
thtml += "";
thtml += "" + headname[i] + " | ";
thtml += "防:" + Number(headspec[i].substring(42,44)) + " | ";
thtml += "ス:" + Number(headspec[i].substring(44,45)) + " | ";
thtml += "" + tval + " | ";
thtml += "
";
}
}
return thtml;
}
//------------------------------------------
// 胴装備のリスト作成
//------------------------------------------
function FormatArmorList()
{
thtml = "";
for (i=1; i<243; i++) {
tval = SearchBogu(armorspec[i]);
if (tval.length > 0) {
thtml += "";
thtml += "" + armorname[i] + " | ";
thtml += "防:" + Number(armorspec[i].substring(42,44)) + " | ";
thtml += "ス:" + Number(armorspec[i].substring(44,45)) + " | ";
thtml += "" + tval + " | ";
thtml += "
";
}
}
return thtml;
}
//------------------------------------------
// 腕装備のリスト作成
//------------------------------------------
function FormatArmList()
{
thtml = "";
for (i=1; i<238; i++) {
tval = SearchBogu(armspec[i]);
if (tval.length > 0) {
thtml += "";
thtml += "" + armname[i] + " | ";
thtml += "防:" + Number(armspec[i].substring(42,44)) + " | ";
thtml += "ス:" + Number(armspec[i].substring(44,45)) + " | ";
thtml += "" + tval + " | ";
thtml += "
";
}
}
return thtml;
}
//------------------------------------------
// 腰装備のリスト作成
//------------------------------------------
function FormatWaistList()
{
thtml = "";
for (i=1; i<237; i++) {
tval = SearchBogu(waistspec[i]);
if (tval.length > 0) {
thtml += "";
thtml += "" + waistname[i] + " | ";
thtml += "防:" + Number(waistspec[i].substring(42,44)) + " | ";
thtml += "ス:" + Number(waistspec[i].substring(44,45)) + " | ";
thtml += "" + tval + " | ";
thtml += "
";
}
}
return thtml;
}
//------------------------------------------
// 脚装備のリスト作成
//------------------------------------------
function FormatFootList()
{
thtml = "";
for (i=1; i<236; i++) {
tval = SearchBogu(footspec[i]);
if (tval.length > 0) {
thtml += "";
thtml += "" + footname[i] + " | ";
thtml += "防:" + Number(footspec[i].substring(42,44)) + " | ";
thtml += "ス:" + Number(footspec[i].substring(44,45)) + " | ";
thtml += "" + tval + " | ";
thtml += "
";
}
}
return thtml;
}
//------------------------------------------
// 装飾品のリスト作成
//------------------------------------------
function FormatSoshList()
{
thtml = "";
for (i=1; i<123; i++) {
tval = SearchSosh(soshspec[i]);
if (tval.length > 0) {
thtml += "";
thtml += "" + soshname[i] + " | ";
thtml += "ス:" + Number(soshspec[i].substring(24,25)) + " | ";
thtml += "" + tval + " | ";
thtml += "
";
}
}
return thtml;
}
//****************************************************************
// 引数のスキル系統があるかサーチ(防具)
//****************************************************************
function SearchBogu(data)
{
skgNo = Number(document.location.search.substring(1));
skgVal = 0;
for (ic=2; ic<32; ic+=6) {
if (skgNo == Number(data.substring(ic,ic+3))) {
skgVal += Number(data.substring(ic+3,ic+6));
}
}
if (skgVal <= 0) {
skgNo = Number(data.substring(2,5));
if (skgNo == 41) { //胴系統+1
return "胴+1";
} else if (skgNo == 42) { //胴系統+2
return "胴+2";
} else if (skgNo == 43) { //胴系統倍加
return "胴x2";
}
return "";
}
return "+" + String(skgVal);
}
//****************************************************************
// 引数のスキル系統があるかサーチ(装飾品)
//****************************************************************
function SearchSosh(data)
{
skgNo = Number(document.location.search.substring(1));
skgVal = 0;
for (ic=0; ic<24; ic+=6) {
if (skgNo == Number(data.substring(ic,ic+3))) {
skgVal += Number(data.substring(ic+3,ic+6));
}
}
if (skgVal <= 0) return "";
return "+" + String(skgVal);
}
//****************************************************************
// %0?d で書式化
//****************************************************************
function FixData(numb, nc)
{
ttmp = "00000000" + numb;
tk = ttmp.length;
ttmp = ttmp.substring(tk-nc,tk);
return ttmp;
}
//****************************************************************
// %0?x で書式化
//****************************************************************
function Fix16Data(numb, nc)
{
ttmp = "00000000"+numb.toString(16);
tk = ttmp.length;
ttmp = ttmp.substring(tk-nc, tk);
return ttmp;
}