コード例 #1
0
 // Analyze Use of Tactics
 $Pl->Tactics = GetTactics($Pl_GTctcs);
 $Pl->checkTactics($Pl_GTctcs);
 $Op->Tactics = selectOpponentTactic($Op->Player['tactics']);
 $Pl->initSpCost();
 $Op->initSpCost();
 $Pl->iniFixes();
 $Op->iniFixes();
 // Analyze Hypermode State
 $Pl->analyzeHypermodeState();
 // Grant DefX to Enhanced Hypermode
 $Pl->analyzeEnhHM();
 // Process MS
 $Pl->ProcessMS();
 if ($AtkFortFlag != 1) {
     $Op->ProcessMS();
 } else {
     $Op->MS = array('id' => 'Fortress', 'msname' => $Pl->Player['coordinates'] . '區域要塞', 'atf' => $Area_At, 'def' => $Area_De, 'ref' => 0, 'taf' => $Area_Ta, 'hpfix' => 0, 'enfix' => 0, 'needlv' => 200000, 'price' => 0, 'spec' => 'AntiDam', 'image' => 'fortress.gif');
 }
 // Repair Opponent
 if (!$isAtkFortName) {
     $Op_Repaired = RepairPlayer($Op->Player, $Op->Eq['D'], $Op->Eq['E']);
     $Op->Player['hp'] = $Op_Repaired['hp'];
     $Op->Player['en'] = $Op_Repaired['en'];
     $Op->Player['sp'] = $Op_Repaired['sp'];
     $Op->Player['status'] = $Op_Repaired['status'];
 }
 // Process Opponent Weapon Data
 $Op->ProcessAllWeapon();
 // Apply Condition Bonus & Penalty
 $Pl->apply_condition_bonus();