function rankConvert($Num, $Bold = 'Bold') { $NumRanks = count($GLOBALS["MainRanks"]); $rankIndex = $Num == 100000 ? $NumRanks - 1 : floor($Num / 100000 * $NumRanks); $Ranks = $GLOBALS["MainRanks"]; return "<font style=\"font-weight: {$Bold}; color: " . colorConvert($Num, 100000) . "\">" . $Ranks[$rankIndex] . "</font>"; }
$ShowHpRec = '不会回复'; } if ($SysMsDetail['enrec'] >= 1) { $ShowEnRec = intval($SysMsDetail['enrec']) + $EN_BASE_RECOVERY . '/秒'; } elseif ($SysMsDetail['enrec'] < 1 && $SysMsDetail['enrec'] != 0) { $ShowEnRec = $SysMsDetail['enrec'] * 100 . '% /秒'; } else { $ShowEnRec = '不会回复'; } echo "<tr align=center class=buymslist onMouseover=\"this.style.color='yellow';\" onMouseout=\"this.style.color=''\"><span onClick=\"location.replace('#imagetop');buymsform.BuyMsDesired.value='{$SysMsDetail['id']}';switchmsImg();alert('机体名称:\\n{$SysMsDetail['msname']}\\n-------------------------\\nHP: {$SysMsDetail['hpfix']}\\tEN: {$SysMsDetail['enfix']}\\n攻: {$SysMsDetail['atf']}\\t防: {$SysMsDetail['def']}\\n命中: {$SysMsDetail['taf']}\\t反应: {$SysMsDetail['ref']}\\n-------------------------\\nHP回复率: {$SysMsDetail['hprec']}\\nEN回复率: {$SysMsDetail['enrec']}')\">"; echo "<td width=\"20\">{$c}</td>"; echo "<td width=\"195\" id=ms_" . $SysMsDetail['id'] . "_name>{$SysMsDetail['msname']}</td>"; $AtfClr = colorConvert("{$SysMsDetail['atf']}", '30'); $DefClr = colorConvert("{$SysMsDetail['def']}", '30'); $RefClr = colorConvert("{$SysMsDetail['ref']}", '30'); $TafClr = colorConvert("{$SysMsDetail['taf']}", '30'); echo "<td width=\"50\" style=\"color: {$AtfClr}\">{$SysMsDetail['atf']}</td>"; echo "<td width=\"50\" style=\"color: {$DefClr}\">{$SysMsDetail['def']}</td>"; echo "<td width=\"50\" style=\"color: {$RefClr}\">{$SysMsDetail['ref']}</td>"; echo "<td width=\"50\" style=\"color: {$TafClr}\">{$SysMsDetail['taf']}</td>"; echo "<td width=\"50\">{$SysMsDetail['hpfix']}</td>"; echo "<td width=\"55\">{$ShowHpRec}</td>"; echo "<td width=\"50\">{$SysMsDetail['enfix']}</td>"; echo "<td width=\"55\">{$ShowEnRec}</td>"; echo "<td width=\"30\">{$SysMsDetail['needlv']}</td>"; echo "<td width=\"85\">{$SysMsDetail['price']}</td>"; echo "</span></tr>"; $SWITCHMSIMGFUNCTION .= "if (document.buymsform.BuyMsDesired.value == '{$SysMsDetail['id']}'){document.ms_sel.src='{$Unit_Image_Dir}/{$SysMsDetail['image']}';msnamesel.innerText=ms_" . $SysMsDetail[id] . "_name.innerText;priceselctd.innerText='{$SysMsDetail['price']}'}"; $BuyMsPossibilities .= "<option value={$SysMsDetail['id']}>{$SysMsDetail['msname']}"; unset($SysMsDetail); }
$StatusShow = "可發進"; $StatusColor = '#143DC1'; break; case 1: $StatusShow = "修理中"; $StatusColor = '#FF2200'; break; } $ShowAt = $PlGameVal['attacking'] * 0.3; $ShowDe = $PlGameVal['defending'] * 0.3; $ShowRe = $PlGameVal['reacting'] * 0.3; $ShowTa = $PlGameVal['targeting'] * 0.3; $AtClr = colorConvert("{$PlGameVal['attacking']}"); $DeClr = colorConvert("{$PlGameVal['defending']}"); $ReClr = colorConvert("{$PlGameVal['reacting']}"); $TaClr = colorConvert("{$PlGameVal['targeting']}"); $NextStatPt_At = $PlGameVal['attacking'] + 1; $NextStatPt_De = $PlGameVal['defending'] + 1; $NextStatPt_Re = $PlGameVal['reacting'] + 1; $NextStatPt_Ta = $PlGameVal['targeting'] + 1; CalcStatReq('At', "{$NextStatPt_At}"); $AtAdd = ''; CalcStatReq('De', "{$NextStatPt_De}"); $DeAdd = ''; CalcStatReq('Re', "{$NextStatPt_Re}"); $ReAdd = ''; CalcStatReq('Ta', "{$NextStatPt_Ta}"); $TaAdd = ''; $Area = ReturnMap("{$UsrGenrl['coordinates']}"); $AreaLandForm = ReturnMType($Area["Sys"]["type"]); $LandFormBg = ReturnMBg($Area["Sys"]["type"]);
echo "<div align=left style=\"font-size: 16pt;height: 100%\">完成了!<br>現在你的{$ShowCompl}<br>"; echo "<input type=submit value=\"返回\">"; echo "<input type=hidden value='{$Pl_Value['USERNAME']}' name=Pl_Value[USERNAME]>"; echo "<input type=hidden value='{$Pl_Value['PASSWORD']}' name=Pl_Value[PASSWORD]>"; echo "<input type=hidden name=\"TIMEAUTH\" value=\"{$CFU_Time}\">"; echo "</div>"; echo "</form>"; } elseif ($Game_Scrn_Type == 0) { $disableImg = "{$General_Image_Dir}/neo/plus_sign_grey.gif"; echo "<script type=\"text/JavaScript\">"; echo "parent.document.getElementById('pl_growth').innerHTML = " . $Gen['growth'] . ";"; echo "parent.document.getElementById('" . $stat_added . "_addlink').style.visibility = 'visible';"; if ($stat_added != 'spmax') { CalcStatReq('New', $Game[$stat_added] + 1); echo "parent.document.getElementById('pl_" . $stat_added . "').innerHTML = " . $Game[$stat_added] . ";"; echo "parent.document.getElementById('pl_" . $stat_added . "').style.color = '" . colorConvert($Game[$stat_added]) . "';"; if ($Game[$stat_added] < 150) { echo "parent.document.getElementById('" . $stat_added . "_stat_req').innerHTML = " . $New_Stat_Req . ";"; } echo "if (parseInt(parent.document.getElementById('attacking_stat_req').innerHTML) > parseInt(parent.document.getElementById('pl_growth').innerHTML || parseInt(parent.document.getElementById('pl_attacking').innerHTML) >= 150))"; echo "{parent.document.getElementById('attacking_addlink').style.cursor = 'default';parent.document.getElementById('attacking_addlink').src = '{$disableImg}';}"; echo "if (parseInt(parent.document.getElementById('defending_stat_req').innerHTML) > parseInt(parent.document.getElementById('pl_growth').innerHTML || parseInt(parent.document.getElementById('pl_defending').innerHTML) >= 150))"; echo "{parent.document.getElementById('defending_addlink').style.cursor = 'default';parent.document.getElementById('defending_addlink').src = '{$disableImg}';}"; echo "if (parseInt(parent.document.getElementById('reacting_stat_req').innerHTML) > parseInt(parent.document.getElementById('pl_growth').innerHTML || parseInt(parent.document.getElementById('pl_reacting').innerHTML) >= 150))"; echo "{parent.document.getElementById('reacting_addlink').style.cursor = 'default';parent.document.getElementById('reacting_addlink').src = '{$disableImg}';}"; echo "if (parseInt(parent.document.getElementById('targeting_stat_req').innerHTML) > parseInt(parent.document.getElementById('pl_growth').innerHTML || parseInt(parent.document.getElementById('pl_targeting').innerHTML) >= 150))"; echo "{parent.document.getElementById('targeting_addlink').style.cursor = 'default';parent.document.getElementById('targeting_addlink').src = '{$disableImg}';}"; if ($Game[$stat_added] >= 150) { echo "parent.document.getElementById('" . $stat_added . "_stat_req').innerHTML = 'N/A';"; } } else {
// Apply JS Update $Pl_MS_JSUpdate = ''; if ($UpdateMSFlag['Pl'] && $Game_Scrn_Type == 0) { if ($Pl->Player['ms_custom']) { $temp = explode('<!>', $Pl->Player['ms_custom']); } else { $temp = array(0, 0, 0, 0, 0); } $Pl_MS_JSUpdate = "parent.document.getElementById('ms_at').innerHTML = " . ($Pl->MS['atf'] - $temp[1]) . ";"; $Pl_MS_JSUpdate .= "parent.document.getElementById('ms_at').style.color = '" . colorConvert($Pl->MS['atf'] - $temp[1], 50) . "';"; $Pl_MS_JSUpdate .= "parent.document.getElementById('ms_de').innerHTML = " . ($Pl->MS['def'] - $temp[2]) . ";"; $Pl_MS_JSUpdate .= "parent.document.getElementById('ms_de').style.color = '" . colorConvert($Pl->MS['def'] - $temp[2], 50) . "';"; $Pl_MS_JSUpdate .= "parent.document.getElementById('ms_re').innerHTML = " . ($Pl->MS['ref'] - $temp[3]) . ";"; $Pl_MS_JSUpdate .= "parent.document.getElementById('ms_re').style.color = '" . colorConvert($Pl->MS['ref'] - $temp[3], 50) . "';"; $Pl_MS_JSUpdate .= "parent.document.getElementById('ms_ta').innerHTML = " . ($Pl->MS['taf'] - $temp[4]) . ";"; $Pl_MS_JSUpdate .= "parent.document.getElementById('ms_ta').style.color = '" . colorConvert($Pl->MS['taf'] - $temp[4], 50) . "';"; $Pl_MS_JSUpdate .= "parent.document.ms_img.src = '" . $Unit_Image_Dir . '/' . $Pl->MS['image'] . "';"; } //End Trans-AM System //Start Battle echo "<table width=100% border='0' style=\"border-collapse: collapse\" align=center style=\"font-size: 12pt;font-family: Comic Sans MS;\" cellspacing=0 cellpadding=0>"; echo "<tr height=50 valign=bottom align=center>"; echo "<td bgcolor=" . $Pl->Player['color'] . " width=50%><font face=\"Comic Sans MS\" style=\"font-size: 24pt;\"><b style=\"color: " . invertColor($Pl->Player['color']) . "\">" . $Pl->Player['gamename'] . "</b></font></td>"; echo "<td bgcolor=" . $Op->Player['color'] . " width=50%><font face=\"Comic Sans MS\" style=\"font-size: 24pt;\"><b style=\"color: " . invertColor($Op->Player['color']) . "\">" . $Op->Player['gamename'] . "</b></font></td>"; echo "</tr>"; echo "<tr valign=center align=center>"; echo "<td><br><br><img src=" . $Unit_Image_Dir . '/' . $Pl->MS['image'] . '><br></td>'; echo "<td><br><br><img src=" . $Unit_Image_Dir . '/' . $Op->MS['image'] . '><br></td>'; echo "</tr>"; echo "<tr valign=center align=center>"; echo '<td><br>' . $Pl->MS['msname'] . '<br></td>';
echo "<td width=\"50\">Att</td>"; echo "<td width=\"50\">Def</td>"; echo "<td width=\"50\">Mob</td>"; echo "<td width=\"50\">Tar</td>"; echo "<td width=\"100\">HP</td>"; echo "<td width=\"100\">EN</td>"; echo "</tr>"; echo "<tr align=center style=\"cursor: pointer\" onClick=\"confirmTake('{$Hangar['h_id']}');\">"; echo "<td style=\"color: " . colorConvert($Hangar['atf'], 50) . "\">{$Hangar['atf']}</td>"; echo "<td style=\"color: " . colorConvert($Hangar['def'], 50) . "\">{$Hangar['def']}</td>"; echo "<td style=\"color: " . colorConvert($Hangar['ref'], 50) . "\">{$Hangar['ref']}</td>"; echo "<td style=\"color: " . colorConvert($Hangar['taf'], 50) . "\">{$Hangar['taf']}</td>"; echo "<td><span style=\"color: " . colorConvert($Hangar['h_hp'], $Hangar['h_hpmax']) . "\">{$Hangar['h_hp']}</span> / "; echo "<span style=\"color: " . colorConvert($Hangar['h_hpmax'], $Max_HP) . "\">{$Hangar['h_hpmax']}</span></td>"; echo "<td><span style=\"color: " . colorConvert($Hangar['h_en'], $Hangar['h_enmax']) . "\">{$Hangar['h_en']}</span> / "; echo "<span style=\"color: " . colorConvert($Hangar['h_enmax'], $Max_EN) . "\">{$Hangar['h_enmax']}</span></td>"; echo "</tr>"; echo "<tr align=center style=\"cursor: pointer\" onClick=\"confirmTake('{$Hangar['h_id']}');\">"; echo "<td style=\"color: ForestGreen; font-weight: Bold\">{$Hangar['h_id']}</td>"; echo "<td style=\"color: ForestGreen; font-weight: Bold\">{$Hangar['msname']}</td>"; echo "<td colspan=8>"; echo "<table align=center border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#FFFFFF\" width=\"100%\">"; echo "<tr align=center>"; echo "<td width=\"20%\">武器</td>"; echo "<td width=\"20%\">備用一</td>"; echo "<td width=\"20%\">備用二</td>"; echo "<td width=\"20%\">輔助裝備</td>"; echo "<td width=\"20%\">常規裝備</td>"; echo "</tr><tr align=center>"; unset($I); $Eq_Listing = array('A' => 'h_wepa', 'B' => 'h_wepb', 'C' => 'h_wepc', 'D' => 'h_eqwep', 'E' => 'h_p_equip');
echo "<td valign=top rowspan=4 width=180 style=\"font-size: 8pt;padding-left: 5px\"><font style=\"font-size: 10pt\">特殊效果:</font><br><div style=\"margin-left: 10px; padding-left: 10px;\">"; echo ReturnSpecs($Ms['spec']); echo "</span></td></tr>"; echo "<tr style=\"font-weight: Bold;\">"; echo "<td width=60 align=center>Defending</td>"; echo "<td width=30 align=right style=\"color: " . colorConvert($Ms['def'], 75) . "\" id=ms_de>" . $Ms['def'] . "</td>"; echo "<td width=30 style=\"color: yellow\"> (+<span id=ms_c_de>{$Ms_De_Mod}</span>)</td>"; echo "</tr>"; echo "<tr style=\"font-weight: Bold;\">"; echo "<td width=60 align=center>Mobility</td>"; echo "<td width=30 align=right style=\"color: " . colorConvert($Ms['ref'], 75) . "\" id=ms_re>" . $Ms['ref'] . "</td>"; echo "<td width=30 style=\"color: yellow\"> (+<span id=ms_c_re>{$Ms_Re_Mod}</span>)</td>"; echo "</tr>"; echo "<tr style=\"font-weight: Bold;\">"; echo "<td width=60 align=center>Targeting</td>"; echo "<td width=30 align=right style=\"color: " . colorConvert($Ms['taf'], 75) . "\" id=ms_ta>" . $Ms['taf'] . "</td>"; echo "<td width=30 style=\"color: yellow\"> (+<span id=ms_c_ta>{$Ms_Ta_Mod}</span>)</td>"; echo "</tr>"; echo "<tr><td colspan=4> </td></tr>"; echo "</table>"; echo "</td></tr>"; echo "</table>"; echo "</div>"; //Pilot Status Screen echo "<div id=PilotStat style=\"position:absolute; right: -1125px; top: 55px; height: 294px; width: 320px;z-index: 1;\" onMouseOver=focusZ(this.id) onMouseOut=blurZ(this.id) > "; echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" width=\"100%\"><tr height=114>"; echo "<td width=26 style=\"background-Image: url('{$General_Image_Dir}/neo/table_pilot_l.png');\"> </td>"; echo "<td width=294 style=\"background-color: {$Player['color']};\"><img src='{$General_Image_Dir}/neo/table_pilot_r.png'></td>"; echo "</tr><tr><td height=180 colspan=2 style=\"background-Image: url('{$General_Image_Dir}/neo/table_bg.gif');\" valign=top>"; echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse;\" width=\"100%\">"; echo "<tr style=\"font-weight: Bold;\">";