diff --git a/ag/include/kampf/copy.php b/ag/include/kampf/copy.php index af71c77..51123c3 100644 --- a/ag/include/kampf/copy.php +++ b/ag/include/kampf/copy.php @@ -9,17 +9,17 @@ ################### Spieler 1 -if ($technick1[type] == copy) { - $k_mp[0] = $k_mp[0] - $technick1[mp]; +if ($technick1['type'] == 'copy') { + $k_mp[0] = $k_mp[0] - $technick1['mp']; if ($k_mp[0] >= 0) { - if ($technick1[starke] == 1) { /////Staerke wird kopiert + if ($technick1['starke'] == 1) { /////Staerke wird kopiert $k_starke[0] = $k_starke[0] + $k_starke[1]; } - if ($technick1[speed] == 1) { /////Staerke wird kopiert + if ($technick1['speed'] == 1) { /////Staerke wird kopiert $k_speed[0] = $k_speed[0] + $k_speed[1]; } - if ($technick1[verteidigung] == 1) { /////Staerke wird kopiert + if ($technick1['verteidigung'] == 1) { /////Staerke wird kopiert $k_ver[0] = $k_ver[0] + $k_ver[1]; } $schaden_1 = "Power Kopieren!"; @@ -33,18 +33,18 @@ if ($technick1[type] == copy) { ################### Spieler 2 -if ($technick2[type] == copy) { - $k_mp[1] = $k_mp[1] - $technick2[mp]; +if ($technick2['type'] == 'copy') { + $k_mp[1] = $k_mp[1] - $technick2['mp']; if ($k_mp[1] >= 0) { - if ($technick2[starke] == 1) { /////Staerke wird kopiert + if ($technick2['starke'] == 1) { /////Staerke wird kopiert $k_starke[1] = $k_starke[0] + $k_starke[1]; } - if ($technick2[speed] == 1) { /////Staerke wird kopiert + if ($technick2['speed'] == 1) { /////Staerke wird kopiert $k_speed[1] = $k_speed[0] + $k_speed[1]; } - if ($technick2[verteidigung] == 1) { /////Staerke wird kopiert + if ($technick2['verteidigung'] == 1) { /////Staerke wird kopiert $k_ver[1] = $k_ver[0] + $k_ver[1]; } $schaden_2 = 'Power Kopieren!'; diff --git a/ag/include/kampf/hp2.php b/ag/include/kampf/hp2.php index d90f1db..1e4642d 100644 --- a/ag/include/kampf/hp2.php +++ b/ag/include/kampf/hp2.php @@ -20,7 +20,7 @@ if ($technick1['type'] == 'hp') { $k_hp[0] = $k_hp1[1]; } - $schaden_1 = "+ $technick1['hp']% HP"; + $schaden_1 = '+' . $technick1['hp'] .'% HP'; $aktion_AV1[$x] = 'nein'; } } @@ -40,7 +40,7 @@ if ($technick2['type'] == 'hp') { $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 f2e24c3..c79382e 100644 --- a/ag/include/kampf/hpmp.php +++ b/ag/include/kampf/hpmp.php @@ -15,7 +15,7 @@ $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"; } @@ -30,7 +30,7 @@ $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/majin.php b/ag/include/kampf/majin.php index bcf6631..a0bbf7d 100644 --- a/ag/include/kampf/majin.php +++ b/ag/include/kampf/majin.php @@ -23,7 +23,7 @@ $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; } @@ -50,7 +50,7 @@ $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/runde.php b/ag/include/kampf/runde.php index 4be9ec2..8b67fd1 100644 --- a/ag/include/kampf/runde.php +++ b/ag/include/kampf/runde.php @@ -11,7 +11,7 @@ if($technick1['type'] == 'runde') { $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 { @@ -32,7 +32,7 @@ if($technick1['type'] == 'runde') { 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 {