Und ein weiterer Versuch reborn ans laufen zu bekommen.

main
hecht 10 years ago
parent 721a4e46d3
commit 122182c250

@ -31,6 +31,7 @@ include_once(ROOT_PATH.'/include/usergroup.inc.php');
include_once(ROOT_PATH.'/gm/include/attacken.inc.php');
include_once(ROOT_PATH.'/gm/include/bilderschau.inc.php');
include_once(ROOT_PATH.'/gm/include/clan.inc.php');
include_once(ROOT_PATH.'/gm/include/geheim.inc.php');
include_once(ROOT_PATH.'/gm/include/info.inc.php');
include_once(ROOT_PATH.'/gm/include/item.inc.php');
include_once(ROOT_PATH.'/gm/include/monster.inc.php');
@ -111,6 +112,9 @@ function displayLogin(){
}
function displayOptions(){
// FIXME: Hinzufuegen der Includes und der Entry Funktion im Array und wir brauchen
// in dieser Datei deutlich weniger Copy&Paste!
$entries = array("bilder" => "Bilderschau",
"faq" => "FAQ bearbeiten",
"rassen" => "Rassen bearbeiten",

@ -14,17 +14,19 @@ defineIfNotDefined('GEHEIM_CHANCE_NIETE', 0.5);
function displayGeheim($request) {
?>
<table>
<tr>
<th colspan="4">
Geheim Übersicht
</th>
</tr>
<tr>
<td>
<a href="<?php echo $_SERVER['PHP_SELF']; ?>">Zum Hauptmenu</a>
</td>
</tr>
</table>
<form action="" method="POST">
<input name="choose" value="clan" type="hidden"></input>
<input name="action" value="<?php echo $action; ?>" type="hidden"></input>
<table>
<tr>
<th colspan="4">Geheim Übersicht</th>
</tr>
<tr>
<td><a href="<?php echo $_SERVER['PHP_SELF']; ?>">Zum Hauptmenu</a>
</td>
</tr>
</table>
</form>
<?php
}

@ -17,7 +17,7 @@ if(!$aktion_AV1[$x]){
$charsa1_def = 2;
}
if($charsa1_4_def < 1) {
$charsa1_4_def = 1;
$charsa1_4_def = 1;
}
$charsa1_def = mt_rand($charsa1_4_def,$charsa1_def);
$charsa1_str = $k_starke[0]*1.2+$technick1['starke'];
@ -33,80 +33,92 @@ if(!$aktion_AV1[$x]){
$schaden_1 = $alt_hp - $k_hp[1];
if($alt_hp < $k_hp[1]) {
$k_hp[1] = $alt_hp;
$schaden_1 = 0;
$schaden_1 = 0;
}
} else {
$schaden_1 = 'Keinen Schaden';
}
}
if(!$aktion_AV2[$x]) {
if($zufall_pl2 > $play1_ausweich) {
if(!$aktion_AV2[$x]) {
if($zufall_pl2 > $play1_ausweich) {
$alt_hp = $k_hp[0];
$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;
if($charsa2_def <= 2) {
$charsa2_def = 2;
}
if($charsa2_4_def < 1) {
$charsa2_4_def = 1;
if($charsa2_4_def < 1) {
$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_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;
if($charsa1_str <= 2) {
$charsa1_str = 2;
}
if($charsa2_4_str < 1) {
$charsa2_4_str = 1;
}
if($charsa1_str <= 2) {
$charsa1_str = 2;
}
if($charsa2_4_str < 1) {
$charsa2_4_str = 1;
}
$charsa2_str = mt_rand($charsa2_4_str,$charsa2_str);
$charsa2_str = mt_rand($charsa2_4_str,$charsa2_str);
$k_hp[0] = round(($k_hp[0] + $charsa2_def - $charsa2_str + mt_rand(1,20)));
$schaden_2 = $alt_hp - $k_hp[0];
$k_hp[0] = round(($k_hp[0] + $charsa2_def - $charsa2_str + mt_rand(1,20)));
$schaden_2 = $alt_hp - $k_hp[0];
if($alt_hp < $k_hp[0]) {
$k_hp[0] = $alt_hp; $schaden_2 = 0;
}
} else {
$schaden_2 = 'Keinen Schaden';
}
if($alt_hp < $k_hp[0]) {
$k_hp[0] = $alt_hp; $schaden_2 = 0;
}
} else {
$schaden_2 = 'Keinen Schaden';
}
}
if(!$technick1['name']) {
$technick1['name'] = 'Normaler Kick';
}
$technick1['name'] = 'Normaler Kick';
}
if(!$technick2['name']) {
$technick2['name'] = 'Normaler Kick';
}
$technick2['name'] = 'Normaler Kick';
}
// Nun kommt reborn an die reihe!
if(isset($reborn_hp[0]) && $k_hp[0] <= 0) {
$k_hp[0] = $reborn_hp[0];
unset($reborn_hp[0]);
$schaden_1 .= '<br>Reborn!';
}
if(isset($reborn_hp[1]) && $k_hp[1] <= 0) {
$k_hp[1] = $reborn_hp[1];
unset($reborn_hp[1]);
$schaden_2 .= '<br>Reborn!';
}
if($k_hp[0]<0) {
$k_hp7[0] = 0;
} else {
$k_hp7[0] = $k_hp[0];
}
$k_hp7[0] = 0;
} else {
$k_hp7[0] = $k_hp[0];
}
if($k_mp[0]<0) {
$k_mp7[0] = 0;
} else {
$k_mp7[0] = $k_mp[0];
}
$k_mp7[0] = 0;
} else {
$k_mp7[0] = $k_mp[0];
}
if($k_hp[1]<0) {
$k_hp7[1] = 0;
} else {
$k_hp7[1] = $k_hp[1];
}
if($k_mp[1]<0) {
$k_hp7[1] = 0;
} else {
$k_hp7[1] = $k_hp[1];
}
if($k_mp[1]<0) {
$k_mp7[1] = 0;
} else {
$k_mp7[1] = $k_mp[1];
}
} else {
$k_mp7[1] = $k_mp[1];
}
?>

