formatierungen gesetzt, debugs entfernt
main
radiskull 10 years ago
parent 1fdc655dad
commit 2b967d93a2

@ -217,7 +217,7 @@ function createOrEditAttack($action, $attackid) {
<td>Type:</td> <td>Type:</td>
<td><select name="type"> <td><select name="type">
<?php <?php
$types = array('normal', 'kaioken', 'kaioken2', 'SSJ', 'lose', 'lose2', 'hpmp', 'hp', 'tausch', 'tausch2', 'majin', 'copy', 'runde', 'frucht', 'konterhp', 'generic'); $types = array('normal', 'kaioken', 'kaioken2', 'SSJ', 'lose', 'lose2', 'hpmp', 'hp', 'tausch', 'tausch2', 'majin', 'copy', 'runde', 'frucht', 'konterhp', 'reborn', 'generic');
foreach ($types as $type) { foreach ($types as $type) {
if($row['type'] == $type){ if($row['type'] == $type){
echo '<option value="'.$type.'" selected="selected">'.$type.'</option>'; echo '<option value="'.$type.'" selected="selected">'.$type.'</option>';

@ -93,7 +93,7 @@ if (!function_exists('processStatChanges')) {
$statsCounter = 0; $statsCounter = 0;
foreach ($attacke as $attKey => &$stat) { foreach ($attacke as $attKey => &$stat) {
if(is_array($stat)) { if(is_array($stat)) {
echo '<br>'.print_r($stat); //echo '<br>'.print_r($stat);
//echo '<br>dauer: '.$stat['dauer'].'/'.$stat['maxdauer']; //echo '<br>dauer: '.$stat['dauer'].'/'.$stat['maxdauer'];
//echo '<br>wert: '.$stat['dauer']; //echo '<br>wert: '.$stat['dauer'];
//echo '<br>operator: '; //echo '<br>operator: ';
@ -110,7 +110,7 @@ if (!function_exists('processStatChanges')) {
} else { } else {
$zAttributWert = &$attributWert; $zAttributWert = &$attributWert;
} }
echo '<br>operator: "'.$stat['operator'].'"'; //echo '<br>operator: "'.$stat['operator'].'"';
if(($stat['wirkung'] == 'always' || $stat['dauer'] == $stat['maxdauer']) && ($stat['unblockbar'] || !$GLOBALS['kampf']['aussetzen'])) { if(($stat['wirkung'] == 'always' || $stat['dauer'] == $stat['maxdauer']) && ($stat['unblockbar'] || !$GLOBALS['kampf']['aussetzen'])) {
switch ($stat['operator']) { switch ($stat['operator']) {
case '+': case '+':

@ -0,0 +1,46 @@
<?php
/*
* Created on 07.03.2009
*
* @copyright (c) 2009 animegame.eu
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
*
*/
################### Spieler 1
if ($technick1['type'] == 'reborn') {
$k_mp[0] = $k_mp[0] - $technick1['mp'];
if ($k_mp[0] >= 0) {
if($k_hp[0] <= 0) {
$k_hp[0] = ($k_hp1[1] / 100) * $technick1['hp'];
$schaden_1 = 'Reborn!';
} else {
$schaden_1 = 'Technik fehlgeschlagen';
}
} else {
$schaden_1 = 'Technik fehlgeschlagen';
$k_mp[0] = 0;
}
$aktion_AV1[$x] = 'nein';
}
################### Spieler 2
if ($technick2['type'] == 'reborn') {
$k_mp[1] = $k_mp[1] - $technick2['mp'];
if ($k_mp[1] >= 0) {
if($k_hp[1] <= 0) {
$k_hp[1] = ($k_hp2[1] / 100) * $technick2['hp'];
$schaden_2 = 'Reborn!';
} else {
$schaden_2 = 'Technik fehlgeschlagen';
}
} else {
$schaden_2 = 'Technik fehlgeschlagen';
$k_mp[0] = 0;
}
$aktion_AV2[$x] = 'nein';
}

@ -179,14 +179,12 @@ function calculateFight(array $char1, array $char2) {
##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken ##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken
include (ROOT_PATH . '/include/kampf/majin.php'); include (ROOT_PATH . '/include/kampf/majin.php');
include (ROOT_PATH . '/include/kampf/generic_technik.php');
include (ROOT_PATH . '/include/kampf/generic_rechnung.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include (ROOT_PATH . '/include/kampf/atk_wert.php'); include (ROOT_PATH . '/include/kampf/atk_wert.php');
include (ROOT_PATH . '/include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen include (ROOT_PATH . '/include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen
include (ROOT_PATH . '/include/kampf/gift.php'); include (ROOT_PATH . '/include/kampf/gift.php');
include (ROOT_PATH . '/include/kampf/frucht.php'); include (ROOT_PATH . '/include/kampf/frucht.php');
include (ROOT_PATH . '/include/kampf/runde.php');
include (ROOT_PATH . '/include/kampf/mp.php'); include (ROOT_PATH . '/include/kampf/mp.php');
include (ROOT_PATH . '/include/kampf/hp.php'); include (ROOT_PATH . '/include/kampf/hp.php');
include (ROOT_PATH . '/include/kampf/hp2.php'); include (ROOT_PATH . '/include/kampf/hp2.php');
@ -199,18 +197,20 @@ function calculateFight(array $char1, array $char2) {
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/hpmp.php'); include (ROOT_PATH . '/include/kampf/hpmp.php');
include (ROOT_PATH . '/include/kampf/generic_technik.php');
}
include (ROOT_PATH . '/include/kampf/generic_rechnung.php');
include (ROOT_PATH . '/include/kampf/atk_wert.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
//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 //Nach Konterheal, damit überstehende HP bleibt
include (ROOT_PATH . '/include/kampf/tausch.php'); include (ROOT_PATH . '/include/kampf/tausch.php');
//include "kampf/summon.php"; include (ROOT_PATH . '/include/kampf/reborn.php');
} }
include (ROOT_PATH . '/include/kampf/heilung.php'); include (ROOT_PATH . '/include/kampf/heilung.php');
include (ROOT_PATH . '/include/kampf/atk_wert.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include (ROOT_PATH . '/include/kampf/schatten.php');
include (ROOT_PATH . '/include/kampf/runde.php');
}
#####################################KAMPF SYSTEM #####################################KAMPF SYSTEM
include (ROOT_PATH . '/include/kampf/kampf_rechnung.php'); include (ROOT_PATH . '/include/kampf/kampf_rechnung.php');

@ -223,10 +223,7 @@ function monsterfight_neu($chara_1, $fight_monster, $std, $ort){
##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken ##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken
include (ROOT_PATH . '/include/kampf/majin.php'); include (ROOT_PATH . '/include/kampf/majin.php');
include (ROOT_PATH . '/include/kampf/generic_technik.php'); if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include (ROOT_PATH . '/include/kampf/generic_rechnung.php');
if (!$aussetzten_runde) { /////DAS FueR MAJIN ATTACKEN
include (ROOT_PATH . '/include/kampf/atk_wert.php'); include (ROOT_PATH . '/include/kampf/atk_wert.php');
include (ROOT_PATH . '/include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen include (ROOT_PATH . '/include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen
include (ROOT_PATH . '/include/kampf/gift.php'); include (ROOT_PATH . '/include/kampf/gift.php');
@ -244,16 +241,20 @@ function monsterfight_neu($chara_1, $fight_monster, $std, $ort){
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/hpmp.php'); include (ROOT_PATH . '/include/kampf/hpmp.php');
include (ROOT_PATH . '/include/kampf/generic_technik.php');
}
include (ROOT_PATH . '/include/kampf/generic_rechnung.php');
include (ROOT_PATH . '/include/kampf/atk_wert.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
//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 //Nach Konterheal, damit überstehende HP bleibt
include (ROOT_PATH . '/include/kampf/tausch.php'); include (ROOT_PATH . '/include/kampf/tausch.php');
include (ROOT_PATH . '/include/kampf/reborn.php');
} }
include (ROOT_PATH . '/include/kampf/heilung.php'); include (ROOT_PATH . '/include/kampf/heilung.php');
include (ROOT_PATH . '/include/kampf/atk_wert.php');
if (!$aussetzten_runde) { /////DAS FueR MAJIN ATTACKEN
include (ROOT_PATH . '/include/kampf/schatten.php');
}
#####################################KAMPF SYSTEM #####################################KAMPF SYSTEM
include (ROOT_PATH . '/include/kampf/kampf_rechnung.php'); include (ROOT_PATH . '/include/kampf/kampf_rechnung.php');

@ -180,9 +180,6 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken ##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken
include (ROOT_PATH . '/include/kampf/majin.php'); include (ROOT_PATH . '/include/kampf/majin.php');
include (ROOT_PATH . '/include/kampf/generic_technik.php');
include (ROOT_PATH . '/include/kampf/generic_rechnung.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include (ROOT_PATH . '/include/kampf/atk_wert.php'); include (ROOT_PATH . '/include/kampf/atk_wert.php');
include (ROOT_PATH . '/include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen include (ROOT_PATH . '/include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen
@ -201,18 +198,20 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
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/hpmp.php'); include (ROOT_PATH . '/include/kampf/hpmp.php');
include (ROOT_PATH . '/include/kampf/generic_technik.php');
}
include (ROOT_PATH . '/include/kampf/generic_rechnung.php');
include (ROOT_PATH . '/include/kampf/atk_wert.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
//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 //Nach Konterheal, damit überstehende HP bleibt
include (ROOT_PATH . '/include/kampf/tausch.php'); include (ROOT_PATH . '/include/kampf/tausch.php');
//include "kampf/summon.php"; include (ROOT_PATH . '/include/kampf/reborn.php');
} }
include (ROOT_PATH . '/include/kampf/heilung.php'); include (ROOT_PATH . '/include/kampf/heilung.php');
include (ROOT_PATH . '/include/kampf/atk_wert.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include (ROOT_PATH . '/include/kampf/schatten.php');
}
#####################################KAMPF SYSTEM #####################################KAMPF SYSTEM
include (ROOT_PATH . '/include/kampf/kampf_rechnung.php'); include (ROOT_PATH . '/include/kampf/kampf_rechnung.php');

@ -170,14 +170,12 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken ##################################MP, SSJ Verwandlungen, HP, Koerper Tausch Technicken
include (ROOT_PATH . '//include/kampf/majin.php'); include (ROOT_PATH . '//include/kampf/majin.php');
include (ROOT_PATH . '/include/kampf/generic_technik.php');
include (ROOT_PATH . '/include/kampf/generic_rechnung.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include (ROOT_PATH . '//include/kampf/atk_wert.php'); include (ROOT_PATH . '//include/kampf/atk_wert.php');
include (ROOT_PATH . '//include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen include (ROOT_PATH . '//include/kampf/tausch2.php'); //////////////////Muss ganz oben sein wegen technik Tauschen
include (ROOT_PATH . '//include/kampf/gift.php'); include (ROOT_PATH . '//include/kampf/gift.php');
include (ROOT_PATH . '//include/kampf/frucht.php'); include (ROOT_PATH . '//include/kampf/frucht.php');
include (ROOT_PATH . '//include/kampf/runde.php');
include (ROOT_PATH . '//include/kampf/mp.php'); include (ROOT_PATH . '//include/kampf/mp.php');
include (ROOT_PATH . '//include/kampf/hp.php'); include (ROOT_PATH . '//include/kampf/hp.php');
include (ROOT_PATH . '//include/kampf/hp2.php'); include (ROOT_PATH . '//include/kampf/hp2.php');
@ -189,16 +187,21 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
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');
//include "kampf/summon.php"; include (ROOT_PATH . '//include/kampf/generic_technik.php');
} }
include (ROOT_PATH . '/include/kampf/heilung.php');
include (ROOT_PATH . '//include/kampf/generic_rechnung.php');
include (ROOT_PATH . '//include/kampf/atk_wert.php'); include (ROOT_PATH . '//include/kampf/atk_wert.php');
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include (ROOT_PATH . '//include/kampf/schatten.php'); //Als letztes um alle HP-Attacken zu kontern (in $tmp_hp gespeichert)
include (ROOT_PATH . '//include/kampf/runde.php'); include (ROOT_PATH . '//include/kampf/konter_heal.php');
//Nach Konterheal, damit überstehende HP bleibt
include (ROOT_PATH . '//include/kampf/tausch.php');
include (ROOT_PATH . '//include/kampf/reborn.php');
} }
include (ROOT_PATH . '//include/kampf/heilung.php');
#####################################KAMPF SYSTEM #####################################KAMPF SYSTEM
include (ROOT_PATH . '//include/kampf/kampf_rechnung.php'); include (ROOT_PATH . '//include/kampf/kampf_rechnung.php');

Loading…
Cancel
Save