elfenland 14 years ago
parent b330f16957
commit 7dde68c5a4

@ -9,17 +9,17 @@
################### Spieler 1 ################### Spieler 1
if ($technick1[type] == copy) { if ($technick1['type'] == 'copy') {
$k_mp[0] = $k_mp[0] - $technick1[mp]; $k_mp[0] = $k_mp[0] - $technick1['mp'];
if ($k_mp[0] >= 0) { 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]; $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]; $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]; $k_ver[0] = $k_ver[0] + $k_ver[1];
} }
$schaden_1 = "Power Kopieren!"; $schaden_1 = "Power Kopieren!";
@ -33,18 +33,18 @@ if ($technick1[type] == copy) {
################### Spieler 2 ################### Spieler 2
if ($technick2[type] == copy) { if ($technick2['type'] == 'copy') {
$k_mp[1] = $k_mp[1] - $technick2[mp]; $k_mp[1] = $k_mp[1] - $technick2['mp'];
if ($k_mp[1] >= 0) { 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]; $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]; $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]; $k_ver[1] = $k_ver[0] + $k_ver[1];
} }
$schaden_2 = 'Power Kopieren!'; $schaden_2 = 'Power Kopieren!';

@ -20,7 +20,7 @@ if ($technick1['type'] == 'hp') {
$k_hp[0] = $k_hp1[1]; $k_hp[0] = $k_hp1[1];
} }
$schaden_1 = "+ $technick1['hp']% HP"; $schaden_1 = '+' . $technick1['hp'] .'% HP';
$aktion_AV1[$x] = 'nein'; $aktion_AV1[$x] = 'nein';
} }
} }
@ -40,7 +40,7 @@ if ($technick2['type'] == 'hp') {
$k_hp[1] = $k_hp2[1]; $k_hp[1] = $k_hp2[1];
} }
$schaden_2 = "+ $technick2['hp']% HP"; $schaden_2 = '+' . $technick2['hp'] .'% HP';
$aktion_AV2[$x] = 'nein'; $aktion_AV2[$x] = 'nein';
} }
} }

@ -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_hp1[1] < $k_hp[0]) { $k_hp[0] = $k_hp1[1]; }
if($k_mp1[1] < $k_mp[0]) { $k_mp[0] = $k_mp1[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"; $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_hp2[1] < $k_hp[1]) { $k_hp[1] = $k_hp2[1]; }
if($k_mp2[1] < $k_mp[1]) { $k_mp[1] = $k_mp2[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'; $aktion_AV2[$x] = 'nein';
} }

@ -23,7 +23,7 @@ $k_ver[1] = $k_ver[1] * ($technick1['verteidigung']-0.5);
$alt_hp = $k_hp[1]; $alt_hp = $k_hp[1];
$k_hp[1] = round($k_hp[1] - ($k_starke[1] / 2)); $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]; $schaden_2 = $alt_hp - $k_hp[1];
if($alt_hp < $k_hp[1]) { $k_hp[1] = $alt_hp; $schaden_2 = 0; } 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]; $alt_hp = $k_hp[0];
$k_hp[0] = round($k_hp[0] - ($k_starke[0] / 2)); $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]; $schaden_1 = $alt_hp - $k_hp[0];
if($alt_hp < $k_hp[0]) { $k_hp[0] = $alt_hp; $schaden_1 = 0; } if($alt_hp < $k_hp[0]) { $k_hp[0] = $alt_hp; $schaden_1 = 0; }

@ -11,7 +11,7 @@ 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) { if($k_mp[0] < 0) {
$schaden_1 = "$technick1['name'] fehlgeschlagen"; $schaden_1 = $technick1['name'] . ' fehlgeschlagen';
$aktion_AV1[$x] = 'nein'; $aktion_AV1[$x] = 'nein';
$k_mp[0] = 0; $k_mp[0] = 0;
} else { } else {
@ -32,7 +32,7 @@ if($technick1['type'] == 'runde') {
if($technick2['type'] == 'runde') { if($technick2['type'] == 'runde') {
$k_mp[1] = $k_mp[1] - $technick2['mp']; $k_mp[1] = $k_mp[1] - $technick2['mp'];
if($k_mp[1] < 0) { if($k_mp[1] < 0) {
$schaden_2 = "$technick2['name'] fehlgeschlagen"; $schaden_2 = $technick2['name'] . ' fehlgeschlagen';
$aktion_AV2[$x] = 'nein'; $aktion_AV2[$x] = 'nein';
$k_mp[1] = 0; $k_mp[1] = 0;
} else { } else {

Loading…
Cancel
Save