|
|
@ -45,6 +45,7 @@ function calculateFight(array $char1, array $char2) {
|
|
|
|
|
|
|
|
|
|
|
|
################## Init Kaempfer 1
|
|
|
|
################## Init Kaempfer 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//aktuelle hp [0] max hp [1]
|
|
|
|
$k_hp1 = explode(',', $chara_1['hp']);
|
|
|
|
$k_hp1 = explode(',', $chara_1['hp']);
|
|
|
|
$k_mp1 = explode(',', $chara_1['mp']);
|
|
|
|
$k_mp1 = explode(',', $chara_1['mp']);
|
|
|
|
|
|
|
|
|
|
|
@ -57,7 +58,8 @@ function calculateFight(array $char1, array $char2) {
|
|
|
|
// readout the attacks of fighter one
|
|
|
|
// readout the attacks of fighter one
|
|
|
|
|
|
|
|
|
|
|
|
$k_attacke1 = convertLearnIDToAttackID(explode(',', $chara_1['attacken']), $chara_1['id']);
|
|
|
|
$k_attacke1 = convertLearnIDToAttackID(explode(',', $chara_1['attacken']), $chara_1['id']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//aktuelle hp Spieler 1[0] Spieler 2[1]
|
|
|
|
$k_hp[0] = round($k_hp1[0]);
|
|
|
|
$k_hp[0] = round($k_hp1[0]);
|
|
|
|
$k_mp[0] = round($k_mp1[0]);
|
|
|
|
$k_mp[0] = round($k_mp1[0]);
|
|
|
|
|
|
|
|
|
|
|
@ -65,7 +67,8 @@ function calculateFight(array $char1, array $char2) {
|
|
|
|
$k_aufgabe[0] = $k_aufgabe_a_1 * $chara_1['aufgeben'];
|
|
|
|
$k_aufgabe[0] = $k_aufgabe_a_1 * $chara_1['aufgeben'];
|
|
|
|
|
|
|
|
|
|
|
|
################## Init Kaempfer 2
|
|
|
|
################## Init Kaempfer 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//aktuelle hp [0] max hp [1]
|
|
|
|
$k_hp2 = explode(',', $chara_2['hp']);
|
|
|
|
$k_hp2 = explode(',', $chara_2['hp']);
|
|
|
|
$k_mp2 = explode(',', $chara_2['mp']);
|
|
|
|
$k_mp2 = explode(',', $chara_2['mp']);
|
|
|
|
|
|
|
|
|
|
|
@ -77,6 +80,7 @@ function calculateFight(array $char1, array $char2) {
|
|
|
|
|
|
|
|
|
|
|
|
$k_attacke2 = convertLearnIDToAttackID(explode(',', $chara_2['attacken']), $chara_2['id']);
|
|
|
|
$k_attacke2 = convertLearnIDToAttackID(explode(',', $chara_2['attacken']), $chara_2['id']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//aktuelle hp Spieler 1[0] Spieler 2[1]
|
|
|
|
$k_hp[1] = round($k_hp2[0]);
|
|
|
|
$k_hp[1] = round($k_hp2[0]);
|
|
|
|
$k_mp[1] = round($k_mp2[0]);
|
|
|
|
$k_mp[1] = round($k_mp2[0]);
|
|
|
|
|
|
|
|
|
|
|
@ -169,10 +173,11 @@ function calculateFight(array $char1, array $char2) {
|
|
|
|
include (ROOT_PATH . '/include/kampf/lose2.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/lose2.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/ausdauer.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/ausdauer.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/mpv.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/mpv.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/tausch.php');
|
|
|
|
|
|
|
|
include (ROOT_PATH . '/include/kampf/hpmp.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/hpmp.php');
|
|
|
|
//Als letztes um alle HP-Attacken zu kontern (in $tmp_hp gespeichert)
|
|
|
|
//Als letztes um alle HP-Attacken zu kontern (in $tmp_hp gespeichert)
|
|
|
|
include (ROOT_PATH . '/include/kampf/konter_heal.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/konter_heal.php');
|
|
|
|
|
|
|
|
//Nach Konterheal, damit überstehende HP bleibt
|
|
|
|
|
|
|
|
include (ROOT_PATH . '/include/kampf/tausch.php');
|
|
|
|
//include "kampf/summon.php";
|
|
|
|
//include "kampf/summon.php";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
include (ROOT_PATH . '/include/kampf/atk_wert.php');
|
|
|
|
include (ROOT_PATH . '/include/kampf/atk_wert.php');
|
|
|
|