@ -7,46 +7,32 @@
*
*/
if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
################### Spieler 1
if ($technick1['type'] == 'reborn') {
$k_mp[0] = $k_mp[0] - $technick1['mp'];
if ($k_mp[0] >= 0) {
$reborn_hp[0] = ($k_hp1[1] / 100) * $technick1['hp'];
$schaden_1 = 'Reborn!';
} else {
$schaden_1 = 'Technik fehlgeschlagen';
$k_mp[0] = 0;
}
$aktion_AV1[$x] = 'nein';
################### Spieler 1
if ($technick1['type'] == 'reborn') {
$k_mp[0] = $k_mp[0] - $technick1['mp'];
if ($k_mp[0] >= 0) {
$reborn_hp[0] = ($k_hp1[1] / 100) * $technick1['hp'];
$schaden_1 = 'Reborn!';
} else {
$schaden_1 = 'Technik fehlgeschlagen';
$k_mp[0] = 0;
}
################### Spieler 2
$aktion_AV1[$x] = 'nein';
}
if ($technick2['type'] == 'reborn') {
$k_mp[1] = $k_mp[1] - $technick2['mp'];
if ($k_mp[1] >= 0) {
$reborn_hp[1] = ($k_hp2[1] / 100) * $technick2['hp'];
$schaden_2 = 'Reborn!';
} else {
$schaden_2 = 'Technik fehlgeschlagen';
$k_mp[1] = 0;
}
################### Spieler 2
$aktion_AV2[$x] = 'nein';
if ($technick2['type'] == 'reborn') {
$k_mp[1] = $k_mp[1] - $technick2['mp'];
if ($k_mp[1] >= 0) {
$reborn_hp[1] = ($k_hp2[1] / 100) * $technick2['hp'];
$schaden_2 = 'Reborn!';
} else {
$schaden_2 = 'Technik fehlgeschlagen';
$k_mp[1] = 0;
}
}
if(isset($reborn_hp[0]) && $k_hp[0] <= 0) {
$k_hp[0] = $reborn_hp[0];
unset($reborn_hp[0]);
$schaden_1 .= '<br>Reborn!';
$aktion_AV2[$x] = 'nein';
}
if(isset($reborn_hp[1]) && $k_hp[1] <= 0) {
$k_hp[1] = $reborn_hp[1];
unset($reborn_hp[1]);
$schaden_2 .= '<br>Reborn!';
}

@ -208,9 +208,9 @@ function calculateFight(array $char1, array $char2) {
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');
include (ROOT_PATH . '/include/kampf/reborn.php');
#####################################KAMPF SYSTEM
include (ROOT_PATH . '/include/kampf/kampf_rechnung.php');

@ -252,9 +252,9 @@ function monsterfight_neu($chara_1, $fight_monster, $std, $ort){
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');
include (ROOT_PATH . '/include/kampf/reborn.php');
#####################################KAMPF SYSTEM
include (ROOT_PATH . '/include/kampf/kampf_rechnung.php');

@ -209,9 +209,9 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
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');
include (ROOT_PATH . '/include/kampf/reborn.php');
#####################################KAMPF SYSTEM
include (ROOT_PATH . '/include/kampf/kampf_rechnung.php');

@ -199,9 +199,9 @@ while ($k_hp[0] > $k_aufgabe[0] AND $k_hp[1] > $k_aufgabe[1] AND $x < 10) {
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');
include (ROOT_PATH . '//include/kampf/reborn.php');
#####################################KAMPF SYSTEM
include (ROOT_PATH . '//include/kampf/kampf_rechnung.php');

@ -50,7 +50,7 @@ if (!$aussetzten_runde) { /////DAS FUER MAJIN ATTACKEN
include ('include/kampf/konter_heal.php');
//Nach Konterheal, damit überstehende HP bleibt
include ('include/kampf/tausch.php');
include ('include/kampf/reborn.php');
}
include ('include/kampf/heilung.php');
include ('include/kampf/reborn.php');

Loading…
Cancel
Save