SSJ zieht HP ab

Majin hat allgemeinen Multiplikator bekommen (einstellbar über Stärke)
main
radiskull 11 years ago
parent f258e18481
commit 850914b13d

@ -10,6 +10,7 @@
if ($technick1['type'] == 'SSJ') {
$k_mp[0] = $k_mp[0] - $technick1['mp'];
$k_hp[0] = $k_hp[0] - $technick1['hp'];
if ($k_mp[0] < 0) {
$schaden_1 = 'SSJ Verwandlung fehlgeschlagen';
$aktion_AV1[$x] = 'nein';
@ -34,6 +35,7 @@ if ($technick1['type'] == 'SSJ') {
if ($technick2['type'] == 'SSJ') {
$k_mp[1] = $k_mp[1] - $technick2['mp'];
$k_hp[1] = $k_hp[1] - $technick2['hp'];
if ($k_mp[1] < 0) {
$schaden_2 = 'SSJ Verwandlung fehlgeschlagen';
$aktion_AV2[$x] = 'nein';

@ -9,55 +9,58 @@
####################Majin SPIELER 1
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_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 {
$multiplikator = $technick1['starke'] / 10;
$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] * $multiplikator;
$k_speed[1] = $k_speed[1] * $multiplikator;
$k_ver[1] = $k_ver[1] * $multiplikator;
$alt_hp = $k_hp[1];
$alt_hp = $k_hp[1];
$k_hp[1] = round($k_hp[1] - ($k_starke[1] / 2));
$schaden_1 = "$technick1[name]";
$schaden_2 = $alt_hp - $k_hp[1];
$k_hp[1] = round($k_hp[1] - ($k_starke[1] / 2));
$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; }
if($alt_hp < $k_hp[1]) { $k_hp[1] = $alt_hp; $schaden_2 = 0; }
$aktion_AV1[$x] = "nein";
$aktion_AV2[$x] = "nein";
$aussetzten_runde = 1;
}}
$aktion_AV1[$x] = "nein";
$aktion_AV2[$x] = "nein";
$aussetzten_runde = 1;
}}
####################Majin SPIELER 2
####################Majin SPIELER 2
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 {
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 {
$multiplikator = $technick2['starke'] / 10;
$k_starke[0] = $k_starke[0] * $multiplikator;
$k_speed[0] = $k_speed[0] * $multiplikator;
$k_ver[0] = $k_ver[0] * $multiplikator;
$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];
$alt_hp = $k_hp[0];
$k_hp[0] = round($k_hp[0] - ($k_starke[0] / 2));
$schaden_2 = "$technick2[name]";
$schaden_1 = $alt_hp - $k_hp[0];
$k_hp[0] = round($k_hp[0] - ($k_starke[0] / 2));
$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; }
if($alt_hp < $k_hp[0]) { $k_hp[0] = $alt_hp; $schaden_1 = 0; }
$aktion_AV1[$x] = "nein";
$aktion_AV2[$x] = "nein";
$aussetzten_runde = 1;
}}
$aktion_AV1[$x] = "nein";
$aktion_AV2[$x] = "nein";
$aussetzten_runde = 1;
}}
?>
?>
Loading…
Cancel
Save