diff --git a/ag/include/kampf/SSJ.php b/ag/include/kampf/SSJ.php index 6ec0ae5..e47c88b 100644 --- a/ag/include/kampf/SSJ.php +++ b/ag/include/kampf/SSJ.php @@ -8,8 +8,8 @@ ####################SSJ SPIELER 1 -if ($technick1[type] == SSJ) { - $k_mp[0] = $k_mp[0] - $technick1[mp]; +if ($technick1['type'] == 'SSJ') { + $k_mp[0] = $k_mp[0] - $technick1['mp']; if ($k_mp[0] < 0) { $schaden_1 = 'SSJ Verwandlung fehlgeschlagen'; $aktion_AV1[$x] = 'nein'; @@ -18,13 +18,13 @@ if ($technick1[type] == SSJ) { if (!$ssj_tech_1) { - $k_starke[0] = $k_starke[0] * (($technick1[starke] + 1) / 2); - $k_speed[0] = $k_speed[0] * (($technick1[speed] + 1) / 2); - $k_ver[0] = $k_ver[0] * (($technick1[verteidigung] + 1) / 2); + $k_starke[0] = $k_starke[0] * (($technick1['starke'] + 1) / 2); + $k_speed[0] = $k_speed[0] * (($technick1['speed'] + 1) / 2); + $k_ver[0] = $k_ver[0] * (($technick1['verteidigung'] + 1) / 2); - $schaden_1 = $technick1[name].'!!!'; + $schaden_1 = $technick1['name'].'!!!'; $aktion_AV1[$x] = 'nein'; - $ssj_tech_1 = $technick1[level]; + $ssj_tech_1 = $technick1['level']; } } @@ -32,8 +32,8 @@ if ($technick1[type] == SSJ) { ####################SSJ SPIELER 2 -if ($technick2[type] == SSJ) { - $k_mp[1] = $k_mp[1] - $technick2[mp]; +if ($technick2['type'] == 'SSJ') { + $k_mp[1] = $k_mp[1] - $technick2['mp']; if ($k_mp[1] < 0) { $schaden_2 = 'SSJ Verwandlung fehlgeschlagen'; $aktion_AV2[$x] = 'nein'; @@ -41,14 +41,14 @@ if ($technick2[type] == SSJ) { } else { if (!$ssj_tech_2) { - $k_starke[1] = $k_starke[1] * (($technick2[starke] + 1) / 2); - $k_speed[1] = $k_speed[1] * (($technick2[speed] + 1) / 2); - $k_ver[1] = $k_ver[1] * (($technick2[verteidigung] + 1) / 2); + $k_starke[1] = $k_starke[1] * (($technick2['starke'] + 1) / 2); + $k_speed[1] = $k_speed[1] * (($technick2['speed'] + 1) / 2); + $k_ver[1] = $k_ver[1] * (($technick2['verteidigung'] + 1) / 2); - $schaden_2 = $technick2[name].'!!!'; + $schaden_2 = $technick2['name'].'!!!'; $aktion_AV2[$x] = 'nein'; - $ssj_tech_2 = $technick2[level]; + $ssj_tech_2 = $technick2['level']; } } } diff --git a/ag/include/kampf/frucht.php b/ag/include/kampf/frucht.php index 20164d2..cad8b45 100644 --- a/ag/include/kampf/frucht.php +++ b/ag/include/kampf/frucht.php @@ -8,10 +8,10 @@ ####################KAIOKEN SPIELER 1 -if($technick1[type] == 'frucht') { +if($technick1['type'] == 'frucht') { $frucht_stats1 = mysql_fetch_array(mysql_query("SELECT starke, ver, speed, ausdauer, glueck FROM wochen_markt WHERE item='$chara_1[frucht]' LIMIT 1")); -$k_mp[0] = $k_mp[0] - $technick1[mp]; -$k_hp[0] = $k_hp[0] - $technick1[hp]; +$k_mp[0] = $k_mp[0] - $technick1['mp']; +$k_hp[0] = $k_hp[0] - $technick1['hp']; if($k_mp[0] < 0) { $schaden_1 = 'Technik fehlgeschlagen'; $aktion_AV1[$x] = 'nein'; @@ -19,19 +19,19 @@ $k_mp[0] = 0; } else { $schaden_1 = 'Zauber Frucht'; -$k_ausdauer[0] = $k_ausdauer[0] + $frucht_stats1[ausdauer]; -$k_starke[0] = $k_starke[0] + ($frucht_stats1[starke]*$technick1[starke]); -$k_speed[0] = $k_speed[0] + ($frucht_stats1[speed]*$technick1[speed]); -$k_ver[0] = $k_ver[0] + ($frucht_stats1[ver]*$technick1[verteidigung]); -$k_glueck[0] = $k_glueck[0] + $frucht_stats1[glueck]; +$k_ausdauer[0] = $k_ausdauer[0] + $frucht_stats1['ausdauer']; +$k_starke[0] = $k_starke[0] + ($frucht_stats1['starke']*$technick1['starke']); +$k_speed[0] = $k_speed[0] + ($frucht_stats1['speed']*$technick1['speed']); +$k_ver[0] = $k_ver[0] + ($frucht_stats1['ver']*$technick1['verteidigung']); +$k_glueck[0] = $k_glueck[0] + $frucht_stats1['glueck']; $aktion_AV1[$x] = 'nein'; }} ####################KAIOKEN SPIELER 2 -if($technick2[type] == 'frucht') { +if($technick2['type'] == 'frucht') { $frucht_stats2 = mysql_fetch_array(mysql_query("SELECT starke, ver, speed, ausdauer, glueck FROM wochen_markt WHERE item='$chara_2[frucht]' LIMIT 1")); -$k_mp[1] = $k_mp[1] - $technick2[mp]; -$k_hp[1] = $k_hp[1] - $technick2[hp]; +$k_mp[1] = $k_mp[1] - $technick2['mp']; +$k_hp[1] = $k_hp[1] - $technick2['hp']; if($k_mp[1] < 0) { $schaden_2 = 'Technik fehlgeschlagen'; $aktion_AV2[$x] = 'nein'; @@ -39,11 +39,11 @@ $k_mp[1] = 0; } else { $schaden_2 = 'Zauber Frucht'; -$k_ausdauer[1] = $k_ausdauer[1] + $frucht_stats2[ausdauer]; -$k_starke[1] = $k_starke[1] + ($frucht_stats2[starke]*$technick2[starke]); -$k_speed[1] = $k_speed[1] + ($frucht_stats2[speed]*$technick2[speed]); -$k_ver[1] = $k_ver[1] + ($frucht_stats2[ver]*$technick2[verteidigung]); -$k_glueck[1] = $k_glueck[1] + $frucht_stats2[glueck]; +$k_ausdauer[1] = $k_ausdauer[1] + $frucht_stats2['ausdauer']; +$k_starke[1] = $k_starke[1] + ($frucht_stats2['starke']*$technick2['starke']); +$k_speed[1] = $k_speed[1] + ($frucht_stats2['speed']*$technick2['speed']); +$k_ver[1] = $k_ver[1] + ($frucht_stats2[ver]*$technick2['verteidigung']); +$k_glueck[1] = $k_glueck[1] + $frucht_stats2['glueck']; $aktion_AV2[$x] = 'nein'; }} ?> \ No newline at end of file diff --git a/ag/include/kampf/gift.php b/ag/include/kampf/gift.php index 85396bd..175cfcc 100644 --- a/ag/include/kampf/gift.php +++ b/ag/include/kampf/gift.php @@ -13,10 +13,10 @@ if($runden_gif1) { if($runden_gif1 > $x) { $technick1_old = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$attacken_old_id1' LIMIT 1")); - $k_starke[1] = $k_starke[1] - $technick1_old[starke]; - $k_speed[1] = $k_speed[1] - $technick1_old[speed]; - $k_ver[1] = $k_ver[1] - $technick1_old[verteidigung]; - $k_hp[1] = $k_hp[1] - $technick1_old[hp]; + $k_starke[1] = $k_starke[1] - $technick1_old['starke']; + $k_speed[1] = $k_speed[1] - $technick1_old['speed']; + $k_ver[1] = $k_ver[1] - $technick1_old['verteidigung']; + $k_hp[1] = $k_hp[1] - $technick1_old['hp']; } else { $runden_gif1 = ""; @@ -26,9 +26,9 @@ if($runden_gif1) { } -if($technick1[type] == 'gift') { +if($technick1['type'] == 'gift') { -$k_mp[0] = $k_mp[0] - $technick1[mp]; +$k_mp[0] = $k_mp[0] - $technick1['mp']; if($k_mp[0] < 0) { $schaden_2 = 'Keinen Schaden'; $schaden_1 = 'Schädigen fehlgeschlagen'; @@ -38,14 +38,14 @@ $k_mp[0] = 0; $schaden_1 = 'Schädigen'; -$runden_gif1 = $x+$technick1[runden]; -$attacken_old_id1 = $technick1[id]; +$runden_gif1 = $x+$technick1['runden']; +$attacken_old_id1 = $technick1['id']; $runden_gif_technik1 = $x; -$k_starke[1] = $k_starke[1] - $technick1[starke]; -$k_speed[1] = $k_speed[1] - $technick1[speed]; -$k_ver[1] = $k_ver[1] - $technick1[verteidigung]; -$k_hp[1] = $k_hp[1] - $technick1[hp]; +$k_starke[1] = $k_starke[1] - $technick1['starke']; +$k_speed[1] = $k_speed[1] - $technick1['speed']; +$k_ver[1] = $k_ver[1] - $technick1['verteidigung']; +$k_hp[1] = $k_hp[1] - $technick1['hp']; $aktion_AV1[$x] = "nein"; }} @@ -57,10 +57,10 @@ if($runden_gif2) { if($runden_gif2 > $x) { $technick2_old = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$attacken_old_id2' LIMIT 1")); - $k_starke[0] = $k_starke[0] - $technick2_old[starke]; - $k_speed[0] = $k_speed[0] - $technick2_old[speed]; - $k_ver[0] = $k_ver[0] - $technick2_old[verteidigung]; - $k_hp[0] = $k_hp[0] - $technick2_old[hp]; + $k_starke[0] = $k_starke[0] - $technick2_old['starke']; + $k_speed[0] = $k_speed[0] - $technick2_old['speed']; + $k_ver[0] = $k_ver[0] - $technick2_old['verteidigung']; + $k_hp[0] = $k_hp[0] - $technick2_old['hp']; } else { $runden_gif2 = ''; $runden_gif_technik2 = ''; @@ -69,9 +69,9 @@ if($runden_gif2) { } -if($technick2[type] == 'gift') { -# -$k_mp[1] = $k_mp[1] - $technick2[mp]; +if($technick2['type'] == 'gift') { + +$k_mp[1] = $k_mp[1] - $technick2['mp']; if($k_mp[1] < 0) { $schaden_1 = 'Keinen Schaden'; @@ -82,14 +82,14 @@ $k_mp[1] = 0; $schaden_2 = 'Schädigen'; -$attacken_old_id2 = $technick2[id]; -$runden_gif2 = $x+$technick2[runden]; +$attacken_old_id2 = $technick2['id']; +$runden_gif2 = $x+$technick2['runden']; $runden_gif_technik2 = $x; -$k_starke[0] = $k_starke[0] - $technick2[starke]; -$k_speed[0] = $k_speed[0] - $technick2[speed]; -$k_ver[0] = $k_ver[0] - $technick2[verteidigung]; -$k_hp[0] = $k_hp[0] - $technick2[hp]; +$k_starke[0] = $k_starke[0] - $technick2['starke']; +$k_speed[0] = $k_speed[0] - $technick2['speed']; +$k_ver[0] = $k_ver[0] - $technick2['verteidigung']; +$k_hp[0] = $k_hp[0] - $technick2['hp']; $aktion_AV2[$x] = 'nein'; }} diff --git a/ag/include/kampf/hp.php b/ag/include/kampf/hp.php index 7d477eb..25afd01 100644 --- a/ag/include/kampf/hp.php +++ b/ag/include/kampf/hp.php @@ -8,13 +8,13 @@ ####################KAMPF HP SPIELER 1 -if($technick1[type] == normal AND $technick1[hp] > 0) { -$k_hp[0] = $k_hp[0] - $technick1[hp]; +if($technick1['type'] == 'normal' AND $technick1['hp'] > 0) { +$k_hp[0] = $k_hp[0] - $technick1['hp']; } ####################KAMPF HP SPIELER 2 -if($technick2[type] == normal AND $technick2[hp] > 0) { -$k_hp[1] = $k_hp[1] - $technick2[hp]; +if($technick2['type'] == 'normal' AND $technick2['hp'] > 0) { +$k_hp[1] = $k_hp[1] - $technick2['hp']; } ?> \ No newline at end of file diff --git a/ag/include/kampf/hp2.php b/ag/include/kampf/hp2.php index 686ce0b..d90f1db 100644 --- a/ag/include/kampf/hp2.php +++ b/ag/include/kampf/hp2.php @@ -8,39 +8,39 @@ ####################KAMPF HP SPIELER 1 -if ($technick1[type] == hp) { - $k_mp[0] = $k_mp[0] - $technick1[mp]; +if ($technick1['type'] == 'hp') { + $k_mp[0] = $k_mp[0] - $technick1['mp']; if ($k_mp[0] < 0) { $k_mp[0] = 0; $schaden_1 = 'Keine MP'; $aktion_AV1[$x] = 'nein'; } else { - $k_hp[0] = $k_hp[0] + (($k_hp1[1] / 100) * $technick1[hp]); + $k_hp[0] = $k_hp[0] + (($k_hp1[1] / 100) * $technick1['hp']); if ($k_hp1[1] < $k_hp[0]) { $k_hp[0] = $k_hp1[1]; } - $schaden_1 = '+ $technick1[hp]% HP'; + $schaden_1 = "+ $technick1['hp']% HP"; $aktion_AV1[$x] = 'nein'; } } ####################KAMPF HP SPIELER 2 -if ($technick2[type] == hp) { - $k_mp[1] = $k_mp[1] - $technick2[mp]; +if ($technick2['type'] == 'hp') { + $k_mp[1] = $k_mp[1] - $technick2['mp']; if ($k_mp[1] < 0) { $k_mp[1] = 0; $schaden_2 = 'Keine MP'; $aktion_AV2[$x] = 'nein'; } else { - $k_hp[1] = $k_hp[1] + (($k_hp2[1] / 100) * $technick2[hp]); + $k_hp[1] = $k_hp[1] + (($k_hp2[1] / 100) * $technick2['hp']); if ($k_hp2[1] < $k_hp[1]) { $k_hp[1] = $k_hp2[1]; } - $schaden_2 = '+ $technick2[hp]% HP'; + $schaden_2 = "+ $technick2['hp']% HP"; $aktion_AV2[$x] = 'nein'; } } diff --git a/ag/include/kampf/hpmp.php b/ag/include/kampf/hpmp.php index b360270..f2e24c3 100644 --- a/ag/include/kampf/hpmp.php +++ b/ag/include/kampf/hpmp.php @@ -7,15 +7,15 @@ */ ####################KAMPF HPMP SPIELER 1 -if($technick1[type] == hpmp) { +if($technick1['type'] == 'hpmp') { -$k_hp[0] = $k_hp[0] + (($k_hp1[1] / 100) * $technick1[hp]); -$k_mp[0] = $k_mp[0] + (($k_mp1[1] / 100) * $technick1[mp]); +$k_hp[0] = $k_hp[0] + (($k_hp1[1] / 100) * $technick1['hp']); +$k_mp[0] = $k_mp[0] + (($k_mp1[1] / 100) * $technick1['mp']); if($k_hp1[1] < $k_hp[0]) { $k_hp[0] = $k_hp1[1]; } if($k_mp1[1] < $k_mp[0]) { $k_mp[0] = $k_mp1[1]; } -$schaden_1 = '+ $technick1[hp]% HP/ $technick1[mp]% MP'; +$schaden_1 = "+ $technick1['hp']% HP/ $technick1['mp']% MP"; $aktion_AV1[$x] = "nein"; } @@ -23,14 +23,14 @@ $aktion_AV1[$x] = "nein"; ####################KAMPF HPMP SPIELER 2 -if($technick2[type] == hpmp) { -$k_hp[1] = $k_hp[1] + (($k_hp2[1] / 100) * $technick2[hp]); -$k_mp[1] = $k_mp[1] + (($k_mp2[1] / 100) * $technick2[mp]); +if($technick2['type'] == 'hpmp') { +$k_hp[1] = $k_hp[1] + (($k_hp2[1] / 100) * $technick2['hp']); +$k_mp[1] = $k_mp[1] + (($k_mp2[1] / 100) * $technick2['mp']); if($k_hp2[1] < $k_hp[1]) { $k_hp[1] = $k_hp2[1]; } if($k_mp2[1] < $k_mp[1]) { $k_mp[1] = $k_mp2[1]; } -$schaden_2 = '+ $technick2[hp]% HP/ $technick2[mp]% MP'; +$schaden_2 = "+ $technick2['hp']% HP/ $technick2['mp']% MP"; $aktion_AV2[$x] = 'nein'; } diff --git a/ag/include/kampf/kaioken.php b/ag/include/kampf/kaioken.php index 6cf8491..0a7d368 100644 --- a/ag/include/kampf/kaioken.php +++ b/ag/include/kampf/kaioken.php @@ -8,9 +8,9 @@ ####################KAIOKEN SPIELER 1 -if($technick1[type] == kaioken) { -$k_mp[0] = $k_mp[0] - $technick1[mp]; -$k_hp[0] = $k_hp[0] - $technick1[hp]; +if($technick1['type'] == 'kaioken') { +$k_mp[0] = $k_mp[0] - $technick1['mp']; +$k_hp[0] = $k_hp[0] - $technick1['hp']; if($k_mp[0] < 0) { $schaden_2 = 'Keinen Schaden'; $schaden_1 = 'kaioken fehlgeschlagen'; @@ -26,9 +26,9 @@ $aktion_AV1[$x] = 'nein'; }} ####################KAIOKEN SPIELER 2 -if($technick2[type] == kaioken) { -$k_mp[1] = $k_mp[1] - $technick2[mp]; -$k_hp[1] = $k_hp[1] - $technick2[hp]; +if($technick2['type'] == kaioken) { +$k_mp[1] = $k_mp[1] - $technick2['mp']; +$k_hp[1] = $k_hp[1] - $technick2['hp']; if($k_mp[1] < 0) { $schaden_1 = 'Keinen Schaden'; $schaden_2 = 'kaioken fehlgeschlagen'; @@ -36,9 +36,9 @@ $aktion_AV2[$x] = 'nein'; $k_mp[1] = 0; } else { -$k_starke[1] = $k_starke[1] + $technick2[starke]; -$k_speed[1] = $k_speed[1] + $technick2[speed]; -$k_ver[1] = $k_ver[1] + $technick2[verteidigung]; +$k_starke[1] = $k_starke[1] + $technick2['starke']; +$k_speed[1] = $k_speed[1] + $technick2['speed']; +$k_ver[1] = $k_ver[1] + $technick2['verteidigung']; $aktion_AV2[$x] = 'nein'; $schaden_2 = 'kaioken'; }} diff --git a/ag/include/kampf/kaioken2.php b/ag/include/kampf/kaioken2.php index 0925a70..7c675a4 100644 --- a/ag/include/kampf/kaioken2.php +++ b/ag/include/kampf/kaioken2.php @@ -8,28 +8,28 @@ ####################KAIOKEN SPIELER 1 -if($technick1[type] == 'kaioken2') { +if($technick1['type'] == 'kaioken2') { -$k_mp[0] = ($k_mp1[1] / 100) * (100-$technick1[mp]); -$k_hp[0] = ($k_hp1[1] / 100) * (100-$technick1[hp]); +$k_mp[0] = ($k_mp1[1] / 100) * (100-$technick1['mp']); +$k_hp[0] = ($k_hp1[1] / 100) * (100-$technick1['hp']); $schaden_1 = 'Super Kaioken'; -$k_starke[0] = $k_starke[0] + (($k_starke[0] / 100) * $technick1[starke]); -$k_speed[0] = $k_speed[0] + (($k_speed[0] / 100) * $technick1[speed]); -$k_ver[0] = $k_ver[0] + (($k_ver[0] / 100) * $technick1[verteidigung]); +$k_starke[0] = $k_starke[0] + (($k_starke[0] / 100) * $technick1['starke']); +$k_speed[0] = $k_speed[0] + (($k_speed[0] / 100) * $technick1['speed']); +$k_ver[0] = $k_ver[0] + (($k_ver[0] / 100) * $technick1['verteidigung']); $aktion_AV1[$x] = 'nein'; } ####################KAIOKEN SPIELER 2 -if($technick2[type] == 'kaioken2') { +if($technick2['type'] == 'kaioken2') { -$k_mp[1] = ($k_mp2[1] / 100) * (100-$technick2[mp]); -$k_hp[1] = ($k_hp2[1] / 100) * (100-$technick2[hp]); +$k_mp[1] = ($k_mp2[1] / 100) * (100-$technick2['mp']); +$k_hp[1] = ($k_hp2[1] / 100) * (100-$technick2['hp']); $schaden_2 = 'Super Kaioken'; -$k_starke[1] = $k_starke[1] + (($k_starke[1] / 100) * $technick2[starke]); -$k_speed[1] = $k_speed[1] + (($k_speed[1] / 100) * $technick2[speed]); -$k_ver[1] = $k_ver[1] + (($k_ver[1] / 100) * $technick2[verteidigung]); +$k_starke[1] = $k_starke[1] + (($k_starke[1] / 100) * $technick2['starke']); +$k_speed[1] = $k_speed[1] + (($k_speed[1] / 100) * $technick2['speed']); +$k_ver[1] = $k_ver[1] + (($k_ver[1] / 100) * $technick2['verteidigung']); $aktion_AV2[$x] = 'nein'; } diff --git a/ag/include/kampf/kampf_rechnung.php b/ag/include/kampf/kampf_rechnung.php index 306fd46..e82db05 100644 --- a/ag/include/kampf/kampf_rechnung.php +++ b/ag/include/kampf/kampf_rechnung.php @@ -10,8 +10,8 @@ if(!$aktion_AV1[$x]){ if($zufall_pl1 > $play2_ausweich) { $alt_hp = $k_hp[1]; - $charsa1_def = $k_ver[1]+$technick2[verteidigung]; - $charsa1_4_def = ($k_ver[1]+$technick2[verteidigung]) / 1.1; + $charsa1_def = $k_ver[1]+$technick2['verteidigung']; + $charsa1_4_def = ($k_ver[1]+$technick2['verteidigung']) / 1.1; if($charsa1_def <= 2) { $charsa1_def = 2; @@ -20,8 +20,8 @@ if(!$aktion_AV1[$x]){ $charsa1_4_def = 1; } $charsa1_def = mt_rand($charsa1_4_def,$charsa1_def); - $charsa1_str = $k_starke[0]*1.2+$technick1[starke]; - $charsa1_4_str = ($k_starke[0]*1.2+$technick1[starke])+1; + $charsa1_str = $k_starke[0]*1.2+$technick1['starke']; + $charsa1_4_str = ($k_starke[0]*1.2+$technick1['starke'])+1; if($charsa1_str <= 2) { $charsa1_str = 2; } @@ -46,8 +46,8 @@ if($zufall_pl2 > $play1_ausweich) { $alt_hp = $k_hp[0]; -$charsa2_def = $k_ver[0]+$technick1[verteidigung]; -$charsa2_4_def = ($k_ver[0]+$technick1[verteidigung]) / 1.1; +$charsa2_def = $k_ver[0]+$technick1['verteidigung']; +$charsa2_4_def = ($k_ver[0]+$technick1['verteidigung']) / 1.1; if($charsa2_def <= 2) { $charsa2_def = 2; @@ -57,8 +57,8 @@ if($charsa2_4_def < 1) { } $charsa2_def = mt_rand($charsa2_4_def,$charsa2_def); -$charsa2_str = $k_starke[1]*1.2+$technick2[starke]; -$charsa2_4_str = ($k_starke[1] *1.2 +$technick2[starke]) +1; +$charsa2_str = $k_starke[1]*1.2+$technick2['starke']; +$charsa2_4_str = ($k_starke[1] *1.2 +$technick2['starke']) +1; if($charsa1_str <= 2) { $charsa1_str = 2; @@ -80,11 +80,11 @@ $schaden_2 = 'Keinen Schaden'; } } -if(!$technick1[name]) { - $technick1[name] = 'Normaler Kick'; +if(!$technick1['name']) { + $technick1['name'] = 'Normaler Kick'; } -if(!$technick2[name]) { - $technick2[name] = 'Normaler Kick'; +if(!$technick2['name']) { + $technick2['name'] = 'Normaler Kick'; } diff --git a/ag/include/kampf/lose.php b/ag/include/kampf/lose.php index 924b379..22096f8 100644 --- a/ag/include/kampf/lose.php +++ b/ag/include/kampf/lose.php @@ -8,42 +8,42 @@ ####################KAIOKEN-LOSE SPIELER 1 -if($technick1[type] == lose) { -$k_mp[0] = $k_mp[0] - $technick1[mp]; +if($technick1['type'] == 'lose') { +$k_mp[0] = $k_mp[0] - $technick1['mp']; if($k_mp[0] < 0) { $schaden_2 = 'Keinen Schaden'; $schaden_1 = 'Schwächen fehlgeschlagen'; $aktion_AV1[$x] = 'nein'; $k_mp[0] = 0; } else { -if($kampf_info[rasse] != 'NPC') { //// BEI NPC ATTACKEN GESPERRT +if($kampf_info['rasse'] != 'NPC') { //// BEI NPC ATTACKEN GESPERRT $schaden_1 = 'Schwächen'; - $k_hp[0] = $k_hp[0] - (($k_hp1[1] / 100) * $technick1[hp]); + $k_hp[0] = $k_hp[0] - (($k_hp1[1] / 100) * $technick1['hp']); if($k_hp[0]< 1) { $k_hp[0] = 0; } - $k_starke[1] = $k_starke[1] - (($k_starke[1] / 100) * $technick1[starke]); - $k_speed[1] = $k_speed[1] - (($k_speed[1] / 100) * $technick1[speed]); - $k_ver[1] = $k_ver[1] - (($k_ver[1] / 100) * $technick1[verteidigung]); + $k_starke[1] = $k_starke[1] - (($k_starke[1] / 100) * $technick1['starke']); + $k_speed[1] = $k_speed[1] - (($k_speed[1] / 100) * $technick1['speed']); + $k_ver[1] = $k_ver[1] - (($k_ver[1] / 100) * $technick1['verteidigung']); } $aktion_AV1[$x] = 'nein'; }} ####################KAIOKEN-LOSE SPIELER 2 -if($technick2[type] == lose) { -$k_mp[1] = $k_mp[1] - $technick2[mp]; +if($technick2['type'] == 'lose') { +$k_mp[1] = $k_mp[1] - $technick2['mp']; if($k_mp[1] < 0) { $schaden_1 = 'Keinen Schaden'; $schaden_2 = 'Schwächen fehlgeschlagen'; $aktion_AV2[$x] = 'nein'; $k_mp[1] = 0; } else { -$k_starke[0] = $k_starke[0] - (($k_starke[0] / 100) * $technick2[starke]); -$k_speed[0] = $k_speed[0] - (($k_speed[0] / 100) * $technick2[speed]); -$k_ver[0] = $k_ver[0] - (($k_ver[0] / 100) * $technick2[verteidigung]); +$k_starke[0] = $k_starke[0] - (($k_starke[0] / 100) * $technick2['starke']); +$k_speed[0] = $k_speed[0] - (($k_speed[0] / 100) * $technick2['speed']); +$k_ver[0] = $k_ver[0] - (($k_ver[0] / 100) * $technick2['verteidigung']); -$k_hp[1] = $k_hp[1] - (($k_hp2[1] / 100) * $technick2[hp]); +$k_hp[1] = $k_hp[1] - (($k_hp2[1] / 100) * $technick2['hp']); if($k_hp[0]< 1) { $k_hp[0] = 0; } $aktion_AV2[$x] = 'nein'; diff --git a/ag/include/kampf/lose2.php b/ag/include/kampf/lose2.php index 0893dae..f1c3321 100644 --- a/ag/include/kampf/lose2.php +++ b/ag/include/kampf/lose2.php @@ -8,13 +8,13 @@ ####################KAIOKEN-LOSE SPIELER 1 -if($technick1[type] == 'lose2') { -$k_mp[0] = $k_mp[0] - $technick1[mp]; +if($technick1['type'] == 'lose2') { +$k_mp[0] = $k_mp[0] - $technick1['mp']; if($k_mp[0] < 0) { $schaden_1 = 'Schwächen fehlgeschlagen'; $k_mp[0] = 0; } else { -if($technick1[starke] >= mt_rand(1,100)) { +if($technick1['starke'] >= mt_rand(1,100)) { $schaden_1 = 'Schwächen'; $k_mp[1] = ($k_mp2[1] / 100) * 20; } else { @@ -25,14 +25,14 @@ $aktion_AV1[$x] = 'nein'; } ####################KAIOKEN-LOSE SPIELER 2 -if($technick2[type] == 'lose2') { -$k_mp[1] = $k_mp[1] - $technick2[mp]; +if($technick2['type'] == 'lose2') { +$k_mp[1] = $k_mp[1] - $technick2['mp']; if($k_mp[1] < 0) { $schaden_2 = 'Schwächen fehlgeschlagen'; $k_mp[1] = 0; } else { -if($technick2[starke] >= mt_rand(1,100)) { +if($technick2['starke'] >= mt_rand(1,100)) { $schaden_2 = 'Schwächen'; $k_mp[0] = ($k_mp1[1] / 100) * 20; } else { diff --git a/ag/include/kampf/majin.php b/ag/include/kampf/majin.php index 8bef29a..bcf6631 100644 --- a/ag/include/kampf/majin.php +++ b/ag/include/kampf/majin.php @@ -8,22 +8,22 @@ ####################Majin SPIELER 1 -if($technick1[type] == 'majin') { -$k_mp[0] = $k_mp[0] - $technick1[mp]; +if($technick1['type'] == 'majin') { +$k_mp[0] = $k_mp[0] - $technick1['mp']; if($k_mp[0] < 0) { $schaden_1 = 'Majin Verwandlung fehlgeschlagen'; $aktion_AV1[$x] = 'nein'; $k_mp[0] = 0; } else { -$k_starke[1] = $k_starke[1] * ($technick1[starke]-0.5); -$k_speed[1] = $k_speed[1] * ($technick1[speed]-0.5); -$k_ver[1] = $k_ver[1] * ($technick1[verteidigung]-0.5); +$k_starke[1] = $k_starke[1] * ($technick1['starke']-0.5); +$k_speed[1] = $k_speed[1] * ($technick1['speed']-0.5); +$k_ver[1] = $k_ver[1] * ($technick1['verteidigung']-0.5); $alt_hp = $k_hp[1]; $k_hp[1] = round($k_hp[1] - ($k_starke[1] / 2)); -$schaden_1 = '$technick1[name]'; +$schaden_1 = "$technick1['name']"; $schaden_2 = $alt_hp - $k_hp[1]; if($alt_hp < $k_hp[1]) { $k_hp[1] = $alt_hp; $schaden_2 = 0; } @@ -35,22 +35,22 @@ $aussetzten_runde = 1; ####################Majin SPIELER 2 -if($technick2[type] == 'majin') { -$k_mp[1] = $k_mp[1] - $technick2[mp]; +if($technick2['type'] == 'majin') { +$k_mp[1] = $k_mp[1] - $technick2['mp']; if($k_mp[1] < 0) { $schaden_2 = 'Majin Verwandlung fehlgeschlagen'; $aktion_AV2[$x] = 'nein'; $k_mp[1] = 0; } else { -$k_starke[0] = $k_starke[0] * ($technick2[starke]-0.5); -$k_speed[0] = $k_speed[0] * ($technick2[speed]-0.5); -$k_ver[0] = $k_ver[0] * ($technick2[verteidigung]-0.5); +$k_starke[0] = $k_starke[0] * ($technick2['starke']-0.5); +$k_speed[0] = $k_speed[0] * ($technick2['speed']-0.5); +$k_ver[0] = $k_ver[0] * ($technick2['verteidigung']-0.5); $alt_hp = $k_hp[0]; $k_hp[0] = round($k_hp[0] - ($k_starke[0] / 2)); -$schaden_2 = '$technick2[name]'; +$schaden_2 = "$technick2['name']"; $schaden_1 = $alt_hp - $k_hp[0]; if($alt_hp < $k_hp[0]) { $k_hp[0] = $alt_hp; $schaden_1 = 0; } diff --git a/ag/include/kampf/mp.php b/ag/include/kampf/mp.php index e3ee1d5..0bbe6f6 100644 --- a/ag/include/kampf/mp.php +++ b/ag/include/kampf/mp.php @@ -8,8 +8,8 @@ ####################KAMPF MP SPIELER 1 -if($technick1[type] == normal AND $technick1[mp] > 0) { -$k_mp[0] = $k_mp[0] - $technick1[mp]; +if($technick1['type'] == 'normal' AND $technick1['mp'] > 0) { +$k_mp[0] = $k_mp[0] - $technick1['mp']; if($k_mp[0] < 0) { $k_hp[0] = $k_hp[0] + ($k_mp[0] * 10); @@ -18,8 +18,8 @@ $k_mp[0] = 0; } ####################KAMPF MP SPIELER 2 -if($technick2[type] == normal AND $technick2[mp] > 0) { -$k_mp[1] = $k_mp[1] - $technick2[mp]; +if($technick2['type'] == 'normal' AND $technick2['mp'] > 0) { +$k_mp[1] = $k_mp[1] - $technick2['mp']; if($k_mp[1] < 0) { $k_hp[1] = $k_hp[1] + ($k_mp[1] * 10); diff --git a/ag/include/kampf/mpv.php b/ag/include/kampf/mpv.php index 11c2615..dc986d8 100644 --- a/ag/include/kampf/mpv.php +++ b/ag/include/kampf/mpv.php @@ -8,15 +8,15 @@ ####################KAMPF MPV SPIELER 1 -if($technick1[type] == mpv) { -$k_mp[1] = $k_mp[1] - $technick1[mp]; +if($technick1['type'] == 'mpv') { +$k_mp[1] = $k_mp[1] - $technick1['mp']; if($k_mp[1] < 0) { $k_mp[1] = 0; } $aktion_AV1[$x] = 'nein'; } -if($technick2[type] == mpv) { -$k_mp[0] = $k_mp[0] - $technick2[mp]; +if($technick2['type'] == 'mpv') { +$k_mp[0] = $k_mp[0] - $technick2['mp']; if($k_mp[0] < 0) { $k_mp[0] = 0; } diff --git a/ag/include/kampf/runde.php b/ag/include/kampf/runde.php index 8b025bc..4be9ec2 100644 --- a/ag/include/kampf/runde.php +++ b/ag/include/kampf/runde.php @@ -6,17 +6,17 @@ * */ -if($technick1[type] == 'runde') { +if($technick1['type'] == 'runde') { - $k_mp[0] = $k_mp[0] - $technick1[mp]; + $k_mp[0] = $k_mp[0] - $technick1['mp']; if($k_mp[0] < 0) { - $schaden_1 = '$technick1[name] fehlgeschlagen'; + $schaden_1 = "$technick1['name'] fehlgeschlagen"; $aktion_AV1[$x] = 'nein'; $k_mp[0] = 0; } else { - if($runden_type1 < $technick1[hp]-1) { /////////HP wert sagt an wieviel runden die technik dauert + if($runden_type1 < $technick1['hp']-1) { /////////HP wert sagt an wieviel runden die technik dauert $schaden_1 = 'Energie Sammeln'; $play1_ausweich = 0; $aktion_AV1[$x] = 'nein'; @@ -29,15 +29,15 @@ if($technick1[type] == 'runde') { } -if($technick2[type] == 'runde') { -$k_mp[1] = $k_mp[1] - $technick2[mp]; +if($technick2['type'] == 'runde') { +$k_mp[1] = $k_mp[1] - $technick2['mp']; if($k_mp[1] < 0) { -$schaden_2 = '$technick2[name] fehlgeschlagen'; +$schaden_2 = "$technick2['name'] fehlgeschlagen"; $aktion_AV2[$x] = 'nein'; $k_mp[1] = 0; } else { - if($runden_type2 < $technick2[hp]-1) { /////////HP wert sagt an wieviel runden die technik dauert + if($runden_type2 < $technick2['hp']-1) { /////////HP wert sagt an wieviel runden die technik dauert $schaden_2 = 'Energie Sammeln'; $play2_ausweich = 0; $aktion_AV2[$x] = 'nein'; diff --git a/ag/include/kampf/schatten.php b/ag/include/kampf/schatten.php index b0a8121..9dd3cc5 100644 --- a/ag/include/kampf/schatten.php +++ b/ag/include/kampf/schatten.php @@ -8,9 +8,9 @@ ####################KAIOKEN SPIELER 1 -if($technick1[type] == 'schatten') { -$k_mp[0] = $k_mp[0] - $technick1[mp]; -$k_hp[0] = $k_hp[0] - $technick1[hp]; +if($technick1['type'] == 'schatten') { +$k_mp[0] = $k_mp[0] - $technick1['mp']; +$k_hp[0] = $k_hp[0] - $technick1['hp']; if($k_mp[0] < 0) { $schaden_2 = 'Keinen Schaden'; $schaden_1 = 'Keine Kraft'; @@ -18,14 +18,14 @@ $aktion_AV1[$x] = 'nein'; $k_mp[0] = 0; } else { ///////////////////die rechnung sozusagen. -$play1_ausweich=$technick1[speed]; +$play1_ausweich=$technick1['speed']; }} ####################KAIOKEN SPIELER 2 -if($technick2[type] == 'schatten') { -$k_mp[1] = $k_mp[1] - $technick2[mp]; -$k_hp[1] = $k_hp[1] - $technick2[hp]; +if($technick2['type'] == 'schatten') { +$k_mp[1] = $k_mp[1] - $technick2['mp']; +$k_hp[1] = $k_hp[1] - $technick2['hp']; if($k_mp[1] < 0) { $schaden_1 = 'Keinen Schaden'; $schaden_2 = 'Keine Kraft'; @@ -33,7 +33,7 @@ $aktion_AV2[$x] = 'nein'; $k_mp[1] = 0; } else { -$play2_ausweich=$technick2[speed]; +$play2_ausweich=$technick2['speed']; }} diff --git a/ag/include/kampf/tausch.php b/ag/include/kampf/tausch.php index 146b272..b00af35 100644 --- a/ag/include/kampf/tausch.php +++ b/ag/include/kampf/tausch.php @@ -40,7 +40,7 @@ $char2_luck = mt_rand(0, $k_glueck[1]); $chance = round(getKTChance($char1_luck, $char2_luck)); $random = mt_rand(0,100); -if ($technick1['type'] == tausch) { +if ($technick1['type'] == 'tausch') { if ($k_mp[0] >= $technick1['mp']) { if($random <= $chance) { //Trefferchance abhängig vom ausgewürfeltem Glück if ($kampf_info['rasse'] != "NPC") { ///BEI NPCS WIRD KOERPER TAUSCH GEBLOCKT @@ -92,7 +92,7 @@ $char2_luck = mt_rand(0, $k_glueck[1]); $chance = round(getKTChance($char2_luck, $char1_luck)); $random = mt_rand(0,100); -if ($technick2['type'] == tausch) { +if ($technick2['type'] == 'tausch') { if ($k_mp[1] >= $technick2['mp']) { if($random <= $chance) { //Trefferchance abhängig vom ausgewürfeltem Glück if ($kampf_info['rasse'] != "NPC") { diff --git a/ag/include/kampf/tausch2.php b/ag/include/kampf/tausch2.php index 9ec6616..d2d6c04 100644 --- a/ag/include/kampf/tausch2.php +++ b/ag/include/kampf/tausch2.php @@ -8,16 +8,16 @@ ################### Spieler 1 -if ($technick1[type] == "tausch2") { - $k_mp[0] = $k_mp[0] - $technick1[mp]; +if ($technick1['type'] == "tausch2") { + $k_mp[0] = $k_mp[0] - $technick1['mp']; if ($k_mp[0] >= 0) { $prozent_technik1 = 0; $technick1 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$technick2[id]' LIMIT 10")); - $technick1[speed] = $technick1[speed] + (($technick1[speed] / 100) * $prozent_technik1); - $technick1[verteidigung] = $technick1[verteidigung] + (($technick1[verteidigung] / 100) * $prozent_technik1); - $technick1[starke] = $technick1[starke] + (($technick1[starke] / 100) * $prozent_technik1); - $speeds_char1 = ($k_speed[0] + $technick1[speed]); - $speeds_char1_4 = ($k_speed[0] + $technick1[speed]) / 1.5; + $technick1['speed'] = $technick1['speed'] + (($technick1['speed'] / 100) * $prozent_technik1); + $technick1['verteidigung'] = $technick1['verteidigung'] + (($technick1['verteidigung'] / 100) * $prozent_technik1); + $technick1['starke'] = $technick1['starke'] + (($technick1['starke'] / 100) * $prozent_technik1); + $speeds_char1 = ($k_speed[0] + $technick1['speed']); + $speeds_char1_4 = ($k_speed[0] + $technick1['speed']) / 1.5; if ($speeds_char1_4 < 1) { $speeds_char1_4 = 1; } @@ -33,18 +33,18 @@ if ($technick1[type] == "tausch2") { ################### Spieler 2 -if ($technick2[type] == "tausch2") { - $k_mp[1] = $k_mp[1] - $technick2[mp]; +if ($technick2['type'] == "tausch2") { + $k_mp[1] = $k_mp[1] - $technick2['mp']; if ($k_mp[1] >= 0) { $prozent_technik2 = 0; $technick2 = mysql_fetch_array(mysql_query("SELECT * FROM attacken WHERE id='$technick1[id]' LIMIT 10")); - $technick2[speed] = $technick2[speed] + (($technick2[speed] / 100) * $prozent_technik2); - $technick2[verteidigung] = $technick2[verteidigung] + (($technick2[verteidigung] / 100) * $prozent_technik2); - $technick2[starke] = $technick2[starke] + (($technick2[starke] / 100) * $prozent_technik2); - $speeds_char2 = ($k_speed[1] + $technick2[speed]); - $speeds_char2_4 = ($k_speed[1] + $technick2[speed]) / 1.5; + $technick2['speed'] = $technick2['speed'] + (($technick2['speed'] / 100) * $prozent_technik2); + $technick2['verteidigung'] = $technick2['verteidigung'] + (($technick2['verteidigung'] / 100) * $prozent_technik2); + $technick2['starke'] = $technick2['starke'] + (($technick2['starke'] / 100) * $prozent_technik2); + $speeds_char2 = ($k_speed[1] + $technick2['speed']); + $speeds_char2_4 = ($k_speed[1] + $technick2['speed']) / 1.5; if ($speeds_char2_4 < 1) { $speeds_char2_4 = 1; }